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

Unified Diff: net/quic/quic_unacked_packet_map_test.cc

Issue 566373003: Removed unnecessary static_cast and replaced it with "lu". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup_to_remove_75208575
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_unacked_packet_map_test.cc
diff --git a/net/quic/quic_unacked_packet_map_test.cc b/net/quic/quic_unacked_packet_map_test.cc
index c9d4491cf8a2e680b81453e711d0f8a3d35954c3..1b084c13d435b9dd26f4b0c0b4f3299f76e8c659 100644
--- a/net/quic/quic_unacked_packet_map_test.cc
+++ b/net/quic/quic_unacked_packet_map_test.cc
@@ -118,11 +118,11 @@ TEST_F(QuicUnackedPacketMapTest, RttOnly) {
TEST_F(QuicUnackedPacketMapTest, DiscardOldRttOnly) {
// Acks are only tracked for RTT measurement purposes, and are discarded
// when more than 200 accumulate.
- for (int i = 1; i < 400; ++i) {
+ for (size_t i = 1; i < 400; ++i) {
unacked_packets_.AddPacket(CreateNonRetransmittablePacket(i));
unacked_packets_.SetSent(i, now_, kDefaultAckLength, false);
unacked_packets_.RemoveObsoletePackets();
- EXPECT_EQ(static_cast<size_t>(min(i, 200)),
+ EXPECT_EQ(min(i, 200lu),
unacked_packets_.GetNumUnackedPacketsDebugOnly());
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698