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/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "base/win/windows_version.h" | |
12 #include "build/build_config.h" | 11 #include "build/build_config.h" |
13 #include "chrome/browser/media/media_browsertest.h" | 12 #include "chrome/browser/media/media_browsertest.h" |
14 #include "chrome/browser/media/test_license_server.h" | 13 #include "chrome/browser/media/test_license_server.h" |
15 #include "chrome/browser/media/wv_test_license_server_config.h" | 14 #include "chrome/browser/media/wv_test_license_server_config.h" |
16 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
17 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 16 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
18 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
19 #include "chrome/test/base/test_launcher_utils.h" | 18 #include "chrome/test/base/test_launcher_utils.h" |
20 #include "content/public/common/content_switches.h" | 19 #include "content/public/common/content_switches.h" |
21 #include "content/public/test/browser_test_utils.h" | 20 #include "content/public/test/browser_test_utils.h" |
22 #include "media/base/media_switches.h" | 21 #include "media/base/media_switches.h" |
23 #include "ppapi/features/features.h" | 22 #include "ppapi/features/features.h" |
24 #include "testing/gtest/include/gtest/gtest-spi.h" | 23 #include "testing/gtest/include/gtest/gtest-spi.h" |
25 | 24 |
26 #if defined(OS_ANDROID) | 25 #if defined(OS_ANDROID) |
27 #include "base/android/build_info.h" | 26 #include "base/android/build_info.h" |
28 #endif | 27 #endif |
29 | 28 |
| 29 #if defined(OS_WIN) |
| 30 #include "base/win/windows_version.h" |
| 31 #endif |
| 32 |
30 #if BUILDFLAG(ENABLE_PEPPER_CDMS) | 33 #if BUILDFLAG(ENABLE_PEPPER_CDMS) |
31 #include "chrome/browser/media/pepper_cdm_test_constants.h" | 34 #include "chrome/browser/media/pepper_cdm_test_constants.h" |
32 #include "chrome/browser/media/pepper_cdm_test_helper.h" | 35 #include "chrome/browser/media/pepper_cdm_test_helper.h" |
33 #include "media/base/media_switches.h" | 36 #include "media/base/media_switches.h" |
34 #endif | 37 #endif |
35 | 38 |
36 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. | 39 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. |
37 | 40 |
38 // Available key systems. | 41 // Available key systems. |
39 const char kClearKeyKeySystem[] = "org.w3.clearkey"; | 42 const char kClearKeyKeySystem[] = "org.w3.clearkey"; |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 IN_PROC_BROWSER_TEST_F(ECKEncryptedMediaTest, LoadLoadableSession) { | 666 IN_PROC_BROWSER_TEST_F(ECKEncryptedMediaTest, LoadLoadableSession) { |
664 TestPlaybackCase(kExternalClearKeyKeySystem, kLoadableSession, kEnded); | 667 TestPlaybackCase(kExternalClearKeyKeySystem, kLoadableSession, kEnded); |
665 } | 668 } |
666 | 669 |
667 IN_PROC_BROWSER_TEST_F(ECKEncryptedMediaTest, LoadUnknownSession) { | 670 IN_PROC_BROWSER_TEST_F(ECKEncryptedMediaTest, LoadUnknownSession) { |
668 TestPlaybackCase(kExternalClearKeyKeySystem, kUnknownSession, | 671 TestPlaybackCase(kExternalClearKeyKeySystem, kUnknownSession, |
669 kEmeSessionNotFound); | 672 kEmeSessionNotFound); |
670 } | 673 } |
671 | 674 |
672 #endif // BUILDFLAG(ENABLE_PEPPER_CDMS) | 675 #endif // BUILDFLAG(ENABLE_PEPPER_CDMS) |
OLD | NEW |