QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 1 | // Copyright 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_CLIENT_PROMISED_INFO_H_ |
| 6 | #define QUICHE_QUIC_TEST_TOOLS_MOCK_QUIC_CLIENT_PROMISED_INFO_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 10 | #include "testing/gmock/include/gmock/gmock.h" |
| 11 | #include "net/third_party/quiche/src/quic/core/http/quic_client_promised_info.h" |
| 12 | #include "net/third_party/quiche/src/quic/core/quic_packets.h" |
| 13 | |
| 14 | namespace quic { |
| 15 | namespace test { |
| 16 | |
| 17 | class MockQuicClientPromisedInfo : public QuicClientPromisedInfo { |
| 18 | public: |
| 19 | MockQuicClientPromisedInfo(QuicSpdyClientSessionBase* session, |
| 20 | QuicStreamId id, |
vasilvv | c48c871 | 2019-03-11 13:38:16 -0700 | [diff] [blame] | 21 | std::string url); |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 22 | ~MockQuicClientPromisedInfo() override; |
| 23 | |
| 24 | MOCK_METHOD2(HandleClientRequest, |
| 25 | QuicAsyncStatus(const spdy::SpdyHeaderBlock& headers, |
| 26 | QuicClientPushPromiseIndex::Delegate* delegate)); |
| 27 | }; |
| 28 | |
| 29 | } // namespace test |
| 30 | } // namespace quic |
| 31 | |
| 32 | #endif // QUICHE_QUIC_TEST_TOOLS_MOCK_QUIC_CLIENT_PROMISED_INFO_H_ |