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

Unified Diff: net/quic/quartc/quartc_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/quartc/quartc_session.cc ('k') | net/quic/test_tools/crypto_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quartc/quartc_stream_test.cc
diff --git a/net/quic/quartc/quartc_stream_test.cc b/net/quic/quartc/quartc_stream_test.cc
index c074be8afdc62f624c2784e52ef35157a984fd65..0f6f041615c23e2433de381793498625f2eb81b7 100644
--- a/net/quic/quartc/quartc_stream_test.cc
+++ b/net/quic/quartc/quartc_stream_test.cc
@@ -37,7 +37,7 @@ class MockQuicSession : public QuicSession {
QuicStreamId id,
QuicIOVector iovector,
QuicStreamOffset offset,
- bool fin,
+ StreamSendingState fin,
QuicReferenceCountedPointer<
QuicAckListenerInterface> /*ack_notifier_delegate*/) override {
if (!writable_) {
@@ -47,7 +47,7 @@ class MockQuicSession : public QuicSession {
const char* data = reinterpret_cast<const char*>(iovector.iov->iov_base);
size_t len = iovector.total_length;
write_buffer_->append(data, len);
- return QuicConsumedData(len, fin);
+ return QuicConsumedData(len, fin != NO_FIN);
}
QuartcStream* CreateIncomingDynamicStream(QuicStreamId id) override {
@@ -58,7 +58,8 @@ class MockQuicSession : public QuicSession {
return nullptr;
}
- QuicCryptoStream* GetCryptoStream() override { return nullptr; }
+ const QuicCryptoStream* GetCryptoStream() const override { return nullptr; }
+ QuicCryptoStream* GetMutableCryptoStream() override { return nullptr; }
// Called by QuicStream when they want to close stream.
void SendRstStream(QuicStreamId id,
« no previous file with comments | « net/quic/quartc/quartc_session.cc ('k') | net/quic/test_tools/crypto_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698