| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
| 7 #include "base/win/windows_version.h" | 7 #include "base/win/windows_version.h" |
| 8 #include "content/browser/media/media_browsertest.h" | 8 #include "content/browser/media/media_browsertest.h" |
| 9 #include "content/public/common/content_switches.h" | 9 #include "content/public/common/content_switches.h" |
| 10 #include "content/public/test/browser_test_utils.h" | 10 #include "content/public/test/browser_test_utils.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 RunEncryptedMediaTest(kDefaultEmePlayer, | 117 RunEncryptedMediaTest(kDefaultEmePlayer, |
| 118 media_file, | 118 media_file, |
| 119 media_type, | 119 media_type, |
| 120 key_system, | 120 key_system, |
| 121 src_type, | 121 src_type, |
| 122 kEnded); | 122 kEnded); |
| 123 } | 123 } |
| 124 | 124 |
| 125 protected: | 125 protected: |
| 126 // We want to fail quickly when a test fails because an error is encountered. | 126 // We want to fail quickly when a test fails because an error is encountered. |
| 127 virtual void AddWaitForTitles(content::TitleWatcher* title_watcher) OVERRIDE { | 127 virtual void AddWaitForTitles(content::TitleWatcher* title_watcher) override { |
| 128 MediaBrowserTest::AddWaitForTitles(title_watcher); | 128 MediaBrowserTest::AddWaitForTitles(title_watcher); |
| 129 title_watcher->AlsoWaitForTitle(base::ASCIIToUTF16(kEmeNotSupportedError)); | 129 title_watcher->AlsoWaitForTitle(base::ASCIIToUTF16(kEmeNotSupportedError)); |
| 130 title_watcher->AlsoWaitForTitle(base::ASCIIToUTF16(kEmeKeyError)); | 130 title_watcher->AlsoWaitForTitle(base::ASCIIToUTF16(kEmeKeyError)); |
| 131 } | 131 } |
| 132 | 132 |
| 133 #if defined(OS_ANDROID) | 133 #if defined(OS_ANDROID) |
| 134 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { | 134 virtual void SetUpCommandLine(CommandLine* command_line) override { |
| 135 command_line->AppendSwitch( | 135 command_line->AppendSwitch( |
| 136 switches::kDisableGestureRequirementForMediaPlayback); | 136 switches::kDisableGestureRequirementForMediaPlayback); |
| 137 } | 137 } |
| 138 #endif | 138 #endif |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 using ::testing::Combine; | 141 using ::testing::Combine; |
| 142 using ::testing::Values; | 142 using ::testing::Values; |
| 143 | 143 |
| 144 #if !defined(OS_ANDROID) | 144 #if !defined(OS_ANDROID) |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 IN_PROC_BROWSER_TEST_F(EncryptedMediaTest, UnknownKeySystemThrowsException) { | 186 IN_PROC_BROWSER_TEST_F(EncryptedMediaTest, UnknownKeySystemThrowsException) { |
| 187 RunEncryptedMediaTest(kDefaultEmePlayer, | 187 RunEncryptedMediaTest(kDefaultEmePlayer, |
| 188 "bear-a_enc-a.webm", | 188 "bear-a_enc-a.webm", |
| 189 kWebMAudioOnly, | 189 kWebMAudioOnly, |
| 190 "com.example.foo", | 190 "com.example.foo", |
| 191 MSE, | 191 MSE, |
| 192 kEmeNotSupportedError); | 192 kEmeNotSupportedError); |
| 193 } | 193 } |
| 194 | 194 |
| 195 } // namespace content | 195 } // namespace content |
| OLD | NEW |