mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-24 09:28:40 +00:00
feat(tester/setup_tester): add test on ipv4 addresses (linphone_address_test)
This commit is contained in:
parent
08a66cdf6f
commit
f4e1ecb1ed
1 changed files with 16 additions and 7 deletions
|
|
@ -40,9 +40,18 @@ static void core_init_test(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void linphone_address_test(void) {
|
static void linphone_address_test(void) {
|
||||||
|
LinphoneAddress *address;
|
||||||
|
|
||||||
linphone_address_unref(create_linphone_address(NULL));
|
linphone_address_unref(create_linphone_address(NULL));
|
||||||
BC_ASSERT_PTR_NULL(linphone_address_new("sip:@sip.linphone.org"));
|
BC_ASSERT_PTR_NULL(linphone_address_new("sip:@sip.linphone.org"));
|
||||||
|
|
||||||
|
address = linphone_address_new("sip:90.110.127.31");
|
||||||
|
if (!BC_ASSERT_PTR_NOT_NULL(address)) return;
|
||||||
|
linphone_address_unref(address);
|
||||||
|
|
||||||
|
address = linphone_address_new("sip:[::ffff:90.110.127.31]");
|
||||||
|
if (!BC_ASSERT_PTR_NOT_NULL(address)) return;
|
||||||
|
linphone_address_unref(address);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void core_sip_transport_test(void) {
|
static void core_sip_transport_test(void) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue