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

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

Issue 1179953006: [Merge to M44] Chromium changes to statically link ffmpeg. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2403
Patch Set: Created 5 years, 6 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/cast_unittests.isolate ('k') | media/cast/sender/audio_sender_unittest.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 <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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } 88 }
89 return out.str(); 89 return out.str();
90 } 90 }
91 }; 91 };
92 92
93 } // namespace 93 } // namespace
94 94
95 class AudioEncoderTest : public ::testing::TestWithParam<TestScenario> { 95 class AudioEncoderTest : public ::testing::TestWithParam<TestScenario> {
96 public: 96 public:
97 AudioEncoderTest() { 97 AudioEncoderTest() {
98 InitializeMediaLibraryForTesting(); 98 InitializeMediaLibrary();
99 testing_clock_ = new base::SimpleTestTickClock(); 99 testing_clock_ = new base::SimpleTestTickClock();
100 testing_clock_->Advance(base::TimeTicks::Now() - base::TimeTicks()); 100 testing_clock_->Advance(base::TimeTicks::Now() - base::TimeTicks());
101 } 101 }
102 102
103 void SetUp() final { 103 void SetUp() final {
104 task_runner_ = new test::FakeSingleThreadTaskRunner(testing_clock_); 104 task_runner_ = new test::FakeSingleThreadTaskRunner(testing_clock_);
105 cast_environment_ = 105 cast_environment_ =
106 new CastEnvironment(scoped_ptr<base::TickClock>(testing_clock_).Pass(), 106 new CastEnvironment(scoped_ptr<base::TickClock>(testing_clock_).Pass(),
107 task_runner_, 107 task_runner_,
108 task_runner_, 108 task_runner_,
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 TestScenario(kManyCalls_Mixed2, arraysize(kManyCalls_Mixed2)), 240 TestScenario(kManyCalls_Mixed2, arraysize(kManyCalls_Mixed2)),
241 TestScenario(kManyCalls_Mixed3, arraysize(kManyCalls_Mixed3)), 241 TestScenario(kManyCalls_Mixed3, arraysize(kManyCalls_Mixed3)),
242 TestScenario(kManyCalls_Mixed4, arraysize(kManyCalls_Mixed4)), 242 TestScenario(kManyCalls_Mixed4, arraysize(kManyCalls_Mixed4)),
243 TestScenario(kManyCalls_Mixed5, arraysize(kManyCalls_Mixed5)), 243 TestScenario(kManyCalls_Mixed5, arraysize(kManyCalls_Mixed5)),
244 TestScenario(kOneBigUnderrun, arraysize(kOneBigUnderrun)), 244 TestScenario(kOneBigUnderrun, arraysize(kOneBigUnderrun)),
245 TestScenario(kTwoBigUnderruns, arraysize(kTwoBigUnderruns)), 245 TestScenario(kTwoBigUnderruns, arraysize(kTwoBigUnderruns)),
246 TestScenario(kMixedUnderruns, arraysize(kMixedUnderruns)))); 246 TestScenario(kMixedUnderruns, arraysize(kMixedUnderruns))));
247 247
248 } // namespace cast 248 } // namespace cast
249 } // namespace media 249 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/cast_unittests.isolate ('k') | media/cast/sender/audio_sender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698