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

Unified Diff: net/tools/quic/quic_client_session_test.cc

Issue 2854833005: QUIC - stream id refactor for tests. (Closed)
Patch Set: fix test failures detected by swarming test bots Created 3 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/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_simple_server_session_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_client_session_test.cc
diff --git a/net/tools/quic/quic_client_session_test.cc b/net/tools/quic/quic_client_session_test.cc
index 7afd5389c7e1b6d7868f31f0d914380fc499d75b..137eacf7cba94b62d3dfbad50554df3c97719dd8 100644
--- a/net/tools/quic/quic_client_session_test.cc
+++ b/net/tools/quic/quic_client_session_test.cc
@@ -66,8 +66,8 @@ class QuicClientSessionTest : public QuicTestWithParam<QuicVersion> {
protected:
QuicClientSessionTest()
: crypto_config_(crypto_test_utils::ProofVerifierForTesting()),
- promised_stream_id_(kServerDataStreamId1),
- associated_stream_id_(kClientDataStreamId1) {
+ promised_stream_id_(kInvalidStreamId),
+ associated_stream_id_(kInvalidStreamId) {
Initialize();
// Advance the time, because timers do not like uninitialized times.
connection_->AdvanceTime(QuicTime::Delta::FromSeconds(1));
@@ -94,6 +94,10 @@ class QuicClientSessionTest : public QuicTestWithParam<QuicVersion> {
push_promise_[":method"] = "GET";
push_promise_[":scheme"] = "https";
promise_url_ = SpdyUtils::GetUrlFromHeaderBlock(push_promise_);
+ promised_stream_id_ =
+ QuicSpdySessionPeer::GetNthServerInitiatedStreamId(*session_, 0);
+ associated_stream_id_ =
+ QuicSpdySessionPeer::GetNthClientInitiatedStreamId(*session_, 0);
}
void CompleteCryptoHandshake() {
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_simple_server_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698