| // Copyright 2015 The Chromium OS 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 SHILL_MOCK_ACTIVE_LINK_MONITOR_H_ |
| #define SHILL_MOCK_ACTIVE_LINK_MONITOR_H_ |
| |
| #include "shill/active_link_monitor.h" |
| |
| #include <base/macros.h> |
| #include <gmock/gmock.h> |
| |
| namespace shill { |
| |
| class Connection; |
| |
| class MockActiveLinkMonitor : public ActiveLinkMonitor { |
| public: |
| MockActiveLinkMonitor(); |
| ~MockActiveLinkMonitor() override; |
| |
| MOCK_METHOD1(Start, bool(int)); |
| MOCK_METHOD0(Stop, void()); |
| MOCK_CONST_METHOD0(gateway_mac_address, const ByteString &()); |
| MOCK_METHOD1(set_gateway_mac_address, void(const ByteString &)); |
| MOCK_CONST_METHOD0(gateway_supports_unicast_arp, bool()); |
| MOCK_METHOD1(set_gateway_supports_unicast_arp, void(bool)); |
| |
| private: |
| DISALLOW_COPY_AND_ASSIGN(MockActiveLinkMonitor); |
| }; |
| |
| } // namespace shill |
| |
| #endif // SHILL_MOCK_ACTIVE_LINK_MONITOR_H_ |