blob: 491f7009f85f25ee677d6d54afd6f54591bd7ef2 [file] [log] [blame]
// Copyright (c) 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef QUICHE_QUIC_TEST_TOOLS_MOCK_QUIC_SPDY_CLIENT_STREAM_H_
#define QUICHE_QUIC_TEST_TOOLS_MOCK_QUIC_SPDY_CLIENT_STREAM_H_
#include "quic/core/http/quic_header_list.h"
#include "quic/core/http/quic_spdy_client_stream.h"
#include "quic/core/quic_packets.h"
#include "quic/platform/api/quic_test.h"
namespace quic {
namespace test {
class MockQuicSpdyClientStream : public QuicSpdyClientStream {
public:
MockQuicSpdyClientStream(QuicStreamId id,
QuicSpdyClientSession* session,
StreamType type);
~MockQuicSpdyClientStream() override;
MOCK_METHOD(void, OnStreamFrame, (const QuicStreamFrame& frame), (override));
MOCK_METHOD(void,
OnPromiseHeaderList,
(QuicStreamId promised_stream_id,
size_t frame_len,
const QuicHeaderList& list),
(override));
MOCK_METHOD(void, OnDataAvailable, (), (override));
};
} // namespace test
} // namespace quic
#endif // QUICHE_QUIC_TEST_TOOLS_MOCK_QUIC_SPDY_CLIENT_STREAM_H_