mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-29 09:09:21 +00:00
fix(call_video_tester): avoid empty array if video is not enabled
This commit is contained in:
parent
42d9cee02d
commit
6ea91ce27b
2 changed files with 10 additions and 7 deletions
|
|
@ -21,6 +21,7 @@
|
|||
#include "tester_utils.h"
|
||||
|
||||
#ifdef VIDEO_ENABLED
|
||||
|
||||
static void call_paused_resumed_with_video_base_call_cb(LinphoneCore *lc, LinphoneCall *call, LinphoneCallState cstate, const char *message) {
|
||||
if (cstate == LinphoneCallUpdatedByRemote) {
|
||||
LinphoneCallParams *params = linphone_core_create_call_params(lc, call);
|
||||
|
|
@ -2228,10 +2229,7 @@ static void video_call_expected_fps_for_high_bandwidth(void) {
|
|||
#endif
|
||||
}
|
||||
|
||||
#endif // VIDEO_ENABLED
|
||||
|
||||
test_t call_video_tests[] = {
|
||||
#ifdef VIDEO_ENABLED
|
||||
TEST_NO_TAG("Call paused resumed with video", call_paused_resumed_with_video),
|
||||
TEST_NO_TAG("Call paused resumed with video no sdp ack", call_paused_resumed_with_no_sdp_ack),
|
||||
TEST_NO_TAG("Call paused resumed with video no sdk ack using video policy for resume offers", call_paused_resumed_with_no_sdp_ack_using_video_policy),
|
||||
|
|
@ -2303,8 +2301,9 @@ test_t call_video_tests[] = {
|
|||
TEST_NO_TAG("Video call expected FPS for low bandwidth", video_call_expected_fps_for_low_bandwidth),
|
||||
TEST_NO_TAG("Video call expected FPS for regular bandwidth", video_call_expected_fps_for_regular_bandwidth),
|
||||
TEST_NO_TAG("Video call expected FPS for high bandwidth", video_call_expected_fps_for_high_bandwidth)
|
||||
#endif
|
||||
};
|
||||
|
||||
test_suite_t call_video_test_suite = {"Video Call", NULL, NULL, liblinphone_tester_before_each, liblinphone_tester_after_each,
|
||||
sizeof(call_video_tests) / sizeof(call_video_tests[0]), call_video_tests};
|
||||
|
||||
#endif // ifdef VIDEO_ENABLED
|
||||
|
|
|
|||
|
|
@ -41,7 +41,11 @@ extern "C" {
|
|||
|
||||
extern test_suite_t account_creator_test_suite;
|
||||
extern test_suite_t call_test_suite;
|
||||
extern test_suite_t call_video_test_suite;
|
||||
|
||||
#if VIDEO_ENABLED
|
||||
extern test_suite_t call_video_test_suite;
|
||||
#endif
|
||||
|
||||
extern test_suite_t clonable_object_test_suite;
|
||||
extern test_suite_t conference_event_test_suite;
|
||||
extern test_suite_t conference_test_suite;
|
||||
|
|
@ -73,12 +77,12 @@ extern test_suite_t upnp_test_suite;
|
|||
extern test_suite_t video_test_suite;
|
||||
|
||||
#ifdef VCARD_ENABLED
|
||||
extern test_suite_t vcard_test_suite;
|
||||
extern test_suite_t vcard_test_suite;
|
||||
#endif
|
||||
|
||||
extern test_suite_t audio_bypass_suite;
|
||||
#if HAVE_SIPP
|
||||
extern test_suite_t complex_sip_call_test_suite;
|
||||
extern test_suite_t complex_sip_call_test_suite;
|
||||
#endif
|
||||
|
||||
extern int manager_count;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue