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

Unified Diff: net/quic/quic_packet_creator_test.cc

Issue 14287009: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with Tot Created 7 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 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 2f4e2e9a59fb639c8eff97b758e4cd78262656c9..60d48d04a8559aef60fb849392ede8c2bb24fd65 100644
--- a/net/quic/quic_packet_creator_test.cc
+++ b/net/quic/quic_packet_creator_test.cc
@@ -232,11 +232,12 @@ TEST_P(QuicPacketCreatorTest, CreateStreamFrameTooLarge) {
}
// A string larger than fits into a frame.
creator_.options()->max_packet_length = GetPacketLengthForOneStream(
- QuicPacketCreatorPeer::SendVersionInPacket(&creator_), 1);
+ QuicPacketCreatorPeer::SendVersionInPacket(&creator_), 4);
QuicFrame frame;
- size_t consumed = creator_.CreateStreamFrame(1u, "test", 0u, true, &frame);
- EXPECT_EQ(1u, consumed);
- CheckStreamFrame(frame, 1u, "t", 0u, false);
+ size_t consumed = creator_.CreateStreamFrame(1u, "testTooLong", 0u, true,
+ &frame);
+ EXPECT_EQ(4u, consumed);
+ CheckStreamFrame(frame, 1u, "test", 0u, false);
delete frame.stream_frame;
}
« 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