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

Unified Diff: webkit/renderer/media/crypto/key_systems_unittest.cc

Issue 17101027: Add a function to convert key system into UUID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 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
Index: webkit/renderer/media/crypto/key_systems_unittest.cc
diff --git a/webkit/renderer/media/crypto/key_systems_unittest.cc b/webkit/renderer/media/crypto/key_systems_unittest.cc
index efd318d79463a85d2d97af53aae431c742414924..4c1d197f24791472f1d8aeb6d30c7cd307c31986 100644
--- a/webkit/renderer/media/crypto/key_systems_unittest.cc
+++ b/webkit/renderer/media/crypto/key_systems_unittest.cc
@@ -753,4 +753,18 @@ TEST_F(KeySystemsTest, IsSupportedKeySystemWithMediaMimeType_Widevine_MP4) {
"audio/mp4", vorbis_codec(), kWidevineAlpha));
}
+#if defined(OS_ANDROID)
+TEST_F(KeySystemsTest, ConvertKeySystemToUUID) {
+ std::vector<uint8> uuid = GetUUID(kWidevineAlpha);
+ EXPECT_EQ(16u, uuid.size());
ddorwin 2013/06/20 22:20:15 Do you care about the actual uuid? It seems we sho
qinmin 2013/06/20 23:30:12 Done.
+
ddorwin 2013/06/20 22:20:15 You could break out unsupported systmes into a sep
qinmin 2013/06/20 23:30:12 Done.
+ uuid = GetUUID(kWidevine);
ddorwin 2013/06/20 22:20:15 These could all be collapsed into a single line. F
qinmin 2013/06/20 23:30:12 Changed to EXPECT_TRUE(GetUUID(kWidevine).empty())
+ EXPECT_EQ(0u, uuid.size());
+ uuid = GetUUID(kClearKey);
+ EXPECT_EQ(0u, uuid.size());
+ uuid = GetUUID("");
+ EXPECT_EQ(0u, uuid.size());
+}
+#endif // defined(OS_ANDROID)
+
} // namespace webkit_media

Powered by Google App Engine
This is Rietveld 408576698