blob: 08d078d64fdda1818be15d643afcfc54ffec5e13 [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
Alex Vakulenko8a532292014-06-16 17:18:44 -07008#include <string>
9
Arman Ugurayf84a4242013-04-09 20:01:07 -070010#include <gmock/gmock.h>
11
12#include "shill/connection_health_checker.h"
13
14namespace shill {
15
16class MockConnectionHealthChecker : public ConnectionHealthChecker {
17 public:
18 MockConnectionHealthChecker(
19 ConnectionRefPtr connection,
Paul Stewart1e006c62015-06-16 12:29:06 -070020 EventDispatcher* dispatcher,
21 IPAddressStore* remote_ips,
22 const base::Callback<void(Result)>& result_callback);
Ben Chan5ea763b2014-08-13 11:07:54 -070023 ~MockConnectionHealthChecker() override;
Arman Ugurayf84a4242013-04-09 20:01:07 -070024
Paul Stewart1e006c62015-06-16 12:29:06 -070025 MOCK_METHOD1(AddRemoteURL, void(const std::string& url_string));
Arman Ugurayf84a4242013-04-09 20:01:07 -070026 MOCK_METHOD1(AddRemoteIP, void(IPAddress ip));
27 MOCK_METHOD0(Start, void());
28 MOCK_METHOD0(Stop, void());
29 MOCK_CONST_METHOD0(health_check_in_progress, bool());
30
31 private:
32 DISALLOW_COPY_AND_ASSIGN(MockConnectionHealthChecker);
33};
34
35} // namespace shill
36
37#endif // SHILL_MOCK_CONNECTION_HEALTH_CHECKER_H_