blob: 08d31b26bbec626ac2915992e2e090611627470b [file] [log] [blame]
Arman Ugurayf84a4242013-04-09 20:01:07 -07001// Copyright (c) 2013 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_CONNECTION_HEALTH_CHECKER_H_
6#define SHILL_MOCK_CONNECTION_HEALTH_CHECKER_H_
7
8#include <gmock/gmock.h>
9
10#include "shill/connection_health_checker.h"
11
12namespace shill {
13
14class MockConnectionHealthChecker : public ConnectionHealthChecker {
15 public:
16 MockConnectionHealthChecker(
17 ConnectionRefPtr connection,
18 EventDispatcher *dispatcher,
Prathmesh Prabhuba99b592013-04-17 15:13:14 -070019 IPAddressStore *remote_ips,
Arman Ugurayf84a4242013-04-09 20:01:07 -070020 const base::Callback<void(Result)> &result_callback);
21 virtual ~MockConnectionHealthChecker();
22
23 MOCK_METHOD1(AddRemoteURL, void(const std::string &url_string));
24 MOCK_METHOD1(AddRemoteIP, void(IPAddress ip));
25 MOCK_METHOD0(Start, void());
26 MOCK_METHOD0(Stop, void());
27 MOCK_CONST_METHOD0(health_check_in_progress, bool());
28
29 private:
30 DISALLOW_COPY_AND_ASSIGN(MockConnectionHealthChecker);
31};
32
33} // namespace shill
34
35#endif // SHILL_MOCK_CONNECTION_HEALTH_CHECKER_H_