| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 ConnectionCloseSource source)); | 81 ConnectionCloseSource source)); |
| 82 MOCK_METHOD1(CreateIncomingDynamicStream, QuicSpdyStream*(QuicStreamId id)); | 82 MOCK_METHOD1(CreateIncomingDynamicStream, QuicSpdyStream*(QuicStreamId id)); |
| 83 MOCK_METHOD1(CreateOutgoingDynamicStream, | 83 MOCK_METHOD1(CreateOutgoingDynamicStream, |
| 84 QuicChromiumClientStream*(SpdyPriority priority)); | 84 QuicChromiumClientStream*(SpdyPriority priority)); |
| 85 MOCK_METHOD6( | 85 MOCK_METHOD6( |
| 86 WritevData, | 86 WritevData, |
| 87 QuicConsumedData(QuicStream* stream, | 87 QuicConsumedData(QuicStream* stream, |
| 88 QuicStreamId id, | 88 QuicStreamId id, |
| 89 QuicIOVector data, | 89 QuicIOVector data, |
| 90 QuicStreamOffset offset, | 90 QuicStreamOffset offset, |
| 91 bool fin, | 91 StreamSendingState fin, |
| 92 QuicReferenceCountedPointer<QuicAckListenerInterface>)); | 92 QuicReferenceCountedPointer<QuicAckListenerInterface>)); |
| 93 MOCK_METHOD3(SendRstStream, | 93 MOCK_METHOD3(SendRstStream, |
| 94 void(QuicStreamId stream_id, | 94 void(QuicStreamId stream_id, |
| 95 QuicRstStreamErrorCode error, | 95 QuicRstStreamErrorCode error, |
| 96 QuicStreamOffset bytes_written)); | 96 QuicStreamOffset bytes_written)); |
| 97 | 97 |
| 98 MOCK_METHOD2(OnStreamHeaders, | 98 MOCK_METHOD2(OnStreamHeaders, |
| 99 void(QuicStreamId stream_id, QuicStringPiece headers_data)); | 99 void(QuicStreamId stream_id, QuicStringPiece headers_data)); |
| 100 MOCK_METHOD2(OnStreamHeadersPriority, | 100 MOCK_METHOD2(OnStreamHeadersPriority, |
| 101 void(QuicStreamId stream_id, SpdyPriority priority)); | 101 void(QuicStreamId stream_id, SpdyPriority priority)); |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 stream->SetDelegate(&delegate_); | 600 stream->SetDelegate(&delegate_); |
| 601 ProcessHeadersFull(headers_); | 601 ProcessHeadersFull(headers_); |
| 602 | 602 |
| 603 // Times(2) because OnClose will be called for stream and stream_. | 603 // Times(2) because OnClose will be called for stream and stream_. |
| 604 EXPECT_CALL(delegate_, OnClose()).Times(2); | 604 EXPECT_CALL(delegate_, OnClose()).Times(2); |
| 605 } | 605 } |
| 606 | 606 |
| 607 } // namespace | 607 } // namespace |
| 608 } // namespace test | 608 } // namespace test |
| 609 } // namespace net | 609 } // namespace net |
| OLD | NEW |