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

Unified Diff: media/filters/video_frame_stream_unittest.cc

Issue 331863004: Revert 276344 "Add callback in VideoDecoder and AudioDecoder to ..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2049/src/
Patch Set: Created 6 years, 6 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
« no previous file with comments | « media/filters/video_decoder_selector_unittest.cc ('k') | media/filters/video_renderer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/video_frame_stream_unittest.cc
===================================================================
--- media/filters/video_frame_stream_unittest.cc (revision 277175)
+++ media/filters/video_frame_stream_unittest.cc (working copy)
@@ -27,13 +27,16 @@
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;
};
@@ -48,6 +51,7 @@
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),
@@ -343,21 +347,33 @@
Clear,
VideoFrameStreamTest,
::testing::Values(
- VideoFrameStreamTestParams(false, 0, 1),
- VideoFrameStreamTestParams(false, 3, 1),
- VideoFrameStreamTestParams(false, 7, 1)));
+ 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)));
+INSTANTIATE_TEST_CASE_P(
Encrypted,
VideoFrameStreamTest,
::testing::Values(
- VideoFrameStreamTestParams(true, 7, 1)));
+ VideoFrameStreamTestParams(true, false, 7, 1)));
+INSTANTIATE_TEST_CASE_P(
+ Encrypted_GetDecodeOutput,
+ VideoFrameStreamTest,
+ ::testing::Values(
+ VideoFrameStreamTestParams(true, true, 7, 1)));
INSTANTIATE_TEST_CASE_P(
Clear_Parallel,
VideoFrameStreamTest,
::testing::Values(
- VideoFrameStreamTestParams(false, 0, 3),
- VideoFrameStreamTestParams(false, 2, 3)));
+ VideoFrameStreamTestParams(false, false, 0, 3),
+ VideoFrameStreamTestParams(false, false, 2, 3)));
TEST_P(VideoFrameStreamTest, Initialization) {
« no previous file with comments | « media/filters/video_decoder_selector_unittest.cc ('k') | media/filters/video_renderer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698