| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |