blob: 7773111b18c845473f93b51f5fb2ca10aa3ea4db [file] [log] [blame]
QUICHE team5dc3d592020-11-24 08:46:51 -08001// Copyright (c) 2020 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_QBONE_BONNET_MOCK_TUN_DEVICE_CONTROLLER_H_
6#define QUICHE_QUIC_QBONE_BONNET_MOCK_TUN_DEVICE_CONTROLLER_H_
7
QUICHE team5be974e2020-12-29 18:35:24 -05008#include "quic/platform/api/quic_test.h"
9#include "quic/qbone/bonnet/tun_device_controller.h"
QUICHE team5dc3d592020-11-24 08:46:51 -080010
11namespace quic {
12
13class MockTunDeviceController : public TunDeviceController {
14 public:
15 MockTunDeviceController() : TunDeviceController("", true, nullptr) {}
16
17 MOCK_METHOD(bool, UpdateAddress, (const IpRange&), (override));
18
19 MOCK_METHOD(bool, UpdateRoutes, (const IpRange&, const std::vector<IpRange>&),
20 (override));
21
22 MOCK_METHOD(QuicIpAddress, current_address, (), (override));
23};
24
25} // namespace quic
26
27#endif // QUICHE_QUIC_QBONE_BONNET_MOCK_TUN_DEVICE_CONTROLLER_H_