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 | |
| 8 | #include <gmock/gmock.h> |
| 9 | |
| 10 | #include "shill/connection_health_checker.h" |
| 11 | |
| 12 | namespace shill { |
| 13 | |
| 14 | class MockConnectionHealthChecker : public ConnectionHealthChecker { |
| 15 | public: |
| 16 | MockConnectionHealthChecker( |
| 17 | ConnectionRefPtr connection, |
| 18 | EventDispatcher *dispatcher, |
Prathmesh Prabhu | ba99b59 | 2013-04-17 15:13:14 -0700 | [diff] [blame] | 19 | IPAddressStore *remote_ips, |
Arman Uguray | f84a424 | 2013-04-09 20:01:07 -0700 | [diff] [blame] | 20 | 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_ |