xref: /aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/quic/qbone/bonnet/mock_tun_device_controller.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // 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 
8 #include "quiche/quic/platform/api/quic_test.h"
9 #include "quiche/quic/qbone/bonnet/tun_device_controller.h"
10 
11 namespace quic {
12 
13 class MockTunDeviceController : public TunDeviceController {
14  public:
MockTunDeviceController()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_
28