Commit d3c7dfde authored by Julien Wadel's avatar Julien Wadel
Browse files

Change getter name to is because csharp wrapper remove the 'get' token from...

Change getter name to is because csharp wrapper remove the 'get' token from function that make a conflict with an existing function. Fix tester on cast
parent 1ccd5522
......@@ -5410,7 +5410,7 @@ void linphone_core_verify_server_cn(LinphoneCore *lc, bool_t yesno){
linphone_config_set_int(lc->config,"sip","verify_server_cn",yesno);
}
bool_t linphone_core_get_verify_server_cn(LinphoneCore *lc){
bool_t linphone_core_is_verify_server_cn(LinphoneCore *lc){
return !!linphone_config_get_int(lc->config, "sip", "verify_server_cn", TRUE);
}
......
......@@ -2801,7 +2801,7 @@ LINPHONE_PUBLIC void linphone_core_verify_server_cn(LinphoneCore *core, bool_t y
* @return True if the tls server certificate common name must be verified
* @ingroup initializing
**/
LINPHONE_PUBLIC bool_t linphone_core_get_verify_server_cn(LinphoneCore *core);
LINPHONE_PUBLIC bool_t linphone_core_is_verify_server_cn(LinphoneCore *core);
/**
* Gets the path to a file or folder containing the trusted root CAs (PEM format)
......
......@@ -43,7 +43,7 @@ static void account_creator_cb(LinphoneAccountCreator *creator, LinphoneAccountC
LinphoneAccountCreatorCbs *cbs = linphone_account_creator_get_current_callbacks(creator);
LinphoneAccountCreatorStatus expected_status = (LinphoneAccountCreatorStatus)(
(long)linphone_account_creator_service_get_user_data(linphone_account_creator_get_service(creator))
(intptr_t)linphone_account_creator_service_get_user_data(linphone_account_creator_get_service(creator))
);
BC_ASSERT_EQUAL(
status,
......
......@@ -48,7 +48,7 @@ static void account_creator_cb(LinphoneAccountCreator *creator, LinphoneAccountC
LinphoneAccountCreatorCbs *cbs = linphone_account_creator_get_current_callbacks(creator);
LinphoneAccountCreatorStatus expected_status = (LinphoneAccountCreatorStatus)(
(long)linphone_account_creator_service_get_user_data(linphone_account_creator_get_service(creator))
(intptr_t)linphone_account_creator_service_get_user_data(linphone_account_creator_get_service(creator))
);
BC_ASSERT_EQUAL(
status,
......@@ -1235,7 +1235,7 @@ static void server_update_account_password_for_non_existent_account(void) {
static void login_linphone_account_creator_cb(LinphoneAccountCreator *creator, LinphoneAccountCreatorStatus status, const char* resp) {
LinphoneAccountCreatorCbs *cbs = linphone_account_creator_get_current_callbacks(creator);
LinphoneAccountCreatorStatus expected_status = (LinphoneAccountCreatorStatus)(
(long)linphone_account_creator_service_get_user_data(linphone_account_creator_get_service(creator))
(intptr_t)linphone_account_creator_service_get_user_data(linphone_account_creator_get_service(creator))
);
BC_ASSERT_EQUAL(
status,
......
......@@ -1250,7 +1250,7 @@ static void search_friend_with_presence(void) {
if (BC_ASSERT_PTR_NOT_NULL(resultList)) {
#ifdef LDAP_ENABLED
BC_ASSERT_EQUAL(bctbx_list_size(resultList), 3, int, "%d");
BC_ASSERT_EQUAL((int)bctbx_list_size(resultList), 3, int, "%d");
_check_friend_result_list(manager->lc, resultList, 0, "sip:Chloe@ldap.example.org", NULL);// From LDAP
_check_friend_result_list(manager->lc, resultList, 1, chloeSipUri, chloePhoneNumber);//"sip:ch@sip.example.org"
_check_friend_result_list(manager->lc, resultList, 2, "sip:chloe@sip.example.org", NULL);//"sip:chloe@sip.example.org"
......@@ -1323,7 +1323,7 @@ static void search_friend_in_call_log(void) {
resultList = linphone_magic_search_get_contact_list_from_filter(magicSearch, "", "sip.test.org");
if (BC_ASSERT_PTR_NOT_NULL(resultList)) {
BC_ASSERT_EQUAL(bctbx_list_size(resultList), 5, int, "%d");
BC_ASSERT_EQUAL((int)bctbx_list_size(resultList), 5, int, "%d");
_check_friend_result_list(manager->lc, resultList, 0, charlesSipUri, NULL);//"sip:charles@sip.test.org"
_check_friend_result_list(manager->lc, resultList, 1, sFriends[0], NULL);//"sip:charu@sip.test.org"
_check_friend_result_list(manager->lc, resultList, 2, sFriends[4], NULL);//"sip:hello@sip.test.org"
......@@ -1854,7 +1854,7 @@ static void search_friend_chat_room_remote(void) {
resultList = linphone_magic_search_get_contact_list_from_filter(magicSearch, "", "");
if (BC_ASSERT_PTR_NOT_NULL(resultList)) {
#ifdef LDAP_ENABLED
BC_ASSERT_EQUAL(bctbx_list_size(resultList), 6, int, "%d");// Sorted by display names
BC_ASSERT_EQUAL((int)bctbx_list_size(resultList), 6, int, "%d");// Sorted by display names
_check_friend_result_list(marie->lc, resultList, 0, "sip:Chloe@ldap.example.org", NULL); // "Chloe"
_check_friend_result_list(marie->lc, resultList, 1, "sip:+33655667788@ldap.example.org", NULL); // "Laure"
_check_friend_result_list(marie->lc, resultList, 2, "sip:0601234567@ldap.example.org", NULL); // "Marie"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment