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
282f417d
Commit
282f417d
authored
Apr 21, 2016
by
Gautier Pelloux-Prayer
Browse files
tester: split presence tests in two: peer to peer tests and with server tests
parent
f13fb7a9
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
742 additions
and
648 deletions
+742
-648
tester/CMakeLists.txt
tester/CMakeLists.txt
+1
-0
tester/Makefile.am
tester/Makefile.am
+1
-0
tester/flexisip_tester.c
tester/flexisip_tester.c
+5
-5
tester/liblinphone_tester.h
tester/liblinphone_tester.h
+2
-2
tester/presence_server_tester.c
tester/presence_server_tester.c
+732
-0
tester/presence_tester.c
tester/presence_tester.c
+0
-641
tester/tester.c
tester/tester.c
+1
-0
No files found.
tester/CMakeLists.txt
View file @
282f417d
...
...
@@ -35,6 +35,7 @@ set(SOURCE_FILES
offeranswer_tester.c
player_tester.c
presence_tester.c
presence_server_tester.c
proxy_config_tester.c
quality_reporting_tester.c
register_tester.c
...
...
tester/Makefile.am
View file @
282f417d
...
...
@@ -124,6 +124,7 @@ liblinphonetester_la_SOURCES = \
offeranswer_tester.c
\
player_tester.c
\
presence_tester.c
\
presence_server_tester.c
\
proxy_config_tester.c
\
quality_reporting_tester.c
\
register_tester.c
\
...
...
tester/flexisip_tester.c
View file @
282f417d
...
...
@@ -750,7 +750,7 @@ static void file_transfer_message_rcs_to_external_body_client(void) {
linphone_proxy_config_set_custom_header
(
marie
->
lc
->
default_proxy
,
"Accept"
,
"application/sdp"
);
linphone_core_set_network_reachable
(
marie
->
lc
,
TRUE
);
linphone_core_manager_start
(
marie
,
TRUE
);
linphone_proxy_config_set_custom_header
(
pauline
->
lc
->
default_proxy
,
"Accept"
,
"application/sdp, text/plain, application/vnd.gsma.rcs-ft-http+xml"
);
linphone_core_set_network_reachable
(
pauline
->
lc
,
TRUE
);
...
...
@@ -835,9 +835,9 @@ void send_file_transfer_message_using_external_body_url(LinphoneCoreManager *mar
BC_ASSERT_EQUAL
(
pauline
->
stat
.
number_of_LinphoneMessageInProgress
,
1
,
int
,
"%d"
);
BC_ASSERT_EQUAL
(
marie
->
stat
.
number_of_LinphoneMessageExtBodyReceived
,
1
,
int
,
"%d"
);
BC_ASSERT_TRUE
(
wait_for
(
pauline
->
lc
,
marie
->
lc
,
&
pauline
->
stat
.
number_of_LinphoneMessageDelivered
,
1
));
}
static
void
file_transfer_message_external_body_to_external_body_client
(
void
)
{
...
...
@@ -1018,11 +1018,11 @@ static void test_publish_unpublish(void) {
linphone_proxy_config_edit
(
proxy
);
linphone_proxy_config_enable_publish
(
proxy
,
TRUE
);
linphone_proxy_config_done
(
proxy
);
wait_
c
or
e
(
marie
->
lc
);
wait_
f
or
(
marie
->
lc
,
NULL
,
NULL
,
0
);
linphone_proxy_config_edit
(
proxy
);
linphone_proxy_config_enable_publish
(
proxy
,
FALSE
);
linphone_proxy_config_done
(
proxy
);
wait_
c
or
e
(
marie
->
lc
);
wait_
f
or
(
marie
->
lc
,
NULL
,
NULL
,
0
);
linphone_core_manager_destroy
(
marie
);
}
...
...
tester/liblinphone_tester.h
View file @
282f417d
...
...
@@ -44,6 +44,7 @@ extern test_suite_t register_test_suite;
extern
test_suite_t
call_test_suite
;
extern
test_suite_t
message_test_suite
;
extern
test_suite_t
presence_test_suite
;
extern
test_suite_t
presence_server_test_suite
;
extern
test_suite_t
upnp_test_suite
;
extern
test_suite_t
event_test_suite
;
extern
test_suite_t
flexisip_test_suite
;
...
...
@@ -367,11 +368,10 @@ LinphoneConferenceServer* linphone_conference_server_new(const char *rc_file, bo
void
linphone_conference_server_destroy
(
LinphoneConferenceServer
*
conf_srv
);
extern
const
char
*
liblinphone_tester_mire_id
;
LinphoneAddress
*
linphone_core_manager_resolve
(
LinphoneCoreManager
*
mgr
,
const
LinphoneAddress
*
source
);
FILE
*
sip_start
(
const
char
*
senario
,
const
char
*
dest_username
,
const
char
*
passwd
,
LinphoneAddress
*
dest_addres
);
void
wait_core
(
LinphoneCore
*
core
)
;
#ifdef __cplusplus
...
...
tester/presence_server_tester.c
0 → 100644
View file @
282f417d
This diff is collapsed.
Click to expand it.
tester/presence_tester.c
View file @
282f417d
This diff is collapsed.
Click to expand it.
tester/tester.c
View file @
282f417d
...
...
@@ -476,6 +476,7 @@ void liblinphone_tester_add_suites() {
bc_tester_add_suite
(
&
multi_call_test_suite
);
bc_tester_add_suite
(
&
message_test_suite
);
bc_tester_add_suite
(
&
presence_test_suite
);
bc_tester_add_suite
(
&
presence_server_test_suite
);
#ifdef UPNP
bc_tester_add_suite
(
&
upnp_test_suite
);
#endif
...
...
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