Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
liblinphone
Commits
b1bc640f
Commit
b1bc640f
authored
Sep 23, 2015
by
François Grisez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some tests in the Player testing suite
parent
897781c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
tester/player_tester.c
tester/player_tester.c
+21
-3
No files found.
tester/player_tester.c
View file @
b1bc640f
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment