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

Side by Side Diff: chrome/browser/content_settings/content_settings_browsertest.cc

Issue 1993973002: Revert "Revert "media: Move widevine CDM targets to WidevineCdm folder"" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add "cdm_paths" target Created 4 years, 7 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
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/load_library_perf_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 } 319 }
320 320
321 #if defined(ENABLE_PLUGINS) 321 #if defined(ENABLE_PLUGINS)
322 class PepperContentSettingsSpecialCasesTest : public ContentSettingsTest { 322 class PepperContentSettingsSpecialCasesTest : public ContentSettingsTest {
323 protected: 323 protected:
324 // Registers any CDM plugins not registered by default. 324 // Registers any CDM plugins not registered by default.
325 void SetUpCommandLine(base::CommandLine* command_line) override { 325 void SetUpCommandLine(base::CommandLine* command_line) override {
326 #if defined(ENABLE_PEPPER_CDMS) 326 #if defined(ENABLE_PEPPER_CDMS)
327 // Append the switch to register the External Clear Key CDM. 327 // Append the switch to register the External Clear Key CDM.
328 base::FilePath::StringType pepper_plugins = BuildPepperCdmRegistration( 328 base::FilePath::StringType pepper_plugins = BuildPepperCdmRegistration(
329 kClearKeyCdmAdapterFileName, kClearKeyCdmDisplayName, 329 kClearKeyCdmBaseDirectory, kClearKeyCdmAdapterFileName,
330 kClearKeyCdmPepperMimeType); 330 kClearKeyCdmDisplayName, kClearKeyCdmPepperMimeType);
331 #if defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_IS_COMPONENT) 331 #if defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_IS_COMPONENT)
332 // The CDM must be registered when it is a component. 332 // The CDM must be registered when it is a component.
333 pepper_plugins.append(FILE_PATH_LITERAL(",")); 333 pepper_plugins.append(FILE_PATH_LITERAL(","));
334 pepper_plugins.append(BuildPepperCdmRegistration( 334 pepper_plugins.append(BuildPepperCdmRegistration(
335 kWidevineCdmAdapterFileName, kWidevineCdmDisplayName, 335 kWidevineCdmBaseDirectory, kWidevineCdmAdapterFileName,
336 kWidevineCdmPluginMimeType)); 336 kWidevineCdmDisplayName, kWidevineCdmPluginMimeType));
337 #endif // defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_IS_COMPONENT) 337 #endif // defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_IS_COMPONENT)
338 command_line->AppendSwitchNative(switches::kRegisterPepperPlugins, 338 command_line->AppendSwitchNative(switches::kRegisterPepperPlugins,
339 pepper_plugins); 339 pepper_plugins);
340 #endif // defined(ENABLE_PEPPER_CDMS) 340 #endif // defined(ENABLE_PEPPER_CDMS)
341 341
342 #if !defined(DISABLE_NACL) 342 #if !defined(DISABLE_NACL)
343 // Ensure NaCl can run. 343 // Ensure NaCl can run.
344 command_line->AppendSwitch(switches::kEnableNaCl); 344 command_line->AppendSwitch(switches::kEnableNaCl);
345 #endif 345 #endif
346 } 346 }
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 #endif // defined(ENABLE_PEPPER_CDMS) 502 #endif // defined(ENABLE_PEPPER_CDMS)
503 503
504 #if !defined(DISABLE_NACL) 504 #if !defined(DISABLE_NACL)
505 IN_PROC_BROWSER_TEST_F(PepperContentSettingsSpecialCasesJavaScriptBlockedTest, 505 IN_PROC_BROWSER_TEST_F(PepperContentSettingsSpecialCasesJavaScriptBlockedTest,
506 NaCl) { 506 NaCl) {
507 RunJavaScriptBlockedTest("load_nacl_no_js.html", true); 507 RunJavaScriptBlockedTest("load_nacl_no_js.html", true);
508 } 508 }
509 #endif // !defined(DISABLE_NACL) 509 #endif // !defined(DISABLE_NACL)
510 510
511 #endif // defined(ENABLE_PLUGINS) 511 #endif // defined(ENABLE_PLUGINS)
OLDNEW
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/load_library_perf_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698