wub | f975eac | 2019-08-19 19:41:01 -0700 | [diff] [blame] | 1 | // Copyright (c) 2019 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_H_ |
| 6 | #define QUICHE_QUIC_QBONE_BONNET_MOCK_TUN_DEVICE_H_ |
| 7 | |
| 8 | #include "net/third_party/quiche/src/quic/platform/api/quic_test.h" |
| 9 | #include "net/third_party/quiche/src/quic/qbone/bonnet/tun_device_interface.h" |
| 10 | |
| 11 | namespace quic { |
| 12 | |
| 13 | class MockTunDevice : public TunDeviceInterface { |
| 14 | public: |
| 15 | MOCK_METHOD0(Init, bool()); |
| 16 | |
| 17 | MOCK_METHOD0(Up, bool()); |
| 18 | |
| 19 | MOCK_METHOD0(Down, bool()); |
| 20 | |
| 21 | MOCK_CONST_METHOD0(GetFileDescriptor, int()); |
| 22 | }; |
| 23 | |
| 24 | } // namespace quic |
| 25 | |
| 26 | #endif // QUICHE_QUIC_QBONE_BONNET_MOCK_TUN_DEVICE_H_ |