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

Side by Side Diff: media/cast/transport/rtp_sender/packet_storage/packet_storage_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 "media/cast/transport/rtp_sender/packet_storage/packet_storage.h" 5 #include "media/cast/transport/rtp_sender/packet_storage/packet_storage.h"
6 6
7 #include <stdint.h>
8
7 #include <vector> 9 #include <vector>
8 10
9 #include "base/test/simple_test_tick_clock.h" 11 #include "base/test/simple_test_tick_clock.h"
10 #include "base/time/time.h" 12 #include "base/time/time.h"
11 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
12 14
13 namespace media { 15 namespace media {
14 namespace cast { 16 namespace cast {
15 namespace transport { 17 namespace transport {
16 18
17 static const int kMaxDeltaStoredMs = 500; 19 static const int kMaxDeltaStoredMs = 500;
18 static const base::TimeDelta kDeltaBetweenFrames = 20 static const base::TimeDelta kDeltaBetweenFrames =
19 base::TimeDelta::FromMilliseconds(33); 21 base::TimeDelta::FromMilliseconds(33);
20 22
21 static const int64 kStartMillisecond = GG_INT64_C(12345678900000); 23 static const int64 kStartMillisecond = INT64_C(12345678900000);
22 24
23 class PacketStorageTest : public ::testing::Test { 25 class PacketStorageTest : public ::testing::Test {
24 protected: 26 protected:
25 PacketStorageTest() : packet_storage_(&testing_clock_, kMaxDeltaStoredMs) { 27 PacketStorageTest() : packet_storage_(&testing_clock_, kMaxDeltaStoredMs) {
26 testing_clock_.Advance( 28 testing_clock_.Advance(
27 base::TimeDelta::FromMilliseconds(kStartMillisecond)); 29 base::TimeDelta::FromMilliseconds(kStartMillisecond));
28 } 30 }
29 31
30 base::SimpleTestTickClock testing_clock_; 32 base::SimpleTestTickClock testing_clock_;
31 PacketStorage packet_storage_; 33 PacketStorage packet_storage_;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } else { 106 } else {
105 EXPECT_TRUE(packets.back() == test_234); 107 EXPECT_TRUE(packets.back() == test_234);
106 } 108 }
107 } 109 }
108 } 110 }
109 } 111 }
110 112
111 } // namespace transport 113 } // namespace transport
112 } // namespace cast 114 } // namespace cast
113 } // namespace media 115 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698