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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 2180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2191 EXPECT_VIDEO_FORMAT_EQ(last_video_frame_format_, PIXEL_FORMAT_YV12A); | 2191 EXPECT_VIDEO_FORMAT_EQ(last_video_frame_format_, PIXEL_FORMAT_YV12A); |
2192 } | 2192 } |
2193 | 2193 |
2194 // Verify that VP9 video with odd width/height can be played back. | 2194 // Verify that VP9 video with odd width/height can be played back. |
2195 TEST_F(PipelineIntegrationTest, BasicPlayback_VP9_Odd_WebM) { | 2195 TEST_F(PipelineIntegrationTest, BasicPlayback_VP9_Odd_WebM) { |
2196 ASSERT_EQ(PIPELINE_OK, Start("bear-vp9-odd-dimensions.webm")); | 2196 ASSERT_EQ(PIPELINE_OK, Start("bear-vp9-odd-dimensions.webm")); |
2197 Play(); | 2197 Play(); |
2198 ASSERT_TRUE(WaitUntilOnEnded()); | 2198 ASSERT_TRUE(WaitUntilOnEnded()); |
2199 } | 2199 } |
2200 | 2200 |
2201 // Verify that VP9 video with alpha channel can be played back. | |
2202 TEST_F(PipelineIntegrationTest, BasicPlayback_VP9A_WebM) { | |
2203 ASSERT_EQ(PIPELINE_OK, Start("bear-vp9a.webm", kClockless)); | |
DaleCurtis
2016/06/23 21:41:58
Still kClockless?
vignesh
2016/06/23 21:44:31
oops, left out a local change. fixed now.
| |
2204 Play(); | |
2205 ASSERT_TRUE(WaitUntilOnEnded()); | |
2206 EXPECT_VIDEO_FORMAT_EQ(last_video_frame_format_, PIXEL_FORMAT_YV12A); | |
2207 } | |
2208 | |
2209 // Verify that VP9A video with odd width/height can be played back. | |
2210 TEST_F(PipelineIntegrationTest, BasicPlayback_VP9A_Odd_WebM) { | |
2211 ASSERT_EQ(PIPELINE_OK, Start("bear-vp9a-odd-dimensions.webm")); | |
2212 Play(); | |
2213 ASSERT_TRUE(WaitUntilOnEnded()); | |
2214 EXPECT_VIDEO_FORMAT_EQ(last_video_frame_format_, PIXEL_FORMAT_YV12A); | |
2215 } | |
2216 | |
2201 // Verify that VP8 video with inband text track can be played back. | 2217 // Verify that VP8 video with inband text track can be played back. |
2202 TEST_F(PipelineIntegrationTest, MAYBE_TEXT(BasicPlayback_VP8_WebVTT_WebM)) { | 2218 TEST_F(PipelineIntegrationTest, MAYBE_TEXT(BasicPlayback_VP8_WebVTT_WebM)) { |
2203 EXPECT_CALL(*this, OnAddTextTrack(_, _)); | 2219 EXPECT_CALL(*this, OnAddTextTrack(_, _)); |
2204 ASSERT_EQ(PIPELINE_OK, Start("bear-vp8-webvtt.webm")); | 2220 ASSERT_EQ(PIPELINE_OK, Start("bear-vp8-webvtt.webm")); |
2205 Play(); | 2221 Play(); |
2206 ASSERT_TRUE(WaitUntilOnEnded()); | 2222 ASSERT_TRUE(WaitUntilOnEnded()); |
2207 } | 2223 } |
2208 | 2224 |
2209 // Verify that VP9 video with 4:4:4 subsampling can be played back. | 2225 // Verify that VP9 video with 4:4:4 subsampling can be played back. |
2210 TEST_F(PipelineIntegrationTest, P444_VP9_WebM) { | 2226 TEST_F(PipelineIntegrationTest, P444_VP9_WebM) { |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2303 | 2319 |
2304 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) { | 2320 TEST_F(PipelineIntegrationTest, BasicPlaybackPositiveStartTime) { |
2305 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm")); | 2321 ASSERT_EQ(PIPELINE_OK, Start("nonzero-start-time.webm")); |
2306 Play(); | 2322 Play(); |
2307 ASSERT_TRUE(WaitUntilOnEnded()); | 2323 ASSERT_TRUE(WaitUntilOnEnded()); |
2308 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000), | 2324 ASSERT_EQ(base::TimeDelta::FromMicroseconds(396000), |
2309 demuxer_->GetStartTime()); | 2325 demuxer_->GetStartTime()); |
2310 } | 2326 } |
2311 | 2327 |
2312 } // namespace media | 2328 } // namespace media |
OLD | NEW |