blob: deabfaaf8f97c85b9ed986814fb41e8350046828 [file] [log] [blame]
Peter Qiud7881022015-01-21 12:27:41 -08001// 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
13namespace shill {
14
Peter Qiuffa56372015-01-22 14:25:23 -080015class Connection;
16
Peter Qiud7881022015-01-21 12:27:41 -080017class MockActiveLinkMonitor : public ActiveLinkMonitor {
18 public:
19 MockActiveLinkMonitor();
20 ~MockActiveLinkMonitor() override;
21
22 MOCK_METHOD1(Start, bool(int));
23 MOCK_METHOD0(Stop, void());
Paul Stewart1e006c62015-06-16 12:29:06 -070024 MOCK_CONST_METHOD0(gateway_mac_address, const ByteString&());
25 MOCK_METHOD1(set_gateway_mac_address, void(const ByteString&));
Peter Qiuffa56372015-01-22 14:25:23 -080026 MOCK_CONST_METHOD0(gateway_supports_unicast_arp, bool());
27 MOCK_METHOD1(set_gateway_supports_unicast_arp, void(bool));
Peter Qiud7881022015-01-21 12:27:41 -080028
29 private:
30 DISALLOW_COPY_AND_ASSIGN(MockActiveLinkMonitor);
31};
32
33} // namespace shill
34
35#endif // SHILL_MOCK_ACTIVE_LINK_MONITOR_H_