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

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

Issue 219723003: Remove all uses of GG_UINT32_C. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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>
6
5 #include <sstream> 7 #include <sstream>
6 #include <string> 8 #include <string>
7 9
8 #include "base/bind.h" 10 #include "base/bind.h"
9 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
10 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
11 #include "media/base/audio_bus.h" 13 #include "media/base/audio_bus.h"
12 #include "media/base/media.h" 14 #include "media/base/media.h"
13 #include "media/cast/audio_sender/audio_encoder.h" 15 #include "media/cast/audio_sender/audio_encoder.h"
14 #include "media/cast/cast_config.h" 16 #include "media/cast/cast_config.h"
15 #include "media/cast/cast_environment.h" 17 #include "media/cast/cast_environment.h"
16 #include "media/cast/test/fake_single_thread_task_runner.h" 18 #include "media/cast/test/fake_single_thread_task_runner.h"
17 #include "media/cast/test/utility/audio_utility.h" 19 #include "media/cast/test/utility/audio_utility.h"
18 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
19 21
20 namespace media { 22 namespace media {
21 namespace cast { 23 namespace cast {
22 24
23 static const int64 kStartMillisecond = GG_INT64_C(12345678900000); 25 static const int64 kStartMillisecond = INT64_C(12345678900000);
24 26
25 namespace { 27 namespace {
26 28
27 class TestEncodedAudioFrameReceiver { 29 class TestEncodedAudioFrameReceiver {
28 public: 30 public:
29 explicit TestEncodedAudioFrameReceiver(transport::AudioCodec codec) 31 explicit TestEncodedAudioFrameReceiver(transport::AudioCodec codec)
30 : codec_(codec), frames_received_(0) {} 32 : codec_(codec), frames_received_(0) {}
31 virtual ~TestEncodedAudioFrameReceiver() {} 33 virtual ~TestEncodedAudioFrameReceiver() {}
32 34
33 int frames_received() const { return frames_received_; } 35 int frames_received() const { return frames_received_; }
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 TestScenario(kManyCalls_3Millis, arraysize(kManyCalls_3Millis)), 209 TestScenario(kManyCalls_3Millis, arraysize(kManyCalls_3Millis)),
208 TestScenario(kManyCalls_10Millis, arraysize(kManyCalls_10Millis)), 210 TestScenario(kManyCalls_10Millis, arraysize(kManyCalls_10Millis)),
209 TestScenario(kManyCalls_Mixed1, arraysize(kManyCalls_Mixed1)), 211 TestScenario(kManyCalls_Mixed1, arraysize(kManyCalls_Mixed1)),
210 TestScenario(kManyCalls_Mixed2, arraysize(kManyCalls_Mixed2)), 212 TestScenario(kManyCalls_Mixed2, arraysize(kManyCalls_Mixed2)),
211 TestScenario(kManyCalls_Mixed3, arraysize(kManyCalls_Mixed3)), 213 TestScenario(kManyCalls_Mixed3, arraysize(kManyCalls_Mixed3)),
212 TestScenario(kManyCalls_Mixed4, arraysize(kManyCalls_Mixed4)), 214 TestScenario(kManyCalls_Mixed4, arraysize(kManyCalls_Mixed4)),
213 TestScenario(kManyCalls_Mixed5, arraysize(kManyCalls_Mixed5)))); 215 TestScenario(kManyCalls_Mixed5, arraysize(kManyCalls_Mixed5))));
214 216
215 } // namespace cast 217 } // namespace cast
216 } // namespace media 218 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/audio_receiver/audio_receiver_unittest.cc ('k') | media/cast/audio_sender/audio_sender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698