mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Fixed and improved tests for remote provisioning
This commit is contained in:
parent
233061e839
commit
e8bc43d75e
5 changed files with 11 additions and 8 deletions
|
|
@ -1,2 +1,2 @@
|
|||
[app]
|
||||
remote_provisioning=http://smtp.linphone.org/marie_404
|
||||
[misc]
|
||||
config-uri=http://smtp.linphone.org/marie_404
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
[app]
|
||||
remote_provisioning=http://smtp.linphone.org/marie_invalid
|
||||
[misc]
|
||||
config-uri=http://smtp.linphone.org/marie_invalid
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
[app]
|
||||
remote_provisioning=http://smtp.linphone.org/marie_xml
|
||||
[misc]
|
||||
config-uri=http://smtp.linphone.org/marie_xml
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
[app]
|
||||
remote_provisioning=https://smtp.linphone.org/pauline_xml
|
||||
[misc]
|
||||
config-uri=https://smtp.linphone.org/pauline_xml
|
||||
|
|
|
|||
|
|
@ -23,6 +23,8 @@
|
|||
#include "liblinphone_tester.h"
|
||||
|
||||
void linphone_configuration_status(LinphoneCore *lc, LinphoneConfiguringState status, const char *message) {
|
||||
ms_message("Configuring state = %i with message %s", status, message);
|
||||
|
||||
stats* counters = get_stats(lc);
|
||||
if (status == LinphoneConfiguringSkipped) {
|
||||
counters->number_of_LinphoneConfiguringSkipped++;
|
||||
|
|
@ -42,6 +44,7 @@ static void remote_provisioning_skipped(void) {
|
|||
static void remote_provisioning_http(void) {
|
||||
LinphoneCoreManager* marie = linphone_core_manager_new("marie_remote_rc");
|
||||
CU_ASSERT_TRUE(wait_for(marie->lc,NULL,&marie->stat.number_of_LinphoneConfiguringSuccessful,1));
|
||||
CU_ASSERT_TRUE(wait_for(marie->lc,NULL,&marie->stat.number_of_LinphoneRegistrationOk,1));
|
||||
linphone_core_manager_destroy(marie);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue