Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
602f0a68
Commit
602f0a68
authored
4 years ago
by
Mohamed Chibani
Browse files
Options
Downloads
Patches
Plain Diff
sipcall: add validation for isAudio/isVideoMuted APIs
Change-Id: Id42a16dfd280f835dedc3c007883f1b441d2e9ad Gitlab:
#445
parent
e3c5a978
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/unitTest/media_negotiation/media_negotiation.cpp
+16
-0
16 additions, 0 deletions
test/unitTest/media_negotiation/media_negotiation.cpp
with
16 additions
and
0 deletions
test/unitTest/media_negotiation/media_negotiation.cpp
+
16
−
0
View file @
602f0a68
...
...
@@ -681,6 +681,14 @@ MediaNegotiationTest::testWithScenario(CallData& aliceData,
CPPUNIT_ASSERT_EQUAL
(
mediaCount
,
mediaAttr
.
size
());
for
(
size_t
idx
=
0
;
idx
<
mediaCount
;
idx
++
)
{
CPPUNIT_ASSERT_EQUAL
(
scenario
.
offerUpdate_
[
idx
].
muted_
,
mediaAttr
[
idx
].
muted_
);
if
(
mediaAttr
[
idx
].
type_
==
MediaType
::
MEDIA_AUDIO
)
{
// Check isAudioMuted API
CPPUNIT_ASSERT_EQUAL
(
mediaAttr
[
idx
].
muted_
,
aliceCall
->
isAudioMuted
());
}
else
{
// Check isVideoMuted API
CPPUNIT_ASSERT_EQUAL
(
mediaAttr
[
idx
].
muted_
,
aliceCall
->
isVideoMuted
());
}
}
}
...
...
@@ -692,6 +700,14 @@ MediaNegotiationTest::testWithScenario(CallData& aliceData,
CPPUNIT_ASSERT_EQUAL
(
mediaCount
,
mediaAttr
.
size
());
for
(
size_t
idx
=
0
;
idx
<
mediaCount
;
idx
++
)
{
CPPUNIT_ASSERT_EQUAL
(
scenario
.
answerUpdate_
[
idx
].
muted_
,
mediaAttr
[
idx
].
muted_
);
if
(
mediaAttr
[
idx
].
type_
==
MediaType
::
MEDIA_AUDIO
)
{
// Check isAudioMuted API
CPPUNIT_ASSERT_EQUAL
(
mediaAttr
[
idx
].
muted_
,
bobCall
->
isAudioMuted
());
}
else
{
// Check isVideoMuted API
CPPUNIT_ASSERT_EQUAL
(
mediaAttr
[
idx
].
muted_
,
bobCall
->
isVideoMuted
());
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment