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

Side by Side Diff: media/cast/transport/pacing/paced_sender_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 "base/big_endian.h" 7 #include "base/big_endian.h"
6 #include "base/test/simple_test_tick_clock.h" 8 #include "base/test/simple_test_tick_clock.h"
7 #include "media/cast/logging/simple_event_subscriber.h" 9 #include "media/cast/logging/simple_event_subscriber.h"
8 #include "media/cast/test/fake_single_thread_task_runner.h" 10 #include "media/cast/test/fake_single_thread_task_runner.h"
9 #include "media/cast/transport/pacing/paced_sender.h" 11 #include "media/cast/transport/pacing/paced_sender.h"
10 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
11 13
12 namespace media { 14 namespace media {
13 namespace cast { 15 namespace cast {
14 namespace transport { 16 namespace transport {
15 17
16 using testing::_; 18 using testing::_;
17 19
18 static const uint8 kValue = 123; 20 static const uint8 kValue = 123;
19 static const size_t kSize1 = 100; 21 static const size_t kSize1 = 100;
20 static const size_t kSize2 = 101; 22 static const size_t kSize2 = 101;
21 static const size_t kSize3 = 102; 23 static const size_t kSize3 = 102;
22 static const size_t kSize4 = 103; 24 static const size_t kSize4 = 103;
23 static const size_t kNackSize = 104; 25 static const size_t kNackSize = 104;
24 static const int64 kStartMillisecond = GG_INT64_C(12345678900000); 26 static const int64 kStartMillisecond = INT64_C(12345678900000);
25 static const uint32 kVideoSsrc = 0x1234; 27 static const uint32 kVideoSsrc = 0x1234;
26 static const uint32 kAudioSsrc = 0x5678; 28 static const uint32 kAudioSsrc = 0x5678;
27 29
28 class TestPacketSender : public PacketSender { 30 class TestPacketSender : public PacketSender {
29 public: 31 public:
30 TestPacketSender() {} 32 TestPacketSender() {}
31 33
32 virtual bool SendPacket(const Packet& packet) OVERRIDE { 34 virtual bool SendPacket(const Packet& packet) OVERRIDE {
33 EXPECT_FALSE(expected_packet_size_.empty()); 35 EXPECT_FALSE(expected_packet_size_.empty());
34 size_t expected_packet_size = expected_packet_size_.front(); 36 size_t expected_packet_size = expected_packet_size_.front();
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 testing_clock_.Advance(timeout_10ms); 327 testing_clock_.Advance(timeout_10ms);
326 task_runner_->RunTasks(); 328 task_runner_->RunTasks();
327 329
328 // No more packets. 330 // No more packets.
329 EXPECT_TRUE(RunUntilEmpty(5)); 331 EXPECT_TRUE(RunUntilEmpty(5));
330 } 332 }
331 333
332 } // namespace transport 334 } // namespace transport
333 } // namespace cast 335 } // namespace cast
334 } // namespace media 336 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698