QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 1 | // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef QUICHE_QUIC_TEST_TOOLS_MOCK_QUIC_SPDY_CLIENT_STREAM_H_ |
| 6 | #define QUICHE_QUIC_TEST_TOOLS_MOCK_QUIC_SPDY_CLIENT_STREAM_H_ |
| 7 | |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 8 | #include "net/third_party/quiche/src/quic/core/http/quic_header_list.h" |
| 9 | #include "net/third_party/quiche/src/quic/core/http/quic_spdy_client_stream.h" |
| 10 | #include "net/third_party/quiche/src/quic/core/quic_packets.h" |
dschinazi | 580d30b | 2019-04-26 15:05:20 -0700 | [diff] [blame] | 11 | #include "net/third_party/quiche/src/quic/platform/api/quic_test.h" |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 12 | |
| 13 | namespace quic { |
| 14 | namespace test { |
| 15 | |
| 16 | class MockQuicSpdyClientStream : public QuicSpdyClientStream { |
| 17 | public: |
| 18 | MockQuicSpdyClientStream(QuicStreamId id, |
| 19 | QuicSpdyClientSession* session, |
| 20 | StreamType type); |
| 21 | ~MockQuicSpdyClientStream() override; |
| 22 | |
| 23 | MOCK_METHOD1(OnStreamFrame, void(const QuicStreamFrame& frame)); |
| 24 | MOCK_METHOD3(OnPromiseHeaderList, |
| 25 | void(QuicStreamId promised_stream_id, |
| 26 | size_t frame_len, |
| 27 | const QuicHeaderList& list)); |
| 28 | MOCK_METHOD0(OnDataAvailable, void()); |
| 29 | }; |
| 30 | |
| 31 | } // namespace test |
| 32 | } // namespace quic |
| 33 | |
| 34 | #endif // QUICHE_QUIC_TEST_TOOLS_MOCK_QUIC_SPDY_CLIENT_STREAM_H_ |