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

Side by Side Diff: media/cast/rtp_receiver/receiver_stats_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 | « media/cast/rtcp/rtcp_unittest.cc ('k') | media/cast/test/encode_decode_test.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 <gtest/gtest.h> 5 #include <gtest/gtest.h>
6 6
7 #include <stdint.h>
8
7 #include "base/test/simple_test_tick_clock.h" 9 #include "base/test/simple_test_tick_clock.h"
8 #include "base/time/time.h" 10 #include "base/time/time.h"
9 #include "media/cast/rtp_receiver/receiver_stats.h" 11 #include "media/cast/rtp_receiver/receiver_stats.h"
10 #include "media/cast/rtp_receiver/rtp_receiver_defines.h" 12 #include "media/cast/rtp_receiver/rtp_receiver_defines.h"
11 13
12 namespace media { 14 namespace media {
13 namespace cast { 15 namespace cast {
14 16
15 static const int64 kStartMillisecond = GG_INT64_C(12345678900000); 17 static const int64 kStartMillisecond = INT64_C(12345678900000);
16 static const uint32 kStdTimeIncrementMs = 33; 18 static const uint32 kStdTimeIncrementMs = 33;
17 19
18 class ReceiverStatsTest : public ::testing::Test { 20 class ReceiverStatsTest : public ::testing::Test {
19 protected: 21 protected:
20 ReceiverStatsTest() 22 ReceiverStatsTest()
21 : stats_(&testing_clock_), 23 : stats_(&testing_clock_),
22 rtp_header_(), 24 rtp_header_(),
23 fraction_lost_(0), 25 fraction_lost_(0),
24 cumulative_lost_(0), 26 cumulative_lost_(0),
25 extended_high_sequence_number_(0), 27 extended_high_sequence_number_(0),
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 EXPECT_FALSE(cumulative_lost_); 174 EXPECT_FALSE(cumulative_lost_);
173 // Build extended sequence number (one wrap cycle). 175 // Build extended sequence number (one wrap cycle).
174 uint32 extended_seq_num = rtp_header_.webrtc.header.sequenceNumber - 1; 176 uint32 extended_seq_num = rtp_header_.webrtc.header.sequenceNumber - 1;
175 EXPECT_EQ(extended_seq_num, extended_high_sequence_number_); 177 EXPECT_EQ(extended_seq_num, extended_high_sequence_number_);
176 EXPECT_EQ(ExpectedJitter(kStdTimeIncrementMs + kAdditionalIncrement, 300), 178 EXPECT_EQ(ExpectedJitter(kStdTimeIncrementMs + kAdditionalIncrement, 300),
177 jitter_); 179 jitter_);
178 } 180 }
179 181
180 } // namespace cast 182 } // namespace cast
181 } // namespace media 183 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/rtcp/rtcp_unittest.cc ('k') | media/cast/test/encode_decode_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698