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

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

Issue 1989893004: media: Use platform specific folders for CDMs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: specify both paths in chrome.release 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
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 <memory> 5 #include <memory>
6 #include <utility> 6 #include <utility>
7 7
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 void SetUpCommandLineForKeySystem(const std::string& key_system, 244 void SetUpCommandLineForKeySystem(const std::string& key_system,
245 base::CommandLine* command_line) { 245 base::CommandLine* command_line) {
246 if (GetServerConfig(key_system)) 246 if (GetServerConfig(key_system))
247 // Since the web and license servers listen on different ports, we need to 247 // Since the web and license servers listen on different ports, we need to
248 // disable web-security to send license requests to the license server. 248 // disable web-security to send license requests to the license server.
249 // TODO(shadi): Add port forwarding to the test web server configuration. 249 // TODO(shadi): Add port forwarding to the test web server configuration.
250 command_line->AppendSwitch(switches::kDisableWebSecurity); 250 command_line->AppendSwitch(switches::kDisableWebSecurity);
251 251
252 #if defined(ENABLE_PEPPER_CDMS) 252 #if defined(ENABLE_PEPPER_CDMS)
253 if (IsExternalClearKey(key_system)) { 253 if (IsExternalClearKey(key_system)) {
254 RegisterPepperCdm(command_line, kClearKeyCdmAdapterFileName, 254 RegisterPepperCdm(command_line, kClearKeyCdmBaseDirectory,
255 kClearKeyCdmDisplayName, kClearKeyCdmPepperMimeType); 255 kClearKeyCdmAdapterFileName, kClearKeyCdmDisplayName,
256 kClearKeyCdmPepperMimeType);
256 } 257 }
257 #if defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_IS_COMPONENT) 258 #if defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_IS_COMPONENT)
258 else if (IsWidevine(key_system)) { // NOLINT 259 else if (IsWidevine(key_system)) { // NOLINT
259 RegisterPepperCdm(command_line, kWidevineCdmAdapterFileName, 260 RegisterPepperCdm(command_line, kWidevineCdmBaseDirectory,
260 kWidevineCdmDisplayName, kWidevineCdmPluginMimeType); 261 kWidevineCdmAdapterFileName, kWidevineCdmDisplayName,
262 kWidevineCdmPluginMimeType);
261 } 263 }
262 #endif // defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_IS_COMPONENT) 264 #endif // defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_IS_COMPONENT)
263 #endif // defined(ENABLE_PEPPER_CDMS) 265 #endif // defined(ENABLE_PEPPER_CDMS)
264 } 266 }
265 }; 267 };
266 268
267 #if defined(ENABLE_PEPPER_CDMS) 269 #if defined(ENABLE_PEPPER_CDMS)
268 // Tests encrypted media playback using ExternalClearKey key system in 270 // Tests encrypted media playback using ExternalClearKey key system in
269 // decrypt-and-decode mode. 271 // decrypt-and-decode mode.
270 class ECKEncryptedMediaTest : public EncryptedMediaTestBase { 272 class ECKEncryptedMediaTest : public EncryptedMediaTestBase {
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 623
622 IN_PROC_BROWSER_TEST_F(ECKEncryptedMediaTest, LoadLoadableSession) { 624 IN_PROC_BROWSER_TEST_F(ECKEncryptedMediaTest, LoadLoadableSession) {
623 TestPlaybackCase(kLoadableSession, kEnded); 625 TestPlaybackCase(kLoadableSession, kEnded);
624 } 626 }
625 627
626 IN_PROC_BROWSER_TEST_F(ECKEncryptedMediaTest, LoadUnknownSession) { 628 IN_PROC_BROWSER_TEST_F(ECKEncryptedMediaTest, LoadUnknownSession) {
627 TestPlaybackCase(kUnknownSession, kEmeSessionNotFound); 629 TestPlaybackCase(kUnknownSession, kEmeSessionNotFound);
628 } 630 }
629 631
630 #endif // defined(ENABLE_PEPPER_CDMS) 632 #endif // defined(ENABLE_PEPPER_CDMS)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698