| OLD | NEW |
| 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/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 // Since the web and license servers listen on different ports, we need to | 287 // Since the web and license servers listen on different ports, we need to |
| 288 // disable web-security to send license requests to the license server. | 288 // disable web-security to send license requests to the license server. |
| 289 // TODO(shadi): Add port forwarding to the test web server configuration. | 289 // TODO(shadi): Add port forwarding to the test web server configuration. |
| 290 command_line->AppendSwitch(switches::kDisableWebSecurity); | 290 command_line->AppendSwitch(switches::kDisableWebSecurity); |
| 291 | 291 |
| 292 #if BUILDFLAG(ENABLE_PEPPER_CDMS) | 292 #if BUILDFLAG(ENABLE_PEPPER_CDMS) |
| 293 if (IsExternalClearKey(key_system)) { | 293 if (IsExternalClearKey(key_system)) { |
| 294 RegisterPepperCdm(command_line, kClearKeyCdmBaseDirectory, | 294 RegisterPepperCdm(command_line, kClearKeyCdmBaseDirectory, |
| 295 kClearKeyCdmAdapterFileName, kClearKeyCdmDisplayName, | 295 kClearKeyCdmAdapterFileName, kClearKeyCdmDisplayName, |
| 296 kClearKeyCdmPepperMimeType); | 296 kClearKeyCdmPepperMimeType); |
| 297 // Need to tell CdmHostFile(s) to ignore missing CDM host files in tests. |
| 298 command_line->AppendSwitch(switches::kIgnoreMissingCdmHostFile); |
| 297 command_line->AppendSwitchASCII(switches::kEnableFeatures, | 299 command_line->AppendSwitchASCII(switches::kEnableFeatures, |
| 298 media::kExternalClearKeyForTesting.name); | 300 media::kExternalClearKeyForTesting.name); |
| 299 } | 301 } |
| 300 #endif // BUILDFLAG(ENABLE_PEPPER_CDMS) | 302 #endif // BUILDFLAG(ENABLE_PEPPER_CDMS) |
| 301 } | 303 } |
| 302 }; | 304 }; |
| 303 | 305 |
| 304 #if BUILDFLAG(ENABLE_PEPPER_CDMS) | 306 #if BUILDFLAG(ENABLE_PEPPER_CDMS) |
| 305 // Tests encrypted media playback using ExternalClearKey key system in | 307 // Tests encrypted media playback using ExternalClearKey key system in |
| 306 // decrypt-and-decode mode. | 308 // decrypt-and-decode mode. |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 #endif // BUILDFLAG(ENABLE_PEPPER_CDMS) | 742 #endif // BUILDFLAG(ENABLE_PEPPER_CDMS) |
| 741 | 743 |
| 742 #if BUILDFLAG(ENABLE_CDM_HOST_VERIFICATION) | 744 #if BUILDFLAG(ENABLE_CDM_HOST_VERIFICATION) |
| 743 IN_PROC_BROWSER_TEST_F(ECKEncryptedMediaTest, VerifyCdmHostTest) { | 745 IN_PROC_BROWSER_TEST_F(ECKEncryptedMediaTest, VerifyCdmHostTest) { |
| 744 TestNonPlaybackCases(kExternalClearKeyVerifyCdmHostTestKeySystem, | 746 TestNonPlaybackCases(kExternalClearKeyVerifyCdmHostTestKeySystem, |
| 745 kUnitTestSuccess); | 747 kUnitTestSuccess); |
| 746 } | 748 } |
| 747 #endif // BUILDFLAG(ENABLE_CDM_HOST_VERIFICATION) | 749 #endif // BUILDFLAG(ENABLE_CDM_HOST_VERIFICATION) |
| 748 | 750 |
| 749 } // namespace chrome | 751 } // namespace chrome |
| OLD | NEW |