Commit 62efa148 authored by François Grisez's avatar François Grisez
Browse files

Rename recording_call() into call_recording()

Save test results into sdcard
parent 3e94f4d6
...@@ -32,6 +32,10 @@ LOCAL_C_INCLUDES = $(common_C_INCLUDES) ...@@ -32,6 +32,10 @@ LOCAL_C_INCLUDES = $(common_C_INCLUDES)
LOCAL_CFLAGS = -DIN_LINPHONE LOCAL_CFLAGS = -DIN_LINPHONE
LOCAL_LDLIBS := -llog LOCAL_LDLIBS := -llog
ifeq ($(BUILD_MATROSKA), 1)
LOCAL_CFLAGS += -DHAVE_MATROSKA
endif
LOCAL_SHARED_LIBRARIES := cunit liblinphone LOCAL_SHARED_LIBRARIES := cunit liblinphone
include $(BUILD_SHARED_LIBRARY) include $(BUILD_SHARED_LIBRARY)
......
mediastreamer2 @ 4064390b
Subproject commit 8dae6e326a4bb933d0563af744c24d161b3148ef Subproject commit 4064390b48c957dcf3077b0e30e0c082395bbf05
oRTP @ fc8d8457
Subproject commit dfb505d7198dc8be59919c8c6d68add302a98fd3 Subproject commit fc8d8457eb630907eff50333ddf5243b448fe733
...@@ -2663,7 +2663,7 @@ static void savpf_to_savpf_call(void) { ...@@ -2663,7 +2663,7 @@ static void savpf_to_savpf_call(void) {
profile_call(TRUE, TRUE, TRUE, TRUE, "RTP/SAVPF"); profile_call(TRUE, TRUE, TRUE, TRUE, "RTP/SAVPF");
} }
static void recording_call() { static void call_recording() {
LinphoneCoreManager *marie = linphone_core_manager_new("marie_rc"); LinphoneCoreManager *marie = linphone_core_manager_new("marie_rc");
LinphoneCoreManager *pauline = linphone_core_manager_new("pauline_rc"); LinphoneCoreManager *pauline = linphone_core_manager_new("pauline_rc");
LinphoneCallParams *marieParams = linphone_core_create_default_call_parameters(marie->lc); LinphoneCallParams *marieParams = linphone_core_create_default_call_parameters(marie->lc);
...@@ -2673,7 +2673,7 @@ static void recording_call() { ...@@ -2673,7 +2673,7 @@ static void recording_call() {
char *filepath = NULL; char *filepath = NULL;
#ifdef ANDROID #ifdef ANDROID
const char dirname[] = "/data/data/org.linphone.tester/files/.test"; const char dirname[] = "/sdcard/Movies/liblinphone_tester";
#else #else
const char dirname[] = ".test"; const char dirname[] = ".test";
#endif #endif
...@@ -2722,6 +2722,7 @@ static void recording_call() { ...@@ -2722,6 +2722,7 @@ static void recording_call() {
CU_ASSERT_TRUE(call_with_params(marie, pauline, marieParams, paulineParams)); CU_ASSERT_TRUE(call_with_params(marie, pauline, marieParams, paulineParams));
CU_ASSERT_PTR_NOT_NULL(callInst = linphone_core_get_current_call(marie->lc)); CU_ASSERT_PTR_NOT_NULL(callInst = linphone_core_get_current_call(marie->lc));
ms_message("call_recording(): the call will be recorded into %s", filepath);
linphone_call_start_recording(callInst); linphone_call_start_recording(callInst);
wait_for_until(marie->lc,pauline->lc,&dummy,1,10000); wait_for_until(marie->lc,pauline->lc,&dummy,1,10000);
linphone_call_stop_recording(callInst); linphone_call_stop_recording(callInst);
...@@ -2823,7 +2824,7 @@ test_t call_tests[] = { ...@@ -2823,7 +2824,7 @@ test_t call_tests[] = {
{ "SAVPF to AVPF call", savpf_to_avpf_call }, { "SAVPF to AVPF call", savpf_to_avpf_call },
{ "SAVPF to SAVP call", savpf_to_savp_call }, { "SAVPF to SAVP call", savpf_to_savp_call },
{ "SAVPF to SAVPF call", savpf_to_savpf_call }, { "SAVPF to SAVPF call", savpf_to_savpf_call },
{ "Call recording", recording_call } { "Call recording", call_recording }
}; };
test_suite_t call_test_suite = { test_suite_t call_test_suite = {
......
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