OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include <cstdlib> | 7 #include <cstdlib> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 namespace media { | 25 namespace media { |
26 namespace cast { | 26 namespace cast { |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 const int kStartingWidth = 360; | 30 const int kStartingWidth = 360; |
31 const int kStartingHeight = 240; | 31 const int kStartingHeight = 240; |
32 const int kFrameRate = 10; | 32 const int kFrameRate = 10; |
33 | 33 |
34 VideoSenderConfig GetVideoSenderConfigForTest() { | 34 FrameSenderConfig GetVideoSenderConfigForTest() { |
35 VideoSenderConfig config = GetDefaultVideoSenderConfig(); | 35 FrameSenderConfig config = GetDefaultVideoSenderConfig(); |
36 config.max_frame_rate = kFrameRate; | 36 config.max_frame_rate = kFrameRate; |
37 return config; | 37 return config; |
38 } | 38 } |
39 | 39 |
40 } // namespace | 40 } // namespace |
41 | 41 |
42 class VideoDecoderTest : public ::testing::TestWithParam<Codec> { | 42 class VideoDecoderTest : public ::testing::TestWithParam<Codec> { |
43 public: | 43 public: |
44 VideoDecoderTest() | 44 VideoDecoderTest() |
45 : cast_environment_(new StandaloneCastEnvironment()), | 45 : cast_environment_(new StandaloneCastEnvironment()), |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 234 |
235 WaitForAllVideoToBeDecoded(); | 235 WaitForAllVideoToBeDecoded(); |
236 } | 236 } |
237 | 237 |
238 INSTANTIATE_TEST_CASE_P(, | 238 INSTANTIATE_TEST_CASE_P(, |
239 VideoDecoderTest, | 239 VideoDecoderTest, |
240 ::testing::Values(CODEC_VIDEO_VP8)); | 240 ::testing::Values(CODEC_VIDEO_VP8)); |
241 | 241 |
242 } // namespace cast | 242 } // namespace cast |
243 } // namespace media | 243 } // namespace media |
OLD | NEW |