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

Unified Diff: net/quic/chromium/quic_chromium_client_stream_test.cc

Issue 2825083003: Landing Recent QUIC changes until Mon Apr 17 2017 (Closed)
Patch Set: Format 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/quic/chromium/quic_chromium_client_session_test.cc ('k') | net/quic/chromium/quic_http_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_chromium_client_stream_test.cc
diff --git a/net/quic/chromium/quic_chromium_client_stream_test.cc b/net/quic/chromium/quic_chromium_client_stream_test.cc
index 35b384c76dc16cbc24aebeea1b21e4aeb19ea960..95f258d9515acb06408423c5ee908e6d2da50310 100644
--- a/net/quic/chromium/quic_chromium_client_stream_test.cc
+++ b/net/quic/chromium/quic_chromium_client_stream_test.cc
@@ -66,7 +66,13 @@ class MockQuicClientSessionBase : public QuicClientSessionBase {
QuicClientPushPromiseIndex* index);
~MockQuicClientSessionBase() override;
- QuicCryptoStream* GetCryptoStream() override { return crypto_stream_.get(); }
+ const QuicCryptoStream* GetCryptoStream() const override {
+ return crypto_stream_.get();
+ }
+
+ QuicCryptoStream* GetMutableCryptoStream() override {
+ return crypto_stream_.get();
+ }
// From QuicSession.
MOCK_METHOD3(OnConnectionClosed,
@@ -82,7 +88,7 @@ class MockQuicClientSessionBase : public QuicClientSessionBase {
QuicStreamId id,
QuicIOVector data,
QuicStreamOffset offset,
- bool fin,
+ StreamSendingState fin,
QuicReferenceCountedPointer<QuicAckListenerInterface>));
MOCK_METHOD3(SendRstStream,
void(QuicStreamId stream_id,
@@ -101,7 +107,7 @@ class MockQuicClientSessionBase : public QuicClientSessionBase {
void(QuicStreamId stream_id,
QuicStreamId promised_stream_id,
size_t frame_len));
- MOCK_METHOD0(IsCryptoHandshakeConfirmed, bool());
+ MOCK_CONST_METHOD0(IsCryptoHandshakeConfirmed, bool());
// Methods taking non-copyable types like SpdyHeaderBlock by value cannot be
// mocked directly.
size_t WriteHeaders(QuicStreamId id,
« no previous file with comments | « net/quic/chromium/quic_chromium_client_session_test.cc ('k') | net/quic/chromium/quic_http_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698