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

Unified Diff: media/mojo/services/media_type_converters_unittest.cc

Issue 820103002: Add |is_encrypted| in mojo AudioDecoderConfig. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/mojo/services/media_type_converters.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/media_type_converters_unittest.cc
diff --git a/media/mojo/services/media_type_converters_unittest.cc b/media/mojo/services/media_type_converters_unittest.cc
index ecf61880161fc6ec739ef68604c3fd5ce16a4ab9..ac05e142da25e3c7cefc202dcf3a8b58b4f093f3 100644
--- a/media/mojo/services/media_type_converters_unittest.cc
+++ b/media/mojo/services/media_type_converters_unittest.cc
@@ -157,5 +157,22 @@ TEST(MediaTypeConvertersTest, ConvertAudioDecoderConfig_NullExtraData) {
EXPECT_TRUE(result.Matches(config));
}
+TEST(MediaTypeConvertersTest, ConvertAudioDecoderConfig_Encrypted) {
+ media::AudioDecoderConfig config;
+ config.Initialize(media::kCodecAAC,
+ media::kSampleFormatU8,
+ media::CHANNEL_LAYOUT_SURROUND,
+ 48000,
+ NULL,
+ 0,
+ true, // Is encrypted.
+ false,
+ base::TimeDelta(),
+ 0);
+ AudioDecoderConfigPtr ptr(AudioDecoderConfig::From(config));
+ media::AudioDecoderConfig result(ptr.To<media::AudioDecoderConfig>());
+ EXPECT_TRUE(result.Matches(config));
+}
+
} // namespace test
} // namespace mojo
« no previous file with comments | « media/mojo/services/media_type_converters.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698