Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Side by Side Diff: media/cast/receiver/video_decoder_unittest.cc

Issue 2113783002: Refactoring: Merge VideoSenderConfig and AudioSenderConfig. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed mek's comment. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/cast/receiver/frame_receiver.cc ('k') | media/cast/sender/audio_sender.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « media/cast/receiver/frame_receiver.cc ('k') | media/cast/sender/audio_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698