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..77455ba38d133d012c4740e944ff7cdbf1b7b520 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 kExternalClearKeyVerifyCdmHostTestKeySystem[] = |
+ "org.chromium.externalclearkey.verifycdmhosttest"; |
// 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::kIgnoreMissingCdmHostFile); |
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, VerifyCdmHostTest) { |
+ TestNonPlaybackCases(kExternalClearKeyVerifyCdmHostTestKeySystem, |
+ kUnitTestSuccess); |
+} |
+ |
#endif // BUILDFLAG(ENABLE_PEPPER_CDMS) |