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

Unified Diff: media/filters/decrypting_video_decoder_unittest.cc

Issue 2872223002: media: Set ColorSpace on decoded frames in DecryptingVideoDecoder (Closed)
Patch Set: more fix and test Created 3 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
« no previous file with comments | « media/filters/decrypting_video_decoder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/decrypting_video_decoder_unittest.cc
diff --git a/media/filters/decrypting_video_decoder_unittest.cc b/media/filters/decrypting_video_decoder_unittest.cc
index 2f9c0b6d6d059220b0c02d8634b510c312c1adc0..16806f071401bbd7b292dbe55363996c8e5bb389 100644
--- a/media/filters/decrypting_video_decoder_unittest.cc
+++ b/media/filters/decrypting_video_decoder_unittest.cc
@@ -482,4 +482,12 @@ TEST_F(DecryptingVideoDecoderTest, Destroy_AfterReset) {
Destroy();
}
+// Test the case where color space in the config is set in the decoded frame.
+TEST_F(DecryptingVideoDecoderTest, ColorSpace) {
+ Initialize();
+ EXPECT_FALSE(decoded_video_frame_->ColorSpace().IsValid());
+ EnterNormalDecodingState();
+ EXPECT_TRUE(decoded_video_frame_->ColorSpace().IsValid());
+}
+
} // namespace media
« no previous file with comments | « media/filters/decrypting_video_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698