| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "media/filters/pipeline_integration_test_base.h" | 5 #include "media/filters/pipeline_integration_test_base.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 PIPELINE_OK, true)); | 424 PIPELINE_OK, true)); |
| 425 | 425 |
| 426 Play(); | 426 Play(); |
| 427 | 427 |
| 428 ASSERT_TRUE(WaitUntilOnEnded()); | 428 ASSERT_TRUE(WaitUntilOnEnded()); |
| 429 | 429 |
| 430 EXPECT_EQ("f0be120a90a811506777c99a2cdf7cc1", GetVideoHash()); | 430 EXPECT_EQ("f0be120a90a811506777c99a2cdf7cc1", GetVideoHash()); |
| 431 EXPECT_EQ("-3.59,-2.06,-0.43,2.15,0.77,-0.95,", GetAudioHash()); | 431 EXPECT_EQ("-3.59,-2.06,-0.43,2.15,0.77,-0.95,", GetAudioHash()); |
| 432 } | 432 } |
| 433 | 433 |
| 434 // TODO(fgalligan): Enable test when code to parse encrypted WebM files lands | 434 TEST_F(PipelineIntegrationTest, BasicPlaybackEncrypted) { |
| 435 // in Chromium's FFmpeg. crbug.com/189221 | |
| 436 TEST_F(PipelineIntegrationTest, DISABLED_BasicPlaybackEncrypted) { | |
| 437 FakeEncryptedMedia encrypted_media(new KeyProvidingApp()); | 435 FakeEncryptedMedia encrypted_media(new KeyProvidingApp()); |
| 438 set_need_key_cb(base::Bind(&FakeEncryptedMedia::NeedKey, | 436 set_need_key_cb(base::Bind(&FakeEncryptedMedia::NeedKey, |
| 439 base::Unretained(&encrypted_media))); | 437 base::Unretained(&encrypted_media))); |
| 440 | 438 |
| 441 ASSERT_TRUE(Start(GetTestDataFilePath("bear-320x240-av_enc-av.webm"), | 439 ASSERT_TRUE(Start(GetTestDataFilePath("bear-320x240-av_enc-av.webm"), |
| 442 encrypted_media.decryptor())); | 440 encrypted_media.decryptor())); |
| 443 | 441 |
| 444 Play(); | 442 Play(); |
| 445 | 443 |
| 446 ASSERT_TRUE(WaitUntilOnEnded()); | 444 ASSERT_TRUE(WaitUntilOnEnded()); |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 // Verify that VP8 video with alpha channel can be played back. | 923 // Verify that VP8 video with alpha channel can be played back. |
| 926 TEST_F(PipelineIntegrationTest, BasicPlayback_VP8A_WebM) { | 924 TEST_F(PipelineIntegrationTest, BasicPlayback_VP8A_WebM) { |
| 927 ASSERT_TRUE(Start(GetTestDataFilePath("bear-vp8a.webm"), | 925 ASSERT_TRUE(Start(GetTestDataFilePath("bear-vp8a.webm"), |
| 928 PIPELINE_OK)); | 926 PIPELINE_OK)); |
| 929 Play(); | 927 Play(); |
| 930 ASSERT_TRUE(WaitUntilOnEnded()); | 928 ASSERT_TRUE(WaitUntilOnEnded()); |
| 931 EXPECT_EQ(last_video_frame_format_, VideoFrame::YV12A); | 929 EXPECT_EQ(last_video_frame_format_, VideoFrame::YV12A); |
| 932 } | 930 } |
| 933 | 931 |
| 934 } // namespace media | 932 } // namespace media |
| OLD | NEW |