Move QBONE's TunDeviceController to third_party. PiperOrigin-RevId: 344067044 Change-Id: I3db29b202401eb0d8a8ec4e2f2c2a01fa0e85b9c
diff --git a/quic/qbone/bonnet/mock_tun_device_controller.h b/quic/qbone/bonnet/mock_tun_device_controller.h new file mode 100644 index 0000000..2d097ca --- /dev/null +++ b/quic/qbone/bonnet/mock_tun_device_controller.h
@@ -0,0 +1,27 @@ +// Copyright (c) 2020 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_TUN_DEVICE_CONTROLLER_H_ +#define QUICHE_QUIC_QBONE_BONNET_MOCK_TUN_DEVICE_CONTROLLER_H_ + +#include "net/third_party/quiche/src/quic/platform/api/quic_test.h" +#include "net/third_party/quiche/src/quic/qbone/bonnet/tun_device_controller.h" + +namespace quic { + +class MockTunDeviceController : public TunDeviceController { + public: + MockTunDeviceController() : TunDeviceController("", true, nullptr) {} + + MOCK_METHOD(bool, UpdateAddress, (const IpRange&), (override)); + + MOCK_METHOD(bool, UpdateRoutes, (const IpRange&, const std::vector<IpRange>&), + (override)); + + MOCK_METHOD(QuicIpAddress, current_address, (), (override)); +}; + +} // namespace quic + +#endif // QUICHE_QUIC_QBONE_BONNET_MOCK_TUN_DEVICE_CONTROLLER_H_