Paul Stewart | 6c72c97 | 2012-07-27 11:29:20 -0700 | [diff] [blame] | 1 | // 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 | |
| 12 | namespace shill { |
| 13 | |
| 14 | class MockLinkMonitor : public LinkMonitor { |
| 15 | public: |
| 16 | MockLinkMonitor(); |
| 17 | virtual ~MockLinkMonitor(); |
| 18 | |
| 19 | MOCK_METHOD0(Start, bool()); |
| 20 | MOCK_METHOD0(Stop, void()); |
Paul Stewart | f1961f8 | 2012-09-11 20:45:39 -0700 | [diff] [blame] | 21 | MOCK_CONST_METHOD0(GetResponseTimeMilliseconds, int()); |
Paul Stewart | 9f7823e | 2012-08-09 10:58:26 -0700 | [diff] [blame] | 22 | MOCK_CONST_METHOD0(IsGatewayFound, bool()); |
Paul Stewart | 6c72c97 | 2012-07-27 11:29:20 -0700 | [diff] [blame] | 23 | |
| 24 | DISALLOW_COPY_AND_ASSIGN(MockLinkMonitor); |
| 25 | }; |
| 26 | |
| 27 | } // namespace shill |
| 28 | |
| 29 | #endif // SHILL_MOCK_LINK_MONITOR_H_ |