Arman Uguray | f84a424 | 2013-04-09 20:01:07 -0700 | [diff] [blame] | 1 | // 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 Vakulenko | 8a53229 | 2014-06-16 17:18:44 -0700 | [diff] [blame] | 8 | #include <string> |
| 9 | |
Arman Uguray | f84a424 | 2013-04-09 20:01:07 -0700 | [diff] [blame] | 10 | #include <gmock/gmock.h> |
| 11 | |
| 12 | #include "shill/connection_health_checker.h" |
| 13 | |
| 14 | namespace shill { |
| 15 | |
| 16 | class MockConnectionHealthChecker : public ConnectionHealthChecker { |
| 17 | public: |
| 18 | MockConnectionHealthChecker( |
| 19 | ConnectionRefPtr connection, |
Paul Stewart | 1e006c6 | 2015-06-16 12:29:06 -0700 | [diff] [blame] | 20 | EventDispatcher* dispatcher, |
| 21 | IPAddressStore* remote_ips, |
| 22 | const base::Callback<void(Result)>& result_callback); |
Ben Chan | 5ea763b | 2014-08-13 11:07:54 -0700 | [diff] [blame] | 23 | ~MockConnectionHealthChecker() override; |
Arman Uguray | f84a424 | 2013-04-09 20:01:07 -0700 | [diff] [blame] | 24 | |
Paul Stewart | 1e006c6 | 2015-06-16 12:29:06 -0700 | [diff] [blame] | 25 | MOCK_METHOD1(AddRemoteURL, void(const std::string& url_string)); |
Arman Uguray | f84a424 | 2013-04-09 20:01:07 -0700 | [diff] [blame] | 26 | 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_ |