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

Unified Diff: net/quic/quic_connection_test.cc

Issue 1481403005: Fix size_t truncations in net for 64-bit VS 2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR feedback Created 5 years, 1 month 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/congestion_control/time_loss_algorithm_test.cc ('k') | net/server/web_socket_encoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection_test.cc
diff --git a/net/quic/quic_connection_test.cc b/net/quic/quic_connection_test.cc
index 0085934c46f782d04f978730c5e31f20581510c4..4e18afd193c5266c3e8199e440a03439ccf3340a 100644
--- a/net/quic/quic_connection_test.cc
+++ b/net/quic/quic_connection_test.cc
@@ -801,7 +801,7 @@ class QuicConnectionTest : public ::testing::TestWithParam<TestParams> {
connection_.ProcessUdpPacket(
kSelfAddress, kPeerAddress,
QuicEncryptedPacket(buffer, encrypted_length, false));
- return encrypted_length;
+ return base::checked_cast<QuicPacketEntropyHash>(encrypted_length);
}
size_t ProcessDataPacket(QuicPacketNumber number,
« no previous file with comments | « net/quic/congestion_control/time_loss_algorithm_test.cc ('k') | net/server/web_socket_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698