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

Unified Diff: chrome/browser/media/encrypted_media_browsertest.cc

Issue 2582463003: media: Verify CDM Host files (Closed)
Patch Set: comments addressed Created 3 years, 11 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 | « no previous file | chrome/common/BUILD.gn » ('j') | chrome/common/media/cdm_host_file_path.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/encrypted_media_browsertest.cc
diff --git a/chrome/browser/media/encrypted_media_browsertest.cc b/chrome/browser/media/encrypted_media_browsertest.cc
index e61ef839ce447a79dcd04e5c71f376cc657f6794..350f0316af79de0e6bb1d20fe043dde7d5a40336 100644
--- a/chrome/browser/media/encrypted_media_browsertest.cc
+++ b/chrome/browser/media/encrypted_media_browsertest.cc
@@ -59,6 +59,8 @@ const char kExternalClearKeyPlatformVerificationTestKeySystem[] =
"org.chromium.externalclearkey.platformverificationtest";
const char kExternalClearKeyCrashKeySystem[] =
"org.chromium.externalclearkey.crash";
+const char kExternalClearKeyVerifyHostFilesTestKeySystem[] =
tinskip1 2017/01/19 03:42:46 Suggest: Shorten from VerifyHostFiles to VerifyHos
xhwang 2017/01/19 08:30:51 The API change has been landed in https://chromium
tinskip1 2017/01/19 17:36:38 Well, "verifyhostfiles" IMO gives away what we're
xhwang 2017/01/19 17:46:06 I can do these two.
tinskip1 2017/01/19 18:02:17 Fail as if it could not load the CDM.
+ "org.chromium.externalclearkey.verifyhostfilestest";
// Supported media types.
const char kWebMVorbisAudioOnly[] = "audio/webm; codecs=\"vorbis\"";
@@ -273,6 +275,8 @@ class EncryptedMediaTestBase : public MediaBrowserTest {
RegisterPepperCdm(command_line, kClearKeyCdmBaseDirectory,
kClearKeyCdmAdapterFileName, kClearKeyCdmDisplayName,
kClearKeyCdmPepperMimeType);
+ // Need to tell CdmHostFile(s) to ignore missing CDM host files in tests.
+ command_line->AppendSwitch(switches::kIgnoreMissingCdmHostFileForTesting);
command_line->AppendSwitchASCII(switches::kEnableFeatures,
media::kExternalClearKeyForTesting.name);
}
@@ -672,4 +676,9 @@ IN_PROC_BROWSER_TEST_F(ECKEncryptedMediaTest, LoadUnknownSession) {
kEmeSessionNotFound);
}
+IN_PROC_BROWSER_TEST_F(ECKEncryptedMediaTest, VerifyHostFilesTest) {
+ TestNonPlaybackCases(kExternalClearKeyVerifyHostFilesTestKeySystem,
+ kUnitTestSuccess);
+}
+
#endif // BUILDFLAG(ENABLE_PEPPER_CDMS)
« no previous file with comments | « no previous file | chrome/common/BUILD.gn » ('j') | chrome/common/media/cdm_host_file_path.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698