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

Side by Side Diff: media/cast/audio_receiver/audio_receiver_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
« no previous file with comments | « base/port.h ('k') | media/cast/audio_sender/audio_encoder_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 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 "base/bind.h" 7 #include "base/bind.h"
6 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
7 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
8 #include "base/test/simple_test_tick_clock.h" 10 #include "base/test/simple_test_tick_clock.h"
9 #include "media/cast/audio_receiver/audio_receiver.h" 11 #include "media/cast/audio_receiver/audio_receiver.h"
10 #include "media/cast/cast_defines.h" 12 #include "media/cast/cast_defines.h"
11 #include "media/cast/cast_environment.h" 13 #include "media/cast/cast_environment.h"
12 #include "media/cast/logging/simple_event_subscriber.h" 14 #include "media/cast/logging/simple_event_subscriber.h"
13 #include "media/cast/rtcp/test_rtcp_packet_builder.h" 15 #include "media/cast/rtcp/test_rtcp_packet_builder.h"
14 #include "media/cast/test/fake_single_thread_task_runner.h" 16 #include "media/cast/test/fake_single_thread_task_runner.h"
15 #include "media/cast/transport/pacing/mock_paced_packet_sender.h" 17 #include "media/cast/transport/pacing/mock_paced_packet_sender.h"
16 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
17 19
18 namespace media { 20 namespace media {
19 namespace cast { 21 namespace cast {
20 22
21 static const int64 kStartMillisecond = GG_INT64_C(12345678900000); 23 static const int64 kStartMillisecond = INT64_C(12345678900000);
22 24
23 namespace { 25 namespace {
24 class FakeAudioClient { 26 class FakeAudioClient {
25 public: 27 public:
26 FakeAudioClient() : num_called_(0) {} 28 FakeAudioClient() : num_called_(0) {}
27 virtual ~FakeAudioClient() {} 29 virtual ~FakeAudioClient() {}
28 30
29 void SetNextExpectedResult(uint8 expected_frame_id, 31 void SetNextExpectedResult(uint8 expected_frame_id,
30 const base::TimeTicks& expected_playout_time) { 32 const base::TimeTicks& expected_playout_time) {
31 expected_frame_id_ = expected_frame_id; 33 expected_frame_id_ = expected_frame_id;
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 225
224 // Move forward another 100 ms and run any pending tasks (there should be 226 // Move forward another 100 ms and run any pending tasks (there should be
225 // none). Expect no additional frames where emitted. 227 // none). Expect no additional frames where emitted.
226 testing_clock_->Advance(base::TimeDelta::FromMilliseconds(100)); 228 testing_clock_->Advance(base::TimeDelta::FromMilliseconds(100));
227 task_runner_->RunTasks(); 229 task_runner_->RunTasks();
228 EXPECT_EQ(3, fake_audio_client_.number_times_called()); 230 EXPECT_EQ(3, fake_audio_client_.number_times_called());
229 } 231 }
230 232
231 } // namespace cast 233 } // namespace cast
232 } // namespace media 234 } // namespace media
OLDNEW
« no previous file with comments | « base/port.h ('k') | media/cast/audio_sender/audio_encoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698