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/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1075 // Verify that VP8 video with alpha channel can be played back. | 1075 // Verify that VP8 video with alpha channel can be played back. |
1076 TEST_F(PipelineIntegrationTest, BasicPlayback_VP8A_WebM) { | 1076 TEST_F(PipelineIntegrationTest, BasicPlayback_VP8A_WebM) { |
1077 EXPECT_CALL(*this, OnSetOpaque(false)).Times(AnyNumber()); | 1077 EXPECT_CALL(*this, OnSetOpaque(false)).Times(AnyNumber()); |
1078 ASSERT_TRUE(Start(GetTestDataFilePath("bear-vp8a.webm"), | 1078 ASSERT_TRUE(Start(GetTestDataFilePath("bear-vp8a.webm"), |
1079 PIPELINE_OK)); | 1079 PIPELINE_OK)); |
1080 Play(); | 1080 Play(); |
1081 ASSERT_TRUE(WaitUntilOnEnded()); | 1081 ASSERT_TRUE(WaitUntilOnEnded()); |
1082 EXPECT_EQ(last_video_frame_format_, VideoFrame::YV12A); | 1082 EXPECT_EQ(last_video_frame_format_, VideoFrame::YV12A); |
1083 } | 1083 } |
1084 | 1084 |
| 1085 // Verify that VP8A video with odd width/height can be played back. |
| 1086 TEST_F(PipelineIntegrationTest, BasicPlayback_VP8A_Odd_WebM) { |
| 1087 EXPECT_CALL(*this, OnSetOpaque(false)).Times(AnyNumber()); |
| 1088 ASSERT_TRUE(Start(GetTestDataFilePath("bear-vp8a-odd-dimensions.webm"), |
| 1089 PIPELINE_OK)); |
| 1090 Play(); |
| 1091 ASSERT_TRUE(WaitUntilOnEnded()); |
| 1092 EXPECT_EQ(last_video_frame_format_, VideoFrame::YV12A); |
| 1093 } |
| 1094 |
1085 // Verify that VP8 video with inband text track can be played back. | 1095 // Verify that VP8 video with inband text track can be played back. |
1086 TEST_F(PipelineIntegrationTest, | 1096 TEST_F(PipelineIntegrationTest, |
1087 BasicPlayback_VP8_WebVTT_WebM) { | 1097 BasicPlayback_VP8_WebVTT_WebM) { |
1088 ASSERT_TRUE(Start(GetTestDataFilePath("bear-vp8-webvtt.webm"), | 1098 ASSERT_TRUE(Start(GetTestDataFilePath("bear-vp8-webvtt.webm"), |
1089 PIPELINE_OK)); | 1099 PIPELINE_OK)); |
1090 Play(); | 1100 Play(); |
1091 ASSERT_TRUE(WaitUntilOnEnded()); | 1101 ASSERT_TRUE(WaitUntilOnEnded()); |
1092 } | 1102 } |
1093 | 1103 |
1094 } // namespace media | 1104 } // namespace media |
OLD | NEW |