blob: f1f8e87cad310703526037b1dd4a0df561e82c3e [file] [log] [blame]
// Copyright (c) 2019 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_QBONE_BONNET_MOCK_PACKET_EXCHANGER_STATS_INTERFACE_H_
#define QUICHE_QUIC_QBONE_BONNET_MOCK_PACKET_EXCHANGER_STATS_INTERFACE_H_
#include "net/third_party/quiche/src/quic/platform/api/quic_test.h"
#include "net/third_party/quiche/src/quic/qbone/bonnet/tun_device_packet_exchanger.h"
namespace quic {
class MockPacketExchangerStatsInterface
: public TunDevicePacketExchanger::StatsInterface {
public:
MOCK_METHOD(void, OnPacketRead, (size_t), (override));
MOCK_METHOD(void, OnPacketWritten, (size_t), (override));
MOCK_METHOD(void, OnReadError, (std::string*), (override));
MOCK_METHOD(void, OnWriteError, (std::string*), (override));
MOCK_METHOD(int64_t, PacketsRead, (), (const, override));
MOCK_METHOD(int64_t, PacketsWritten, (), (const, override));
};
} // namespace quic
#endif // QUICHE_QUIC_QBONE_BONNET_MOCK_PACKET_EXCHANGER_STATS_INTERFACE_H_