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

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

Issue 2823223003: Rename QuicSession::GetCryptoStream() to GetMutableCryptoStream(). Add a const GetCryptoStream(). M… (Closed)
Patch Set: Created 3 years, 8 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/quic_client_session_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_dispatcher_test.cc
diff --git a/net/tools/quic/quic_dispatcher_test.cc b/net/tools/quic/quic_dispatcher_test.cc
index 81c2cb90d7e44624f06fe02c3647995e00537eb7..4eef64bdaebc6cf320b34b8a5f31046f66515cd7 100644
--- a/net/tools/quic/quic_dispatcher_test.cc
+++ b/net/tools/quic/quic_dispatcher_test.cc
@@ -68,7 +68,7 @@ class TestQuicSpdyServerSession : public QuicServerSessionBase {
nullptr,
crypto_config,
compressed_certs_cache),
- crypto_stream_(QuicServerSessionBase::GetCryptoStream()) {}
+ crypto_stream_(QuicServerSessionBase::GetMutableCryptoStream()) {}
~TestQuicSpdyServerSession() override { delete connection(); };
@@ -93,7 +93,11 @@ class TestQuicSpdyServerSession : public QuicServerSessionBase {
crypto_stream_ = crypto_stream;
}
- QuicCryptoServerStreamBase* GetCryptoStream() override {
+ QuicCryptoServerStreamBase* GetMutableCryptoStream() override {
+ return crypto_stream_;
+ }
+
+ const QuicCryptoServerStreamBase* GetCryptoStream() const override {
return crypto_stream_;
}
« no previous file with comments | « net/tools/quic/quic_client_session_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698