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

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

Issue 661163004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
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 <sstream> 7 #include <sstream>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } // namespace 95 } // namespace
96 96
97 class AudioEncoderTest : public ::testing::TestWithParam<TestScenario> { 97 class AudioEncoderTest : public ::testing::TestWithParam<TestScenario> {
98 public: 98 public:
99 AudioEncoderTest() { 99 AudioEncoderTest() {
100 InitializeMediaLibraryForTesting(); 100 InitializeMediaLibraryForTesting();
101 testing_clock_ = new base::SimpleTestTickClock(); 101 testing_clock_ = new base::SimpleTestTickClock();
102 testing_clock_->Advance(base::TimeTicks::Now() - base::TimeTicks()); 102 testing_clock_->Advance(base::TimeTicks::Now() - base::TimeTicks());
103 } 103 }
104 104
105 virtual void SetUp() { 105 void SetUp() override {
106 task_runner_ = new test::FakeSingleThreadTaskRunner(testing_clock_); 106 task_runner_ = new test::FakeSingleThreadTaskRunner(testing_clock_);
107 cast_environment_ = 107 cast_environment_ =
108 new CastEnvironment(scoped_ptr<base::TickClock>(testing_clock_).Pass(), 108 new CastEnvironment(scoped_ptr<base::TickClock>(testing_clock_).Pass(),
109 task_runner_, 109 task_runner_,
110 task_runner_, 110 task_runner_,
111 task_runner_); 111 task_runner_);
112 } 112 }
113 113
114 virtual ~AudioEncoderTest() {} 114 virtual ~AudioEncoderTest() {}
115 115
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 TestScenario(kManyCalls_Mixed2, arraysize(kManyCalls_Mixed2)), 242 TestScenario(kManyCalls_Mixed2, arraysize(kManyCalls_Mixed2)),
243 TestScenario(kManyCalls_Mixed3, arraysize(kManyCalls_Mixed3)), 243 TestScenario(kManyCalls_Mixed3, arraysize(kManyCalls_Mixed3)),
244 TestScenario(kManyCalls_Mixed4, arraysize(kManyCalls_Mixed4)), 244 TestScenario(kManyCalls_Mixed4, arraysize(kManyCalls_Mixed4)),
245 TestScenario(kManyCalls_Mixed5, arraysize(kManyCalls_Mixed5)), 245 TestScenario(kManyCalls_Mixed5, arraysize(kManyCalls_Mixed5)),
246 TestScenario(kOneBigUnderrun, arraysize(kOneBigUnderrun)), 246 TestScenario(kOneBigUnderrun, arraysize(kOneBigUnderrun)),
247 TestScenario(kTwoBigUnderruns, arraysize(kTwoBigUnderruns)), 247 TestScenario(kTwoBigUnderruns, arraysize(kTwoBigUnderruns)),
248 TestScenario(kMixedUnderruns, arraysize(kMixedUnderruns)))); 248 TestScenario(kMixedUnderruns, arraysize(kMixedUnderruns))));
249 249
250 } // namespace cast 250 } // namespace cast
251 } // namespace media 251 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/receiver/video_decoder_unittest.cc ('k') | media/cast/sender/audio_sender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698