blob: 045b5aa6b0c3fd0656cfcc2ca5bd1b8726fe5f0e [file] [log] [blame]
// Copyright 2018 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 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_