mock_quic_dispatcher.h revision f8ee788a64d60abd8f2d742a5fdedde054ecd910
1// Copyright 2014 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 NET_QUIC_TEST_TOOLS_MOCK_QUIC_DISPATCHER_H_ 6#define NET_QUIC_TEST_TOOLS_MOCK_QUIC_DISPATCHER_H_ 7 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_dispatcher.h" 12#include "net/quic/quic_protocol.h" 13#include "testing/gmock/include/gmock/gmock.h" 14 15namespace net { 16namespace test { 17 18class MockQuicDispatcher : public QuicDispatcher { 19 public: 20 MockQuicDispatcher(const QuicConfig& config, 21 const QuicCryptoServerConfig& crypto_config, 22 QuicConnectionHelperInterface* helper); 23 24 virtual ~MockQuicDispatcher(); 25 26 MOCK_METHOD3(ProcessPacket, void(const IPEndPoint& server_address, 27 const IPEndPoint& client_address, 28 const QuicEncryptedPacket& packet)); 29 30 private: 31 DISALLOW_COPY_AND_ASSIGN(MockQuicDispatcher); 32}; 33 34} // namespace test 35} // namespace net 36 37#endif // NET_QUIC_TEST_TOOLS_MOCK_QUIC_DISPATCHER_H_ 38