| 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 "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "base/win/windows_version.h" | 9 #include "base/win/windows_version.h" |
| 10 #include "chrome/browser/media/media_browsertest.h" | 10 #include "chrome/browser/media/media_browsertest.h" |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 | 524 |
| 525 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, Playback_VideoOnly_WebM) { | 525 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, Playback_VideoOnly_WebM) { |
| 526 TestSimplePlayback("bear-320x240-v-enc_v.webm", kWebMVideoOnly); | 526 TestSimplePlayback("bear-320x240-v-enc_v.webm", kWebMVideoOnly); |
| 527 } | 527 } |
| 528 | 528 |
| 529 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, Playback_VideoClearAudio_WebM) { | 529 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, Playback_VideoClearAudio_WebM) { |
| 530 TestSimplePlayback("bear-320x240-av-enc_v.webm", kWebMAudioVideo); | 530 TestSimplePlayback("bear-320x240-av-enc_v.webm", kWebMAudioVideo); |
| 531 } | 531 } |
| 532 | 532 |
| 533 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, Playback_VP9Video_WebM) { | 533 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, Playback_VP9Video_WebM) { |
| 534 #if defined(WIDEVINE_CDM_AVAILABLE) | |
| 535 // TODO(xhwang): Remove this once VP9 is supported by Widevine CDM. | |
| 536 // See http://crbug.com/361318. | |
| 537 if (IsWidevine(CurrentKeySystem())) { | |
| 538 VLOG(0) << "VP9 not supported in Widevine CDM."; | |
| 539 return; | |
| 540 } | |
| 541 #endif | |
| 542 TestSimplePlayback("bear-320x240-v-vp9-enc_v.webm", kWebMVP9VideoOnly); | 534 TestSimplePlayback("bear-320x240-v-vp9-enc_v.webm", kWebMVP9VideoOnly); |
| 543 } | 535 } |
| 544 | 536 |
| 545 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, InvalidResponseKeyError) { | 537 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, InvalidResponseKeyError) { |
| 546 RunInvalidResponseTest(); | 538 RunInvalidResponseTest(); |
| 547 } | 539 } |
| 548 | 540 |
| 549 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, ConfigChangeVideo) { | 541 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, ConfigChangeVideo) { |
| 550 if (CurrentSourceType() != MSE || !IsMSESupported()) { | 542 if (CurrentSourceType() != MSE || !IsMSESupported()) { |
| 551 VLOG(0) << "Skipping test - ConfigChange test requires MSE."; | 543 VLOG(0) << "Skipping test - ConfigChange test requires MSE."; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 "bear-320x240-v-enc_v.webm", | 656 "bear-320x240-v-enc_v.webm", |
| 665 kWebMVideoOnly, | 657 kWebMVideoOnly, |
| 666 kExternalClearKeyKeySystem, | 658 kExternalClearKeyKeySystem, |
| 667 SRC, | 659 SRC, |
| 668 PREFIXED, | 660 PREFIXED, |
| 669 kUnknownSession, | 661 kUnknownSession, |
| 670 false, | 662 false, |
| 671 kEmeKeyError); | 663 kEmeKeyError); |
| 672 } | 664 } |
| 673 #endif // defined(ENABLE_PEPPER_CDMS) | 665 #endif // defined(ENABLE_PEPPER_CDMS) |
| OLD | NEW |