| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "media/base/cdm_callback_promise.h" | 10 #include "media/base/cdm_callback_promise.h" |
| (...skipping 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1632 #endif // !defined(DISABLE_TEXT_TRACK_TESTS) | 1632 #endif // !defined(DISABLE_TEXT_TRACK_TESTS) |
| 1633 | 1633 |
| 1634 // Verify that VP9 video with 4:4:4 subsampling can be played back. | 1634 // Verify that VP9 video with 4:4:4 subsampling can be played back. |
| 1635 TEST_F(PipelineIntegrationTest, P444_VP9_WebM) { | 1635 TEST_F(PipelineIntegrationTest, P444_VP9_WebM) { |
| 1636 ASSERT_EQ(PIPELINE_OK, Start("bear-320x240-P444.webm")); | 1636 ASSERT_EQ(PIPELINE_OK, Start("bear-320x240-P444.webm")); |
| 1637 Play(); | 1637 Play(); |
| 1638 ASSERT_TRUE(WaitUntilOnEnded()); | 1638 ASSERT_TRUE(WaitUntilOnEnded()); |
| 1639 EXPECT_VIDEO_FORMAT_EQ(last_video_frame_format_, VideoFrame::YV24); | 1639 EXPECT_VIDEO_FORMAT_EQ(last_video_frame_format_, VideoFrame::YV24); |
| 1640 } | 1640 } |
| 1641 | 1641 |
| 1642 // Verify that frames of VP9 video in the BT.709 color space have the YV12HD |
| 1643 // format. |
| 1644 TEST_F(PipelineIntegrationTest, BT709_VP9_WebM) { |
| 1645 ASSERT_EQ(PIPELINE_OK, Start("bear-vp9-bt709.webm")); |
| 1646 Play(); |
| 1647 ASSERT_TRUE(WaitUntilOnEnded()); |
| 1648 EXPECT_VIDEO_FORMAT_EQ(last_video_frame_format_, VideoFrame::YV12HD); |
| 1649 } |
| 1650 |
| 1642 // Verify that videos with an odd frame size playback successfully. | 1651 // Verify that videos with an odd frame size playback successfully. |
| 1643 TEST_F(PipelineIntegrationTest, BasicPlayback_OddVideoSize) { | 1652 TEST_F(PipelineIntegrationTest, BasicPlayback_OddVideoSize) { |
| 1644 ASSERT_EQ(PIPELINE_OK, Start("butterfly-853x480.webm")); | 1653 ASSERT_EQ(PIPELINE_OK, Start("butterfly-853x480.webm")); |
| 1645 Play(); | 1654 Play(); |
| 1646 ASSERT_TRUE(WaitUntilOnEnded()); | 1655 ASSERT_TRUE(WaitUntilOnEnded()); |
| 1647 } | 1656 } |
| 1648 | 1657 |
| 1649 // Verify that OPUS audio in a webm which reports a 44.1kHz sample rate plays | 1658 // Verify that OPUS audio in a webm which reports a 44.1kHz sample rate plays |
| 1650 // correctly at 48kHz | 1659 // correctly at 48kHz |
| 1651 TEST_F(PipelineIntegrationTest, BasicPlayback_Opus441kHz) { | 1660 TEST_F(PipelineIntegrationTest, BasicPlayback_Opus441kHz) { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1714 | 1723 |
| 1715 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) { | 1724 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) { |
| 1716 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm")); | 1725 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm")); |
| 1717 Play(); | 1726 Play(); |
| 1718 ASSERT_TRUE(WaitUntilOnEnded()); | 1727 ASSERT_TRUE(WaitUntilOnEnded()); |
| 1719 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000), | 1728 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000), |
| 1720 demuxer_->GetStartTime()); | 1729 demuxer_->GetStartTime()); |
| 1721 } | 1730 } |
| 1722 | 1731 |
| 1723 } // namespace media | 1732 } // namespace media |
| OLD | NEW |