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

Side by Side Diff: net/quic/core/quic_session_test.cc

Issue 2460163002: Refactor QuicServerSessionBase::Visitor (Closed)
Patch Set: Updated patchset dependency Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_session.cc ('k') | net/quic/core/quic_spdy_session.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/core/quic_session.h" 5 #include "net/quic/core/quic_session.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 108 }
109 109
110 private: 110 private:
111 QuicSession* const session_; 111 QuicSession* const session_;
112 const QuicStreamId stream_id_; 112 const QuicStreamId stream_id_;
113 }; 113 };
114 114
115 class TestSession : public QuicSpdySession { 115 class TestSession : public QuicSpdySession {
116 public: 116 public:
117 explicit TestSession(QuicConnection* connection) 117 explicit TestSession(QuicConnection* connection)
118 : QuicSpdySession(connection, DefaultQuicConfig()), 118 : QuicSpdySession(connection, nullptr, DefaultQuicConfig()),
119 crypto_stream_(this), 119 crypto_stream_(this),
120 writev_consumes_all_data_(false) { 120 writev_consumes_all_data_(false) {
121 Initialize(); 121 Initialize();
122 this->connection()->SetEncrypter(ENCRYPTION_FORWARD_SECURE, 122 this->connection()->SetEncrypter(ENCRYPTION_FORWARD_SECURE,
123 new NullEncrypter()); 123 new NullEncrypter());
124 } 124 }
125 125
126 ~TestSession() override { delete connection(); } 126 ~TestSession() override { delete connection(); }
127 127
128 TestCryptoStream* GetCryptoStream() override { return &crypto_stream_; } 128 TestCryptoStream* GetCryptoStream() override { return &crypto_stream_; }
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1297 if (version() <= QUIC_VERSION_35) { 1297 if (version() <= QUIC_VERSION_35) {
1298 EXPECT_FALSE(session_.force_hol_blocking()); 1298 EXPECT_FALSE(session_.force_hol_blocking());
1299 } else { 1299 } else {
1300 EXPECT_TRUE(session_.force_hol_blocking()); 1300 EXPECT_TRUE(session_.force_hol_blocking());
1301 } 1301 }
1302 } 1302 }
1303 1303
1304 } // namespace 1304 } // namespace
1305 } // namespace test 1305 } // namespace test
1306 } // namespace net 1306 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_session.cc ('k') | net/quic/core/quic_spdy_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698