Peter Qiu | d788102 | 2015-01-21 12:27:41 -0800 | [diff] [blame] | 1 | // Copyright 2015 The Chromium OS 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 SHILL_MOCK_ACTIVE_LINK_MONITOR_H_ |
| 6 | #define SHILL_MOCK_ACTIVE_LINK_MONITOR_H_ |
| 7 | |
| 8 | #include "shill/active_link_monitor.h" |
| 9 | |
| 10 | #include <base/macros.h> |
| 11 | #include <gmock/gmock.h> |
| 12 | |
| 13 | namespace shill { |
| 14 | |
Peter Qiu | ffa5637 | 2015-01-22 14:25:23 -0800 | [diff] [blame] | 15 | class Connection; |
| 16 | |
Peter Qiu | d788102 | 2015-01-21 12:27:41 -0800 | [diff] [blame] | 17 | class MockActiveLinkMonitor : public ActiveLinkMonitor { |
| 18 | public: |
| 19 | MockActiveLinkMonitor(); |
| 20 | ~MockActiveLinkMonitor() override; |
| 21 | |
| 22 | MOCK_METHOD1(Start, bool(int)); |
| 23 | MOCK_METHOD0(Stop, void()); |
Paul Stewart | 1e006c6 | 2015-06-16 12:29:06 -0700 | [diff] [blame] | 24 | MOCK_CONST_METHOD0(gateway_mac_address, const ByteString&()); |
| 25 | MOCK_METHOD1(set_gateway_mac_address, void(const ByteString&)); |
Peter Qiu | ffa5637 | 2015-01-22 14:25:23 -0800 | [diff] [blame] | 26 | MOCK_CONST_METHOD0(gateway_supports_unicast_arp, bool()); |
| 27 | MOCK_METHOD1(set_gateway_supports_unicast_arp, void(bool)); |
Peter Qiu | d788102 | 2015-01-21 12:27:41 -0800 | [diff] [blame] | 28 | |
| 29 | private: |
| 30 | DISALLOW_COPY_AND_ASSIGN(MockActiveLinkMonitor); |
| 31 | }; |
| 32 | |
| 33 | } // namespace shill |
| 34 | |
| 35 | #endif // SHILL_MOCK_ACTIVE_LINK_MONITOR_H_ |