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

Side by Side Diff: media/cast/sender/audio_encoder_unittest.cc

Issue 1544313002: Convert Pass()→std::move() in //media (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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/video_decoder.cc ('k') | media/cast/sender/audio_sender.cc » ('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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <sstream> 8 #include <sstream>
9 #include <string> 9 #include <string>
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 public: 103 public:
104 AudioEncoderTest() { 104 AudioEncoderTest() {
105 InitializeMediaLibrary(); 105 InitializeMediaLibrary();
106 testing_clock_ = new base::SimpleTestTickClock(); 106 testing_clock_ = new base::SimpleTestTickClock();
107 testing_clock_->Advance(base::TimeTicks::Now() - base::TimeTicks()); 107 testing_clock_->Advance(base::TimeTicks::Now() - base::TimeTicks());
108 } 108 }
109 109
110 void SetUp() final { 110 void SetUp() final {
111 task_runner_ = new test::FakeSingleThreadTaskRunner(testing_clock_); 111 task_runner_ = new test::FakeSingleThreadTaskRunner(testing_clock_);
112 cast_environment_ = 112 cast_environment_ =
113 new CastEnvironment(scoped_ptr<base::TickClock>(testing_clock_).Pass(), 113 new CastEnvironment(scoped_ptr<base::TickClock>(testing_clock_),
114 task_runner_, 114 task_runner_, task_runner_, task_runner_);
115 task_runner_,
116 task_runner_);
117 } 115 }
118 116
119 virtual ~AudioEncoderTest() {} 117 virtual ~AudioEncoderTest() {}
120 118
121 void RunTestForCodec(Codec codec) { 119 void RunTestForCodec(Codec codec) {
122 const TestScenario& scenario = GetParam(); 120 const TestScenario& scenario = GetParam();
123 SCOPED_TRACE(::testing::Message() << "Durations: " << scenario.ToString()); 121 SCOPED_TRACE(::testing::Message() << "Durations: " << scenario.ToString());
124 122
125 CreateObjectsForCodec(codec); 123 CreateObjectsForCodec(codec);
126 124
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 TestScenario(kManyCalls_Mixed2, arraysize(kManyCalls_Mixed2)), 245 TestScenario(kManyCalls_Mixed2, arraysize(kManyCalls_Mixed2)),
248 TestScenario(kManyCalls_Mixed3, arraysize(kManyCalls_Mixed3)), 246 TestScenario(kManyCalls_Mixed3, arraysize(kManyCalls_Mixed3)),
249 TestScenario(kManyCalls_Mixed4, arraysize(kManyCalls_Mixed4)), 247 TestScenario(kManyCalls_Mixed4, arraysize(kManyCalls_Mixed4)),
250 TestScenario(kManyCalls_Mixed5, arraysize(kManyCalls_Mixed5)), 248 TestScenario(kManyCalls_Mixed5, arraysize(kManyCalls_Mixed5)),
251 TestScenario(kOneBigUnderrun, arraysize(kOneBigUnderrun)), 249 TestScenario(kOneBigUnderrun, arraysize(kOneBigUnderrun)),
252 TestScenario(kTwoBigUnderruns, arraysize(kTwoBigUnderruns)), 250 TestScenario(kTwoBigUnderruns, arraysize(kTwoBigUnderruns)),
253 TestScenario(kMixedUnderruns, arraysize(kMixedUnderruns)))); 251 TestScenario(kMixedUnderruns, arraysize(kMixedUnderruns))));
254 252
255 } // namespace cast 253 } // namespace cast
256 } // namespace media 254 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/receiver/video_decoder.cc ('k') | media/cast/sender/audio_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698