forked from mirrors/linphone-iphone
Add some tests in the Player testing suite
This commit is contained in:
parent
897781c3ef
commit
b1bc640f0a
1 changed files with 21 additions and 3 deletions
|
|
@ -70,16 +70,34 @@ static void play_file(const char *filename, bool_t unsupported_format, const cha
|
|||
if(lc_manager) linphone_core_manager_destroy(lc_manager);
|
||||
}
|
||||
|
||||
static void playing_test(void) {
|
||||
static void sintel_trailer_opus_h264_test(void) {
|
||||
char *filename = bc_tester_res("sounds/sintel_trailer_opus_h264.mkv");
|
||||
const char *audio_mime = "opus";
|
||||
const char *video_mime = "h264";
|
||||
const char *video_mime = "H264";
|
||||
play_file(filename, !linphone_local_player_matroska_supported(), audio_mime, video_mime);
|
||||
ms_free(filename);
|
||||
}
|
||||
|
||||
static void sintel_trailer_pcmu_h264_test(void) {
|
||||
char *filename = bc_tester_res("sounds/sintel_trailer_pcmu_h264.mkv");
|
||||
const char *audio_mime = "pcmu";
|
||||
const char *video_mime = "H264";
|
||||
play_file(filename, !linphone_local_player_matroska_supported(), audio_mime, video_mime);
|
||||
ms_free(filename);
|
||||
}
|
||||
|
||||
static void sintel_trailer_opus_vp8_test(void) {
|
||||
char *filename = bc_tester_res("sounds/sintel_trailer_opus_vp8.mkv");
|
||||
const char *audio_mime = "opus";
|
||||
const char *video_mime = "VP8";
|
||||
play_file(filename, !linphone_local_player_matroska_supported(), audio_mime, video_mime);
|
||||
ms_free(filename);
|
||||
}
|
||||
|
||||
test_t player_tests[] = {
|
||||
{ "Local MKV file" , playing_test }
|
||||
{ "Sintel trailer opus/h264" , sintel_trailer_opus_h264_test },
|
||||
{ "Sintel trailer pcmu/h264" , sintel_trailer_pcmu_h264_test },
|
||||
{ "Sintel trailer opus/VP8" , sintel_trailer_opus_vp8_test }
|
||||
};
|
||||
|
||||
test_suite_t player_test_suite = {"Player", NULL, NULL, liblinphone_tester_before_each, NULL,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue