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
387398ee
Commit
387398ee
authored
Jan 09, 2018
by
Simon Morlat
Browse files
Move "regid" test to Flexisip suite.
parent
936c69ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
16 deletions
+15
-16
tester/flexisip_tester.c
tester/flexisip_tester.c
+14
-1
tester/register_tester.c
tester/register_tester.c
+1
-15
No files found.
tester/flexisip_tester.c
View file @
387398ee
...
...
@@ -1395,6 +1395,18 @@ end:
ms_free
(
hellopath
);
}
static
void
register_without_regid
(
void
)
{
LinphoneCoreManager
*
marie
=
linphone_core_manager_new2
(
"marie_rc"
,
FALSE
);
linphone_core_manager_start
(
marie
,
TRUE
);
LinphoneProxyConfig
*
cfg
=
linphone_core_get_default_proxy_config
(
marie
->
lc
);
if
(
cfg
)
{
const
LinphoneAddress
*
addr
=
linphone_proxy_config_get_contact
(
cfg
);
BC_ASSERT_PTR_NOT_NULL
(
addr
);
BC_ASSERT_PTR_NULL
(
strstr
(
linphone_address_as_string_uri_only
(
addr
),
"regid"
));
}
linphone_core_manager_destroy
(
marie
);
}
void
test_removing_old_tport
(
void
)
{
bctbx_list_t
*
lcs
;
LinphoneCoreManager
*
marie2
;
...
...
@@ -1852,7 +1864,8 @@ test_t flexisip_tests[] = {
TEST_NO_TAG
(
"Sequential forking with timeout for highest priority"
,
sequential_forking_with_timeout_for_highest_priority
),
TEST_NO_TAG
(
"Sequential forking with no response from highest priority"
,
sequential_forking_with_no_response_for_highest_priority
),
TEST_NO_TAG
(
"Sequential forking with insertion of higher priority"
,
sequential_forking_with_insertion_of_higher_priority
),
TEST_NO_TAG
(
"Sequential forking with fallback route"
,
sequential_forking_with_fallback_route
)
TEST_NO_TAG
(
"Sequential forking with fallback route"
,
sequential_forking_with_fallback_route
),
TEST_NO_TAG
(
"Registered contact does not have regid param"
,
register_without_regid
)
};
...
...
tester/register_tester.c
View file @
387398ee
...
...
@@ -1328,19 +1328,6 @@ static void multi_devices_register_with_gruu(void) {
linphone_core_manager_destroy
(
marie
);
}
static
void
register_without_regid
(
void
)
{
LinphoneCoreManager
*
marie
=
ms_new0
(
LinphoneCoreManager
,
1
);
linphone_core_manager_init
(
marie
,
"marie_rc"
,
NULL
);
linphone_core_manager_start
(
marie
,
TRUE
);
LinphoneProxyConfig
*
cfg
=
linphone_core_get_default_proxy_config
(
marie
->
lc
);
if
(
cfg
)
{
const
LinphoneAddress
*
addr
=
linphone_proxy_config_get_contact
(
cfg
);
BC_ASSERT_PTR_NOT_NULL
(
addr
);
BC_ASSERT_PTR_NULL
(
strstr
(
linphone_address_as_string_uri_only
(
addr
),
"regid"
));
}
linphone_core_manager_destroy
(
marie
);
}
test_t
register_tests
[]
=
{
TEST_NO_TAG
(
"Simple register"
,
simple_register
),
...
...
@@ -1391,8 +1378,7 @@ test_t register_tests[] = {
TEST_NO_TAG
(
"AuthInfo TLS client certificate authentication in callback"
,
tls_auth_info_client_cert_cb
),
TEST_NO_TAG
(
"AuthInfo TLS client certificate authentication in callback 2"
,
tls_auth_info_client_cert_cb_2
),
TEST_NO_TAG
(
"Register get GRUU"
,
register_get_gruu
),
TEST_NO_TAG
(
"Register get GRUU for multi device"
,
multi_devices_register_with_gruu
),
TEST_NO_TAG
(
"Register contact do not have regid param"
,
register_without_regid
)
TEST_NO_TAG
(
"Register get GRUU for multi device"
,
multi_devices_register_with_gruu
)
};
test_suite_t
register_test_suite
=
{
"Register"
,
NULL
,
NULL
,
liblinphone_tester_before_each
,
liblinphone_tester_after_each
,
...
...
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