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

Unified Diff: net/quic/quic_framer.cc

Issue 1415743010: Removing quic_allow_oversized_packets_for_test by generating and writing packets without a QuicConn… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@106389203
Patch Set: 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/quic_connection.cc ('k') | net/quic/test_tools/quic_connection_peer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_framer.cc
diff --git a/net/quic/quic_framer.cc b/net/quic/quic_framer.cc
index 005f42071bb18639323d6788f330f27ea6d1974a..9f94d5a2516bb02e694053b2b0d305603696d213 100644
--- a/net/quic/quic_framer.cc
+++ b/net/quic/quic_framer.cc
@@ -304,11 +304,7 @@ size_t QuicFramer::GetSerializedFrameLength(
DVLOG(1) << "Truncating large frame, free bytes: " << free_bytes;
return free_bytes;
}
- if (!FLAGS_quic_allow_oversized_packets_for_test) {
- return 0;
- }
- LOG(DFATAL) << "Packet size too small to fit frame.";
- return frame_len;
+ return 0;
}
QuicFramer::AckFrameInfo::AckFrameInfo() : max_delta(0) {}
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/test_tools/quic_connection_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698