mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-01 02:39:22 +00:00
fix vcard compilation
This commit is contained in:
parent
cadf505786
commit
2698f84415
2 changed files with 30 additions and 2 deletions
|
|
@ -601,6 +601,31 @@ static void transport_dont_bind(void){
|
|||
linphone_core_manager_destroy(pauline);
|
||||
}
|
||||
|
||||
static void transport_busy(void){
|
||||
LinphoneCoreManager *pauline = linphone_core_manager_new("pauline_tcp_rc");
|
||||
LCSipTransports tr;
|
||||
|
||||
memset(&tr, 0, sizeof(tr));
|
||||
tr.udp_port = 5070;
|
||||
tr.tcp_port = 5070;
|
||||
tr.tls_port = 5071;
|
||||
|
||||
linphone_core_set_sip_transports(pauline->lc, &tr);
|
||||
|
||||
{
|
||||
LinphoneCoreManager *marie = linphone_core_manager_new("marie_rc");
|
||||
linphone_core_set_sip_transports(marie->lc, &tr);
|
||||
memset(&tr, 0, sizeof(tr));
|
||||
linphone_core_get_sip_transports_used(pauline->lc, &tr);
|
||||
BC_ASSERT_EQUAL(tr.udp_port, 0, int, "%i");
|
||||
BC_ASSERT_EQUAL(tr.tcp_port, 0, int, "%i");
|
||||
BC_ASSERT_EQUAL(tr.tls_port, 0, int, "%i");
|
||||
linphone_core_manager_destroy(marie);
|
||||
}
|
||||
|
||||
linphone_core_manager_destroy(pauline);
|
||||
}
|
||||
|
||||
static void proxy_transport_change(void){
|
||||
LinphoneCoreManager* lcm = create_lcm();
|
||||
stats* counters = &lcm->stat;
|
||||
|
|
@ -1144,6 +1169,7 @@ test_t register_tests[] = {
|
|||
TEST_NO_TAG("Multi account", multiple_proxy),
|
||||
TEST_NO_TAG("Transport changes", transport_change),
|
||||
TEST_NO_TAG("Transport configured with dontbind option", transport_dont_bind),
|
||||
TEST_NO_TAG("Transport busy", transport_busy),
|
||||
TEST_NO_TAG("Proxy transport changes", proxy_transport_change),
|
||||
TEST_NO_TAG("Proxy transport changes with wrong address at first", proxy_transport_change_with_wrong_port),
|
||||
TEST_NO_TAG("Proxy transport changes with wrong address, giving up",proxy_transport_change_with_wrong_port_givin_up),
|
||||
|
|
|
|||
|
|
@ -16,10 +16,12 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifdef VCARD_ENABLED
|
||||
|
||||
#include "linphonecore.h"
|
||||
#include "private.h"
|
||||
|
||||
#ifdef VCARD_ENABLED
|
||||
|
||||
|
||||
#include "liblinphone_tester.h"
|
||||
#include "carddav.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue