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

Side by Side Diff: chrome/browser/media/encrypted_media_supported_types_browsertest.cc

Issue 2412493003: Revert of Move ENABLE_PEPPER_CDMS to a buildflag header. (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/base_switches.h" 10 #include "base/base_switches.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/common/chrome_switches.h" 21 #include "chrome/common/chrome_switches.h"
22 #include "chrome/test/base/in_process_browser_test.h" 22 #include "chrome/test/base/in_process_browser_test.h"
23 #include "chrome/test/base/test_launcher_utils.h" 23 #include "chrome/test/base/test_launcher_utils.h"
24 #include "chrome/test/base/ui_test_utils.h" 24 #include "chrome/test/base/ui_test_utils.h"
25 #include "content/public/common/content_switches.h" 25 #include "content/public/common/content_switches.h"
26 #include "content/public/test/browser_test_utils.h" 26 #include "content/public/test/browser_test_utils.h"
27 #include "media/base/media_switches.h" 27 #include "media/base/media_switches.h"
28 #include "media/base/test_data_util.h" 28 #include "media/base/test_data_util.h"
29 #include "media/media_features.h" 29 #include "media/media_features.h"
30 #include "net/test/embedded_test_server/embedded_test_server.h" 30 #include "net/test/embedded_test_server/embedded_test_server.h"
31 #include "ppapi/features/features.h"
32 #include "url/gurl.h" 31 #include "url/gurl.h"
33 32
34 #if BUILDFLAG(ENABLE_PEPPER_CDMS) 33 #if defined(ENABLE_PEPPER_CDMS)
35 #include "chrome/browser/media/pepper_cdm_test_constants.h" 34 #include "chrome/browser/media/pepper_cdm_test_constants.h"
36 #include "chrome/browser/media/pepper_cdm_test_helper.h" 35 #include "chrome/browser/media/pepper_cdm_test_helper.h"
37 #endif 36 #endif
38 37
39 #if defined(OS_ANDROID) 38 #if defined(OS_ANDROID)
40 #error This file needs to be updated to run on Android. 39 #error This file needs to be updated to run on Android.
41 #endif 40 #endif
42 41
43 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. 42 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR.
44 43
(...skipping 27 matching lines...) Expand all
72 #define EXPECT_UNKNOWN_KEYSYSTEM(test) EXPECT_EQ(kUnsupportedResult, test) 71 #define EXPECT_UNKNOWN_KEYSYSTEM(test) EXPECT_EQ(kUnsupportedResult, test)
73 #define EXPECT_NO_MATCH(test) EXPECT_EQ(kNoMatchResult, test) 72 #define EXPECT_NO_MATCH(test) EXPECT_EQ(kNoMatchResult, test)
74 73
75 #if defined(USE_PROPRIETARY_CODECS) 74 #if defined(USE_PROPRIETARY_CODECS)
76 #define EXPECT_PROPRIETARY EXPECT_SUCCESS 75 #define EXPECT_PROPRIETARY EXPECT_SUCCESS
77 #else 76 #else
78 #define EXPECT_PROPRIETARY EXPECT_NO_MATCH 77 #define EXPECT_PROPRIETARY EXPECT_NO_MATCH
79 #endif 78 #endif
80 79
81 // Expectations for External Clear Key. 80 // Expectations for External Clear Key.
82 #if BUILDFLAG(ENABLE_PEPPER_CDMS) 81 #if defined(ENABLE_PEPPER_CDMS)
83 #define EXPECT_ECK EXPECT_SUCCESS 82 #define EXPECT_ECK EXPECT_SUCCESS
84 #define EXPECT_ECK_PROPRIETARY EXPECT_PROPRIETARY 83 #define EXPECT_ECK_PROPRIETARY EXPECT_PROPRIETARY
85 #define EXPECT_ECK_NO_MATCH EXPECT_NO_MATCH 84 #define EXPECT_ECK_NO_MATCH EXPECT_NO_MATCH
86 #else 85 #else
87 #define EXPECT_ECK EXPECT_UNKNOWN_KEYSYSTEM 86 #define EXPECT_ECK EXPECT_UNKNOWN_KEYSYSTEM
88 #define EXPECT_ECK_PROPRIETARY EXPECT_UNKNOWN_KEYSYSTEM 87 #define EXPECT_ECK_PROPRIETARY EXPECT_UNKNOWN_KEYSYSTEM
89 #define EXPECT_ECK_NO_MATCH EXPECT_UNKNOWN_KEYSYSTEM 88 #define EXPECT_ECK_NO_MATCH EXPECT_UNKNOWN_KEYSYSTEM
90 #endif // BUILDFLAG(ENABLE_PEPPER_CDMS) 89 #endif // defined(ENABLE_PEPPER_CDMS)
91 90
92 // Expectations for Widevine. 91 // Expectations for Widevine.
93 #if defined(WIDEVINE_CDM_AVAILABLE) 92 #if defined(WIDEVINE_CDM_AVAILABLE)
94 #define EXPECT_WV_SUCCESS EXPECT_SUCCESS 93 #define EXPECT_WV_SUCCESS EXPECT_SUCCESS
95 #define EXPECT_WV_PROPRIETARY EXPECT_PROPRIETARY 94 #define EXPECT_WV_PROPRIETARY EXPECT_PROPRIETARY
96 #define EXPECT_WV_NO_MATCH EXPECT_NO_MATCH 95 #define EXPECT_WV_NO_MATCH EXPECT_NO_MATCH
97 #else // defined(WIDEVINE_CDM_AVAILABLE) 96 #else // defined(WIDEVINE_CDM_AVAILABLE)
98 #define EXPECT_WV_SUCCESS EXPECT_UNKNOWN_KEYSYSTEM 97 #define EXPECT_WV_SUCCESS EXPECT_UNKNOWN_KEYSYSTEM
99 #define EXPECT_WV_PROPRIETARY EXPECT_UNKNOWN_KEYSYSTEM 98 #define EXPECT_WV_PROPRIETARY EXPECT_UNKNOWN_KEYSYSTEM
100 #define EXPECT_WV_NO_MATCH EXPECT_UNKNOWN_KEYSYSTEM 99 #define EXPECT_WV_NO_MATCH EXPECT_UNKNOWN_KEYSYSTEM
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 const CodecVector& no_codecs() const { return no_codecs_; } 160 const CodecVector& no_codecs() const { return no_codecs_; }
162 const CodecVector& audio_webm_codecs() const { return audio_webm_codecs_; } 161 const CodecVector& audio_webm_codecs() const { return audio_webm_codecs_; }
163 const CodecVector& video_webm_codecs() const { return video_webm_codecs_; } 162 const CodecVector& video_webm_codecs() const { return video_webm_codecs_; }
164 const CodecVector& audio_mp4_codecs() const { return audio_mp4_codecs_; } 163 const CodecVector& audio_mp4_codecs() const { return audio_mp4_codecs_; }
165 const CodecVector& video_mp4_codecs() const { return video_mp4_codecs_; } 164 const CodecVector& video_mp4_codecs() const { return video_mp4_codecs_; }
166 const CodecVector& video_mp4_hi10p_codecs() const { 165 const CodecVector& video_mp4_hi10p_codecs() const {
167 return video_mp4_hi10p_codecs_; 166 return video_mp4_hi10p_codecs_;
168 } 167 }
169 const CodecVector& invalid_codecs() const { return invalid_codecs_; } 168 const CodecVector& invalid_codecs() const { return invalid_codecs_; }
170 169
171 #if BUILDFLAG(ENABLE_PEPPER_CDMS) 170 #if defined(ENABLE_PEPPER_CDMS)
172 void SetUpDefaultCommandLine(base::CommandLine* command_line) override { 171 void SetUpDefaultCommandLine(base::CommandLine* command_line) override {
173 base::CommandLine default_command_line(base::CommandLine::NO_PROGRAM); 172 base::CommandLine default_command_line(base::CommandLine::NO_PROGRAM);
174 InProcessBrowserTest::SetUpDefaultCommandLine(&default_command_line); 173 InProcessBrowserTest::SetUpDefaultCommandLine(&default_command_line);
175 test_launcher_utils::RemoveCommandLineSwitch( 174 test_launcher_utils::RemoveCommandLineSwitch(
176 default_command_line, switches::kDisableComponentUpdate, command_line); 175 default_command_line, switches::kDisableComponentUpdate, command_line);
177 } 176 }
178 #endif // BUILDFLAG(ENABLE_PEPPER_CDMS) 177 #endif // defined(ENABLE_PEPPER_CDMS)
179 178
180 void SetUpOnMainThread() override { 179 void SetUpOnMainThread() override {
181 InProcessBrowserTest::SetUpOnMainThread(); 180 InProcessBrowserTest::SetUpOnMainThread();
182 181
183 // Load the test page needed so that checkKeySystemWithMediaMimeType() 182 // Load the test page needed so that checkKeySystemWithMediaMimeType()
184 // is available. 183 // is available.
185 std::unique_ptr<net::EmbeddedTestServer> http_test_server( 184 std::unique_ptr<net::EmbeddedTestServer> http_test_server(
186 new net::EmbeddedTestServer); 185 new net::EmbeddedTestServer);
187 http_test_server->ServeFilesFromSourceDirectory(media::GetTestDataPath()); 186 http_test_server->ServeFilesFromSourceDirectory(media::GetTestDataPath());
188 CHECK(http_test_server->Start()); 187 CHECK(http_test_server->Start());
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 }; 272 };
274 273
275 // For ClearKey, nothing additional is required. 274 // For ClearKey, nothing additional is required.
276 class EncryptedMediaSupportedTypesClearKeyTest 275 class EncryptedMediaSupportedTypesClearKeyTest
277 : public EncryptedMediaSupportedTypesTest { 276 : public EncryptedMediaSupportedTypesTest {
278 }; 277 };
279 278
280 // For ExternalClearKey tests, ensure that the ClearKey adapter is loaded. 279 // For ExternalClearKey tests, ensure that the ClearKey adapter is loaded.
281 class EncryptedMediaSupportedTypesExternalClearKeyTest 280 class EncryptedMediaSupportedTypesExternalClearKeyTest
282 : public EncryptedMediaSupportedTypesTest { 281 : public EncryptedMediaSupportedTypesTest {
283 #if BUILDFLAG(ENABLE_PEPPER_CDMS) 282 #if defined(ENABLE_PEPPER_CDMS)
284 protected: 283 protected:
285 void SetUpCommandLine(base::CommandLine* command_line) override { 284 void SetUpCommandLine(base::CommandLine* command_line) override {
286 EncryptedMediaSupportedTypesTest::SetUpCommandLine(command_line); 285 EncryptedMediaSupportedTypesTest::SetUpCommandLine(command_line);
287 RegisterPepperCdm(command_line, kClearKeyCdmBaseDirectory, 286 RegisterPepperCdm(command_line, kClearKeyCdmBaseDirectory,
288 kClearKeyCdmAdapterFileName, kClearKeyCdmDisplayName, 287 kClearKeyCdmAdapterFileName, kClearKeyCdmDisplayName,
289 kClearKeyCdmPepperMimeType); 288 kClearKeyCdmPepperMimeType);
290 command_line->AppendSwitchASCII(switches::kEnableFeatures, 289 command_line->AppendSwitchASCII(switches::kEnableFeatures,
291 media::kExternalClearKeyForTesting.name); 290 media::kExternalClearKeyForTesting.name);
292 } 291 }
293 #endif // BUILDFLAG(ENABLE_PEPPER_CDMS) 292 #endif // defined(ENABLE_PEPPER_CDMS)
294 }; 293 };
295 294
296 // By default, the External Clear Key (ECK) key system is not supported even if 295 // By default, the External Clear Key (ECK) key system is not supported even if
297 // present. This test case tests this behavior by not enabling 296 // present. This test case tests this behavior by not enabling
298 // kExternalClearKeyForTesting. 297 // kExternalClearKeyForTesting.
299 // Even registering the Pepper CDM where applicable does not enable the CDM. 298 // Even registering the Pepper CDM where applicable does not enable the CDM.
300 class EncryptedMediaSupportedTypesExternalClearKeyNotEnabledTest 299 class EncryptedMediaSupportedTypesExternalClearKeyNotEnabledTest
301 : public EncryptedMediaSupportedTypesTest { 300 : public EncryptedMediaSupportedTypesTest {
302 protected: 301 protected:
303 void SetUpCommandLine(base::CommandLine* command_line) override { 302 void SetUpCommandLine(base::CommandLine* command_line) override {
304 EncryptedMediaSupportedTypesTest::SetUpCommandLine(command_line); 303 EncryptedMediaSupportedTypesTest::SetUpCommandLine(command_line);
305 #if BUILDFLAG(ENABLE_PEPPER_CDMS) 304 #if defined(ENABLE_PEPPER_CDMS)
306 RegisterPepperCdm(command_line, kClearKeyCdmBaseDirectory, 305 RegisterPepperCdm(command_line, kClearKeyCdmBaseDirectory,
307 kClearKeyCdmAdapterFileName, kClearKeyCdmDisplayName, 306 kClearKeyCdmAdapterFileName, kClearKeyCdmDisplayName,
308 kClearKeyCdmPepperMimeType); 307 kClearKeyCdmPepperMimeType);
309 #endif // BUILDFLAG(ENABLE_PEPPER_CDMS) 308 #endif // defined(ENABLE_PEPPER_CDMS)
310 } 309 }
311 }; 310 };
312 311
313 class EncryptedMediaSupportedTypesWidevineTest 312 class EncryptedMediaSupportedTypesWidevineTest
314 : public EncryptedMediaSupportedTypesTest { 313 : public EncryptedMediaSupportedTypesTest {
315 }; 314 };
316 315
317 #if BUILDFLAG(ENABLE_PEPPER_CDMS) 316 #if defined(ENABLE_PEPPER_CDMS)
318 // Registers ClearKey CDM with the wrong path (filename). 317 // Registers ClearKey CDM with the wrong path (filename).
319 class EncryptedMediaSupportedTypesClearKeyCDMRegisteredWithWrongPathTest 318 class EncryptedMediaSupportedTypesClearKeyCDMRegisteredWithWrongPathTest
320 : public EncryptedMediaSupportedTypesTest { 319 : public EncryptedMediaSupportedTypesTest {
321 protected: 320 protected:
322 void SetUpCommandLine(base::CommandLine* command_line) override { 321 void SetUpCommandLine(base::CommandLine* command_line) override {
323 EncryptedMediaSupportedTypesTest::SetUpCommandLine(command_line); 322 EncryptedMediaSupportedTypesTest::SetUpCommandLine(command_line);
324 RegisterPepperCdm(command_line, kClearKeyCdmBaseDirectory, 323 RegisterPepperCdm(command_line, kClearKeyCdmBaseDirectory,
325 "clearkeycdmadapterwrongname.dll", 324 "clearkeycdmadapterwrongname.dll",
326 kClearKeyCdmDisplayName, kClearKeyCdmPepperMimeType, 325 kClearKeyCdmDisplayName, kClearKeyCdmPepperMimeType,
327 false); 326 false);
328 command_line->AppendSwitchASCII(switches::kEnableFeatures, 327 command_line->AppendSwitchASCII(switches::kEnableFeatures,
329 media::kExternalClearKeyForTesting.name); 328 media::kExternalClearKeyForTesting.name);
330 } 329 }
331 }; 330 };
332 331
333 // Registers Widevine CDM with the wrong path (filename). 332 // Registers Widevine CDM with the wrong path (filename).
334 class EncryptedMediaSupportedTypesWidevineCDMRegisteredWithWrongPathTest 333 class EncryptedMediaSupportedTypesWidevineCDMRegisteredWithWrongPathTest
335 : public EncryptedMediaSupportedTypesTest { 334 : public EncryptedMediaSupportedTypesTest {
336 protected: 335 protected:
337 void SetUpCommandLine(base::CommandLine* command_line) override { 336 void SetUpCommandLine(base::CommandLine* command_line) override {
338 EncryptedMediaSupportedTypesTest::SetUpCommandLine(command_line); 337 EncryptedMediaSupportedTypesTest::SetUpCommandLine(command_line);
339 RegisterPepperCdm(command_line, "WidevineCdm", 338 RegisterPepperCdm(command_line, "WidevineCdm",
340 "widevinecdmadapterwrongname.dll", 339 "widevinecdmadapterwrongname.dll",
341 "Widevine Content Decryption Module", 340 "Widevine Content Decryption Module",
342 "application/x-ppapi-widevine-cdm", false); 341 "application/x-ppapi-widevine-cdm", false);
343 } 342 }
344 }; 343 };
345 344
346 #endif // BUILDFLAG(ENABLE_PEPPER_CDMS) 345 #endif // defined(ENABLE_PEPPER_CDMS)
347 346
348 IN_PROC_BROWSER_TEST_F(EncryptedMediaSupportedTypesClearKeyTest, Basic) { 347 IN_PROC_BROWSER_TEST_F(EncryptedMediaSupportedTypesClearKeyTest, Basic) {
349 EXPECT_SUCCESS(AreCodecsSupportedByKeySystem( 348 EXPECT_SUCCESS(AreCodecsSupportedByKeySystem(
350 kVideoWebMMimeType, no_codecs(), kClearKey)); 349 kVideoWebMMimeType, no_codecs(), kClearKey));
351 EXPECT_SUCCESS(AreCodecsSupportedByKeySystem( 350 EXPECT_SUCCESS(AreCodecsSupportedByKeySystem(
352 kAudioWebMMimeType, no_codecs(), kClearKey)); 351 kAudioWebMMimeType, no_codecs(), kClearKey));
353 EXPECT_PROPRIETARY(AreCodecsSupportedByKeySystem( 352 EXPECT_PROPRIETARY(AreCodecsSupportedByKeySystem(
354 kVideoMP4MimeType, no_codecs(), kClearKey)); 353 kVideoMP4MimeType, no_codecs(), kClearKey));
355 EXPECT_PROPRIETARY(AreCodecsSupportedByKeySystem( 354 EXPECT_PROPRIETARY(AreCodecsSupportedByKeySystem(
356 kAudioMP4MimeType, no_codecs(), kClearKey)); 355 kAudioMP4MimeType, no_codecs(), kClearKey));
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 EXPECT_NO_MATCH(AreCodecsSupportedByKeySystem( 467 EXPECT_NO_MATCH(AreCodecsSupportedByKeySystem(
469 kAudioMP4MimeType, audio_webm_codecs(), kClearKey)); 468 kAudioMP4MimeType, audio_webm_codecs(), kClearKey));
470 EXPECT_NO_MATCH(AreCodecsSupportedByKeySystem( 469 EXPECT_NO_MATCH(AreCodecsSupportedByKeySystem(
471 kAudioMP4MimeType, video_webm_codecs(), kClearKey)); 470 kAudioMP4MimeType, video_webm_codecs(), kClearKey));
472 } 471 }
473 472
474 // 473 //
475 // External Clear Key 474 // External Clear Key
476 // 475 //
477 476
478 // When BUILDFLAG(ENABLE_PEPPER_CDMS), this also tests the Pepper CDM check. 477 // When defined(ENABLE_PEPPER_CDMS), this also tests the Pepper CDM check.
479 IN_PROC_BROWSER_TEST_F(EncryptedMediaSupportedTypesExternalClearKeyTest, 478 IN_PROC_BROWSER_TEST_F(EncryptedMediaSupportedTypesExternalClearKeyTest,
480 Basic) { 479 Basic) {
481 EXPECT_ECK(AreCodecsSupportedByKeySystem( 480 EXPECT_ECK(AreCodecsSupportedByKeySystem(
482 kVideoWebMMimeType, no_codecs(), kExternalClearKey)); 481 kVideoWebMMimeType, no_codecs(), kExternalClearKey));
483 EXPECT_ECK(AreCodecsSupportedByKeySystem( 482 EXPECT_ECK(AreCodecsSupportedByKeySystem(
484 kAudioWebMMimeType, no_codecs(), kExternalClearKey)); 483 kAudioWebMMimeType, no_codecs(), kExternalClearKey));
485 EXPECT_ECK_PROPRIETARY(AreCodecsSupportedByKeySystem( 484 EXPECT_ECK_PROPRIETARY(AreCodecsSupportedByKeySystem(
486 kVideoMP4MimeType, no_codecs(), kExternalClearKey)); 485 kVideoMP4MimeType, no_codecs(), kExternalClearKey));
487 EXPECT_ECK_PROPRIETARY(AreCodecsSupportedByKeySystem( 486 EXPECT_ECK_PROPRIETARY(AreCodecsSupportedByKeySystem(
488 kAudioMP4MimeType, no_codecs(), kExternalClearKey)); 487 kAudioMP4MimeType, no_codecs(), kExternalClearKey));
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 692
694 // Invalid or Non-MP4 codec. 693 // Invalid or Non-MP4 codec.
695 EXPECT_WV_NO_MATCH(AreCodecsSupportedByKeySystem( 694 EXPECT_WV_NO_MATCH(AreCodecsSupportedByKeySystem(
696 kAudioMP4MimeType, invalid_codecs(), kWidevine)); 695 kAudioMP4MimeType, invalid_codecs(), kWidevine));
697 EXPECT_WV_NO_MATCH(AreCodecsSupportedByKeySystem( 696 EXPECT_WV_NO_MATCH(AreCodecsSupportedByKeySystem(
698 kAudioMP4MimeType, audio_webm_codecs(), kWidevine)); 697 kAudioMP4MimeType, audio_webm_codecs(), kWidevine));
699 EXPECT_WV_NO_MATCH(AreCodecsSupportedByKeySystem( 698 EXPECT_WV_NO_MATCH(AreCodecsSupportedByKeySystem(
700 kAudioMP4MimeType, video_webm_codecs(), kWidevine)); 699 kAudioMP4MimeType, video_webm_codecs(), kWidevine));
701 } 700 }
702 701
703 #if BUILDFLAG(ENABLE_PEPPER_CDMS) 702 #if defined(ENABLE_PEPPER_CDMS)
704 // Since this test fixture does not register the CDMs on the command line, the 703 // Since this test fixture does not register the CDMs on the command line, the
705 // check for the CDMs in chrome_key_systems.cc should fail, and they should not 704 // check for the CDMs in chrome_key_systems.cc should fail, and they should not
706 // be registered with KeySystems. 705 // be registered with KeySystems.
707 IN_PROC_BROWSER_TEST_F(EncryptedMediaSupportedTypesTest, 706 IN_PROC_BROWSER_TEST_F(EncryptedMediaSupportedTypesTest,
708 PepperCDMsNotRegistered) { 707 PepperCDMsNotRegistered) {
709 EXPECT_UNKNOWN_KEYSYSTEM(AreCodecsSupportedByKeySystem( 708 EXPECT_UNKNOWN_KEYSYSTEM(AreCodecsSupportedByKeySystem(
710 kVideoWebMMimeType, no_codecs(), kExternalClearKey)); 709 kVideoWebMMimeType, no_codecs(), kExternalClearKey));
711 710
712 // This will fail in all builds unless widevine is available. 711 // This will fail in all builds unless widevine is available.
713 #if !defined(WIDEVINE_CDM_AVAILABLE) 712 #if !defined(WIDEVINE_CDM_AVAILABLE)
(...skipping 26 matching lines...) Expand all
740 EncryptedMediaSupportedTypesWidevineCDMRegisteredWithWrongPathTest, 739 EncryptedMediaSupportedTypesWidevineCDMRegisteredWithWrongPathTest,
741 PepperCDMsRegisteredButAdapterNotPresent) { 740 PepperCDMsRegisteredButAdapterNotPresent) {
742 EXPECT_UNKNOWN_KEYSYSTEM(AreCodecsSupportedByKeySystem( 741 EXPECT_UNKNOWN_KEYSYSTEM(AreCodecsSupportedByKeySystem(
743 kVideoWebMMimeType, no_codecs(), kWidevine)); 742 kVideoWebMMimeType, no_codecs(), kWidevine));
744 743
745 // Clear Key should still be registered. 744 // Clear Key should still be registered.
746 EXPECT_SUCCESS(AreCodecsSupportedByKeySystem( 745 EXPECT_SUCCESS(AreCodecsSupportedByKeySystem(
747 kVideoWebMMimeType, no_codecs(), kClearKey)); 746 kVideoWebMMimeType, no_codecs(), kClearKey));
748 } 747 }
749 #endif // !defined(WIDEVINE_CDM_AVAILABLE) 748 #endif // !defined(WIDEVINE_CDM_AVAILABLE)
750 #endif // BUILDFLAG(ENABLE_PEPPER_CDMS) 749 #endif // defined(ENABLE_PEPPER_CDMS)
751
752 } // namespace chrome 750 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/media/encrypted_media_browsertest.cc ('k') | chrome/browser/plugins/plugin_info_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698