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

Unified Diff: net/quic/quic_packet_creator_test.cc

Issue 1160203003: net: Remove the remaining use of GG_(U)INTn_C macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stdint.h Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_framer_test.cc ('k') | net/quic/quic_protocol.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_packet_creator_test.cc
diff --git a/net/quic/quic_packet_creator_test.cc b/net/quic/quic_packet_creator_test.cc
index 477c502eb0e6a3d94663437426b11f342917b45b..113a5837ed80459e3f1cb1905b32e5cc6e8000e5 100644
--- a/net/quic/quic_packet_creator_test.cc
+++ b/net/quic/quic_packet_creator_test.cc
@@ -4,6 +4,8 @@
#include "net/quic/quic_packet_creator.h"
+#include <stdint.h>
+
#include "base/stl_util.h"
#include "net/quic/crypto/null_encrypter.h"
#include "net/quic/crypto/quic_decrypter.h"
@@ -854,7 +856,7 @@ TEST_P(QuicPacketCreatorTest, UpdatePacketSequenceNumberLengthLeastAwaiting) {
QuicPacketCreatorPeer::SetSequenceNumber(
&creator_,
- GG_UINT64_C(64) * 256 * 256 * 256 * 256 - max_packets_per_fec_group);
+ UINT64_C(64) * 256 * 256 * 256 * 256 - max_packets_per_fec_group);
creator_.UpdateSequenceNumberLength(2, 10000 / kDefaultMaxPacketSize);
EXPECT_EQ(PACKET_6BYTE_SEQUENCE_NUMBER,
QuicPacketCreatorPeer::NextSequenceNumberLength(&creator_));
@@ -878,7 +880,7 @@ TEST_P(QuicPacketCreatorTest, UpdatePacketSequenceNumberLengthBandwidth) {
QuicPacketCreatorPeer::NextSequenceNumberLength(&creator_));
creator_.UpdateSequenceNumberLength(
- 1, GG_UINT64_C(1000) * 256 * 256 * 256 * 256 / kDefaultMaxPacketSize);
+ 1, UINT64_C(1000) * 256 * 256 * 256 * 256 / kDefaultMaxPacketSize);
EXPECT_EQ(PACKET_6BYTE_SEQUENCE_NUMBER,
QuicPacketCreatorPeer::NextSequenceNumberLength(&creator_));
}
@@ -1084,7 +1086,7 @@ TEST_P(QuicPacketCreatorTest, EntropyFlag) {
creator_.SerializeAllFrames(frames_, buffer, kMaxPacketSize);
// Verify both BoolSource and hash algorithm.
bool expected_rand_bool =
- (mock_random_.RandUint64() & (GG_UINT64_C(1) << j)) != 0;
+ (mock_random_.RandUint64() & (UINT64_C(1) << j)) != 0;
bool observed_rand_bool =
(serialized.entropy_hash & (1 << ((j+1) % 8))) != 0;
uint8 rest_of_hash = serialized.entropy_hash & ~(1 << ((j+1) % 8));
« no previous file with comments | « net/quic/quic_framer_test.cc ('k') | net/quic/quic_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698