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

Unified Diff: net/quic/quic_framer_test.cc

Issue 1979763002: Landing Recent QUIC changes until Sun May 8 00:39:29 2016 +0000 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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.cc ('k') | net/quic/quic_headers_stream_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_framer_test.cc
diff --git a/net/quic/quic_framer_test.cc b/net/quic/quic_framer_test.cc
index 4996a8654689d49e39f9689d174da5e01b879d8f..a230570524acf4b8db523fd44bda2c68aae491d6 100644
--- a/net/quic/quic_framer_test.cc
+++ b/net/quic/quic_framer_test.cc
@@ -255,7 +255,7 @@ class TestQuicVisitor : public QuicFramerVisitorInterface {
++frame_count_;
// Save a copy of the data so it is valid after the packet is processed.
string* string_data = new string();
- StringPiece(frame.frame_buffer, frame.frame_length)
+ StringPiece(frame.data_buffer, frame.data_length)
.AppendToString(string_data);
stream_data_.push_back(string_data);
stream_frames_.push_back(new QuicStreamFrame(frame.stream_id, frame.fin,
@@ -446,7 +446,7 @@ class QuicFramerTest : public ::testing::TestWithParam<QuicVersion> {
// Checks if the supplied string matches data in the supplied StreamFrame.
void CheckStreamFrameData(string str, QuicStreamFrame* frame) {
- EXPECT_EQ(str, string(frame->frame_buffer, frame->frame_length));
+ EXPECT_EQ(str, string(frame->data_buffer, frame->data_length));
}
void CheckStreamFrameBoundaries(unsigned char* packet,
@@ -6959,7 +6959,7 @@ static QuicStreamId kTestQuicStreamId = 1;
static bool ExpectedStreamFrame(const QuicStreamFrame& frame) {
return frame.stream_id == kTestQuicStreamId && !frame.fin &&
frame.offset == 0 &&
- string(frame.frame_buffer, frame.frame_length) == kTestString;
+ string(frame.data_buffer, frame.data_length) == kTestString;
// FIN is hard-coded false in ConstructEncryptedPacket.
// Offset 0 is hard-coded in ConstructEncryptedPacket.
}
« no previous file with comments | « net/quic/quic_framer.cc ('k') | net/quic/quic_headers_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698