We started redesigning GpuMemoryBuffer interface to handle multiple buffers [0].
[chromium-blink-merge.git] / net / tools / quic / test_tools / mock_quic_dispatcher.h
blob8e3ec0dea9242c21adc2ade3929429e5e17b264e
1 // Copyright 2013 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.
5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_DISPATCHER_H_
6 #define NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_DISPATCHER_H_
8 #include "net/base/ip_endpoint.h"
9 #include "net/quic/crypto/quic_crypto_server_config.h"
10 #include "net/quic/quic_config.h"
11 #include "net/quic/quic_protocol.h"
12 #include "net/tools/quic/quic_dispatcher.h"
13 #include "testing/gmock/include/gmock/gmock.h"
15 namespace net {
16 namespace tools {
17 namespace test {
19 class MockQuicDispatcher : public QuicDispatcher {
20 public:
21 MockQuicDispatcher(const QuicConfig& config,
22 const QuicCryptoServerConfig* crypto_config,
23 PacketWriterFactory* packet_writer_factory,
24 QuicConnectionHelperInterface* helper);
26 ~MockQuicDispatcher() override;
28 MOCK_METHOD3(ProcessPacket, void(const IPEndPoint& server_address,
29 const IPEndPoint& client_address,
30 const QuicEncryptedPacket& packet));
32 private:
33 DISALLOW_COPY_AND_ASSIGN(MockQuicDispatcher);
36 } // namespace test
37 } // namespace tools
38 } // namespace net
40 #endif // NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_DISPATCHER_H_