Commit b1bc640f authored by François Grisez's avatar François Grisez

Add some tests in the Player testing suite

parent 897781c3
......@@ -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,
......
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