Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
81dcfc2d
Commit
81dcfc2d
authored
Aug 21, 2015
by
Sylvain Berfini
🐮
Browse files
Remove min/max from test, using existing MIN/MAX
parent
5c38f631
Changes
1
Hide whitespace changes
Inline
Side-by-side
tester/call_tester.c
View file @
81dcfc2d
...
...
@@ -33,16 +33,6 @@
#endif
#endif
int
static
min
(
int
a
,
int
b
)
{
if
(
a
<
b
)
return
a
;
return
b
;
}
int
static
max
(
int
a
,
int
b
)
{
if
(
a
<
b
)
return
b
;
return
a
;
}
static
void
srtp_call
(
void
);
static
char
*
create_filepath
(
const
char
*
dir
,
const
char
*
filename
,
const
char
*
ext
);
...
...
@@ -4542,7 +4532,7 @@ static void call_with_custom_rtp_modifier(void) {
ms_message
(
"Marie sent %i RTP packets and received %i"
,
data_marie
->
packetSentCount
,
data_marie
->
packetReceivedCount
);
ms_message
(
"Pauline sent %i RTP packets and received %i"
,
data_pauline
->
packetSentCount
,
data_pauline
->
packetReceivedCount
);
// There will be a few RTP packets sent on marie's side before the call is ended at pauline's request, so we need the threshold
BC_ASSERT_TRUE
(
max
(
data_pauline
->
packetReceivedCount
,
data_marie
->
packetSentCount
)
-
min
(
data_pauline
->
packetReceivedCount
,
data_marie
->
packetSentCount
)
<
8
);
BC_ASSERT_TRUE
(
MAX
(
data_pauline
->
packetReceivedCount
,
data_marie
->
packetSentCount
)
-
MIN
(
data_pauline
->
packetReceivedCount
,
data_marie
->
packetSentCount
)
<
8
);
BC_ASSERT_TRUE
(
data_marie
->
packetReceivedCount
==
data_pauline
->
packetSentCount
);
end:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment