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

Unified Diff: net/quic/quic_packet_creator_test.cc

Issue 1037403004: Land Recent QUIC Changes until 03/27/2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 5 years, 9 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_packet_creator.cc ('k') | net/quic/quic_packet_generator.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 75a867633d496d09b57457dbae2ec47a42d9481b..d9d13fd44e8e45315db13a39372115c12d1a1a2d 100644
--- a/net/quic/quic_packet_creator_test.cc
+++ b/net/quic/quic_packet_creator_test.cc
@@ -642,7 +642,7 @@ TEST_P(QuicPacketCreatorTest, CreateAllFreeBytesForStreamFrames) {
const size_t overhead = GetPacketHeaderOverhead(NOT_IN_FEC_GROUP)
+ GetEncryptionOverhead();
for (size_t i = overhead; i < overhead + 100; ++i) {
- creator_.set_max_packet_length(i);
+ creator_.SetMaxPacketLength(i);
const bool should_have_room = i > overhead + GetStreamFrameOverhead(
NOT_IN_FEC_GROUP);
ASSERT_EQ(should_have_room, creator_.HasRoomForStreamFrame(
@@ -884,7 +884,7 @@ TEST_P(QuicPacketCreatorTest, CreateStreamFrameTooLarge) {
}
// A string larger than fits into a frame.
size_t payload_length;
- creator_.set_max_packet_length(GetPacketLengthForOneStream(
+ creator_.SetMaxPacketLength(GetPacketLengthForOneStream(
client_framer_.version(),
QuicPacketCreatorPeer::SendVersionInPacket(&creator_),
creator_.connection_id_length(),
@@ -958,7 +958,7 @@ TEST_P(QuicPacketCreatorTest, SerializeTruncatedAckFrameWithLargePacketSize) {
if (!GetParam().version_serialization) {
creator_.StopSendingVersion();
}
- creator_.set_max_packet_length(kMaxPacketSize);
+ creator_.SetMaxPacketLength(kMaxPacketSize);
// Serialized length of ack frame with 2000 nack ranges should be limited by
// the number of nack ranges that can be fit in an ack frame.
@@ -1001,7 +1001,7 @@ TEST_P(QuicPacketCreatorTest, SerializeTruncatedAckFrameWithSmallPacketSize) {
if (!GetParam().version_serialization) {
creator_.StopSendingVersion();
}
- creator_.set_max_packet_length(500u);
+ creator_.SetMaxPacketLength(500u);
const size_t max_plaintext_size =
client_framer_.GetMaxPlaintextSize(creator_.max_packet_length());
« no previous file with comments | « net/quic/quic_packet_creator.cc ('k') | net/quic/quic_packet_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698