Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1468)

Unified Diff: media/filters/video_frame_stream_unittest.cc

Issue 297553002: Add callback in VideoDecoder and AudioDecoder to return decoded frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/filters/video_frame_stream_unittest.cc
diff --git a/media/filters/video_frame_stream_unittest.cc b/media/filters/video_frame_stream_unittest.cc
index d5f516b728adf94e177cee845d20701d5494a706..80271c17f9d277a61cdac8f23e92581fe50c2305 100644
--- a/media/filters/video_frame_stream_unittest.cc
+++ b/media/filters/video_frame_stream_unittest.cc
@@ -27,16 +27,13 @@ namespace media {
struct VideoFrameStreamTestParams {
VideoFrameStreamTestParams(bool is_encrypted,
- bool enable_get_decode_output,
int decoding_delay,
int parallel_decoding)
: is_encrypted(is_encrypted),
- enable_get_decode_output(enable_get_decode_output),
decoding_delay(decoding_delay),
parallel_decoding(parallel_decoding) {}
bool is_encrypted;
- bool enable_get_decode_output;
int decoding_delay;
int parallel_decoding;
};
@@ -51,7 +48,6 @@ class VideoFrameStreamTest
GetParam().is_encrypted)),
decryptor_(new NiceMock<MockDecryptor>()),
decoder_(new FakeVideoDecoder(GetParam().decoding_delay,
- GetParam().enable_get_decode_output,
GetParam().parallel_decoding)),
is_initialized_(false),
num_decoded_frames_(0),
@@ -347,33 +343,21 @@ INSTANTIATE_TEST_CASE_P(
Clear,
VideoFrameStreamTest,
::testing::Values(
- VideoFrameStreamTestParams(false, false, 0, 1),
- VideoFrameStreamTestParams(false, false, 3, 1),
- VideoFrameStreamTestParams(false, false, 7, 1)));
-INSTANTIATE_TEST_CASE_P(
- Clear_GetDecodeOutput,
- VideoFrameStreamTest,
- ::testing::Values(
- VideoFrameStreamTestParams(false, true, 0, 1),
- VideoFrameStreamTestParams(false, true, 3, 1),
- VideoFrameStreamTestParams(false, true, 7, 1)));
+ VideoFrameStreamTestParams(false, 0, 1),
+ VideoFrameStreamTestParams(false, 3, 1),
+ VideoFrameStreamTestParams(false, 7, 1)));
xhwang 2014/06/05 21:53:51 Add a case where parallel_decoding > decoding_dela
Sergey Ulanov 2014/06/06 22:49:41 There are some below, line 360.
INSTANTIATE_TEST_CASE_P(
Encrypted,
VideoFrameStreamTest,
::testing::Values(
- VideoFrameStreamTestParams(true, false, 7, 1)));
-INSTANTIATE_TEST_CASE_P(
- Encrypted_GetDecodeOutput,
- VideoFrameStreamTest,
- ::testing::Values(
- VideoFrameStreamTestParams(true, true, 7, 1)));
+ VideoFrameStreamTestParams(true, 7, 1)));
INSTANTIATE_TEST_CASE_P(
Clear_Parallel,
VideoFrameStreamTest,
::testing::Values(
- VideoFrameStreamTestParams(false, false, 0, 3),
- VideoFrameStreamTestParams(false, false, 2, 3)));
+ VideoFrameStreamTestParams(false, 0, 3),
+ VideoFrameStreamTestParams(false, 2, 3)));
TEST_P(VideoFrameStreamTest, Initialization) {

Powered by Google App Engine
This is Rietveld 408576698