| 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/string_number_conversions.h" | 6 #include "base/strings/string_number_conversions.h" |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/browser/media/media_browsertest.h" | 9 #include "content/browser/media/media_browsertest.h" |
| 10 #include "content/public/common/content_switches.h" | 10 #include "content/public/common/content_switches.h" |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 #endif | 237 #endif |
| 238 TestSimplePlayback("bear-320x240-opus-av_enc-v.webm", kWebMOpusAudioVP9Video); | 238 TestSimplePlayback("bear-320x240-opus-av_enc-v.webm", kWebMOpusAudioVP9Video); |
| 239 } | 239 } |
| 240 | 240 |
| 241 // Strictly speaking this is not an "encrypted" media test. Keep it here for | 241 // Strictly speaking this is not an "encrypted" media test. Keep it here for |
| 242 // completeness. | 242 // completeness. |
| 243 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, ConfigChangeVideo_ClearToClear) { | 243 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, ConfigChangeVideo_ClearToClear) { |
| 244 TestConfigChange(ConfigChangeType::CLEAR_TO_CLEAR); | 244 TestConfigChange(ConfigChangeType::CLEAR_TO_CLEAR); |
| 245 } | 245 } |
| 246 | 246 |
| 247 // TODO(xhwang): Support switching from clear to encrypted and enable this test. | 247 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, ConfigChangeVideo_ClearToEncrypted) { |
| 248 // See http://crbug.com/597443 | |
| 249 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, | |
| 250 DISABLED_ConfigChangeVideo_ClearToEncrypted) { | |
| 251 TestConfigChange(ConfigChangeType::CLEAR_TO_ENCRYPTED); | 248 TestConfigChange(ConfigChangeType::CLEAR_TO_ENCRYPTED); |
| 252 } | 249 } |
| 253 | 250 |
| 254 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, ConfigChangeVideo_EncryptedToClear) { | 251 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, ConfigChangeVideo_EncryptedToClear) { |
| 255 TestConfigChange(ConfigChangeType::ENCRYPTED_TO_CLEAR); | 252 TestConfigChange(ConfigChangeType::ENCRYPTED_TO_CLEAR); |
| 256 } | 253 } |
| 257 | 254 |
| 258 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, | 255 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, |
| 259 ConfigChangeVideo_EncryptedToEncrypted) { | 256 ConfigChangeVideo_EncryptedToEncrypted) { |
| 260 TestConfigChange(ConfigChangeType::ENCRYPTED_TO_ENCRYPTED); | 257 TestConfigChange(ConfigChangeType::ENCRYPTED_TO_ENCRYPTED); |
| 261 } | 258 } |
| 262 | 259 |
| 263 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, FrameSizeChangeVideo) { | 260 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, FrameSizeChangeVideo) { |
| 264 TestFrameSizeChange(); | 261 TestFrameSizeChange(); |
| 265 } | 262 } |
| 266 | 263 |
| 267 IN_PROC_BROWSER_TEST_F(EncryptedMediaTest, UnknownKeySystemThrowsException) { | 264 IN_PROC_BROWSER_TEST_F(EncryptedMediaTest, UnknownKeySystemThrowsException) { |
| 268 RunEncryptedMediaTest(kDefaultEmePlayer, "bear-a_enc-a.webm", | 265 RunEncryptedMediaTest(kDefaultEmePlayer, "bear-a_enc-a.webm", |
| 269 kWebMVorbisAudioOnly, "com.example.foo", SrcType::MSE, | 266 kWebMVorbisAudioOnly, "com.example.foo", SrcType::MSE, |
| 270 kEmeNotSupportedError); | 267 kEmeNotSupportedError); |
| 271 } | 268 } |
| 272 | 269 |
| 273 } // namespace content | 270 } // namespace content |
| OLD | NEW |