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

Unified Diff: net/quic/quic_reliable_client_stream_test.cc

Issue 1360063002: Include HTTP header bytes in GetTotalSent/ReceivedBytes for QUIC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nits Created 5 years, 3 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_reliable_client_stream.cc ('k') | net/quic/test_tools/quic_test_packet_maker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_reliable_client_stream_test.cc
diff --git a/net/quic/quic_reliable_client_stream_test.cc b/net/quic/quic_reliable_client_stream_test.cc
index 9f39ad43cdc38f2105ca817ad827659f24125d08..043e4d3bc302780908a1ec5fbc7314210a18826e 100644
--- a/net/quic/quic_reliable_client_stream_test.cc
+++ b/net/quic/quic_reliable_client_stream_test.cc
@@ -32,7 +32,7 @@ class MockDelegate : public QuicReliableClientStream::Delegate {
MOCK_METHOD0(OnSendData, int());
MOCK_METHOD2(OnSendDataComplete, int(int, bool*));
- MOCK_METHOD1(OnHeadersAvailable, void(const SpdyHeaderBlock&));
+ MOCK_METHOD2(OnHeadersAvailable, void(const SpdyHeaderBlock&, size_t));
MOCK_METHOD2(OnDataReceived, int(const char*, int));
MOCK_METHOD0(OnDataAvailable, void());
MOCK_METHOD1(OnClose, void(QuicErrorCode));
@@ -111,7 +111,8 @@ TEST_P(QuicReliableClientStreamTest, OnFinRead) {
stream_->OnStreamHeaders(uncompressed_headers);
stream_->OnStreamHeadersComplete(false, uncompressed_headers.length());
- EXPECT_CALL(delegate_, OnHeadersAvailable(headers_));
+ EXPECT_CALL(delegate_,
+ OnHeadersAvailable(headers_, uncompressed_headers.length()));
base::MessageLoop::current()->RunUntilIdle();
EXPECT_TRUE(stream_->decompressed_headers().empty());
@@ -134,7 +135,8 @@ TEST_P(QuicReliableClientStreamTest, OnDataAvailable) {
stream_->OnStreamHeaders(uncompressed_headers);
stream_->OnStreamHeadersComplete(false, uncompressed_headers.length());
- EXPECT_CALL(delegate_, OnHeadersAvailable(headers_));
+ EXPECT_CALL(delegate_,
+ OnHeadersAvailable(headers_, uncompressed_headers.length()));
base::MessageLoop::current()->RunUntilIdle();
EXPECT_TRUE(stream_->decompressed_headers().empty());
@@ -170,7 +172,8 @@ TEST_P(QuicReliableClientStreamTest, OnDataAvailableWithError) {
stream_->OnStreamHeaders(uncompressed_headers);
stream_->OnStreamHeadersComplete(false, uncompressed_headers.length());
- EXPECT_CALL(delegate_, OnHeadersAvailable(headers_));
+ EXPECT_CALL(delegate_,
+ OnHeadersAvailable(headers_, uncompressed_headers.length()));
base::MessageLoop::current()->RunUntilIdle();
EXPECT_TRUE(stream_->decompressed_headers().empty());
« no previous file with comments | « net/quic/quic_reliable_client_stream.cc ('k') | net/quic/test_tools/quic_test_packet_maker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698