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

Unified Diff: net/quic/core/quic_session_test.cc

Issue 2609493002: Landing Recent QUIC changes until 05:15 PM, Dec 24, 2016 UTC (Closed)
Patch Set: Fix random. Created 4 years 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/core/quic_headers_stream_test.cc ('k') | net/quic/core/quic_spdy_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_session_test.cc
diff --git a/net/quic/core/quic_session_test.cc b/net/quic/core/quic_session_test.cc
index a77ec647e40b7033833bf2224af32767fac69a40..960f292b9aff8bfc355a4c84ece4d5acac97d373 100644
--- a/net/quic/core/quic_session_test.cc
+++ b/net/quic/core/quic_session_test.cc
@@ -22,7 +22,6 @@
#include "net/quic/test_tools/quic_config_peer.h"
#include "net/quic/test_tools/quic_connection_peer.h"
#include "net/quic/test_tools/quic_flow_controller_peer.h"
-#include "net/quic/test_tools/quic_headers_stream_peer.h"
#include "net/quic/test_tools/quic_session_peer.h"
#include "net/quic/test_tools/quic_spdy_session_peer.h"
#include "net/quic/test_tools/quic_spdy_stream_peer.h"
@@ -923,12 +922,12 @@ TEST_P(QuicSessionTestServer,
EXPECT_FALSE(session_.IsStreamFlowControlBlocked());
headers["header"] = QuicStrCat("", base::RandUint64(), base::RandUint64(),
base::RandUint64());
- headers_stream->WriteHeaders(stream_id, headers.Clone(), true, 0, nullptr);
+ session_.WriteHeaders(stream_id, headers.Clone(), true, 0, nullptr);
stream_id += 2;
}
// Write once more to ensure that the headers stream has buffered data. The
// random headers may have exactly filled the flow control window.
- headers_stream->WriteHeaders(stream_id, std::move(headers), true, 0, nullptr);
+ session_.WriteHeaders(stream_id, std::move(headers), true, 0, nullptr);
EXPECT_TRUE(headers_stream->HasBufferedData());
EXPECT_TRUE(headers_stream->flow_controller()->IsBlocked());
@@ -1303,9 +1302,9 @@ TEST_P(QuicSessionTestClient, EnableDHDTThroughConnectionOption) {
copt.push_back(kDHDT);
QuicConfigPeer::SetConnectionOptionsToSend(session_.config(), copt);
session_.OnConfigNegotiated();
- EXPECT_EQ(QuicHeadersStreamPeer::GetSpdyFramer(session_.headers_stream())
- .header_encoder_table_size(),
- 0UL);
+ EXPECT_EQ(
+ QuicSpdySessionPeer::GetSpdyFramer(&session_).header_encoder_table_size(),
+ 0UL);
}
TEST_P(QuicSessionTestClient, EnableFHOLThroughConfigOption) {
« no previous file with comments | « net/quic/core/quic_headers_stream_test.cc ('k') | net/quic/core/quic_spdy_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698