blob: 17f083f7fb03e1b176850dab82883b2f737367e0 [file] [log] [blame]
Paul Stewart6c72c972012-07-27 11:29:20 -07001// Copyright (c) 2012 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_LINK_MONITOR_H_
6#define SHILL_MOCK_LINK_MONITOR_H_
7
8#include "shill/link_monitor.h"
9
10#include <gmock/gmock.h>
11
12namespace shill {
13
14class MockLinkMonitor : public LinkMonitor {
15 public:
16 MockLinkMonitor();
17 virtual ~MockLinkMonitor();
18
19 MOCK_METHOD0(Start, bool());
20 MOCK_METHOD0(Stop, void());
Paul Stewartf1961f82012-09-11 20:45:39 -070021 MOCK_CONST_METHOD0(GetResponseTimeMilliseconds, int());
Paul Stewart9f7823e2012-08-09 10:58:26 -070022 MOCK_CONST_METHOD0(IsGatewayFound, bool());
Paul Stewart6c72c972012-07-27 11:29:20 -070023
24 DISALLOW_COPY_AND_ASSIGN(MockLinkMonitor);
25};
26
27} // namespace shill
28
29#endif // SHILL_MOCK_LINK_MONITOR_H_