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

Side by Side Diff: net/quic/chromium/quic_chromium_client_stream_test.cc

Issue 2487613002: Landing Recent QUIC changes until 12:43 PM, Nov 5, 2016 UTC+8 (Closed)
Patch Set: 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
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/chromium/quic_chromium_client_stream.h" 5 #include "net/quic/chromium/quic_chromium_client_stream.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // From QuicSession. 74 // From QuicSession.
75 MOCK_METHOD3(OnConnectionClosed, 75 MOCK_METHOD3(OnConnectionClosed,
76 void(QuicErrorCode error, 76 void(QuicErrorCode error,
77 const std::string& error_details, 77 const std::string& error_details,
78 ConnectionCloseSource source)); 78 ConnectionCloseSource source));
79 MOCK_METHOD1(CreateIncomingDynamicStream, QuicSpdyStream*(QuicStreamId id)); 79 MOCK_METHOD1(CreateIncomingDynamicStream, QuicSpdyStream*(QuicStreamId id));
80 MOCK_METHOD1(CreateOutgoingDynamicStream, 80 MOCK_METHOD1(CreateOutgoingDynamicStream,
81 QuicChromiumClientStream*(SpdyPriority priority)); 81 QuicChromiumClientStream*(SpdyPriority priority));
82 MOCK_METHOD6(WritevData, 82 MOCK_METHOD6(WritevData,
83 QuicConsumedData(ReliableQuicStream* stream, 83 QuicConsumedData(QuicStream* stream,
84 QuicStreamId id, 84 QuicStreamId id,
85 QuicIOVector data, 85 QuicIOVector data,
86 QuicStreamOffset offset, 86 QuicStreamOffset offset,
87 bool fin, 87 bool fin,
88 QuicAckListenerInterface*)); 88 QuicAckListenerInterface*));
89 MOCK_METHOD3(SendRstStream, 89 MOCK_METHOD3(SendRstStream,
90 void(QuicStreamId stream_id, 90 void(QuicStreamId stream_id,
91 QuicRstStreamErrorCode error, 91 QuicRstStreamErrorCode error,
92 QuicStreamOffset bytes_written)); 92 QuicStreamOffset bytes_written));
93 93
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 stream->SetDelegate(&delegate_); 590 stream->SetDelegate(&delegate_);
591 ProcessHeadersFull(headers_); 591 ProcessHeadersFull(headers_);
592 592
593 // Times(2) because OnClose will be called for stream and stream_. 593 // Times(2) because OnClose will be called for stream and stream_.
594 EXPECT_CALL(delegate_, OnClose()).Times(2); 594 EXPECT_CALL(delegate_, OnClose()).Times(2);
595 } 595 }
596 596
597 } // namespace 597 } // namespace
598 } // namespace test 598 } // namespace test
599 } // namespace net 599 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_chromium_client_stream.cc ('k') | net/quic/core/congestion_control/bbr_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698