| // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef SHILL_MOCK_LINK_MONITOR_H_ |
| #define SHILL_MOCK_LINK_MONITOR_H_ |
| |
| #include "shill/link_monitor.h" |
| |
| #include <gmock/gmock.h> |
| |
| namespace shill { |
| |
| class MockLinkMonitor : public LinkMonitor { |
| public: |
| MockLinkMonitor(); |
| ~MockLinkMonitor() override; |
| |
| MOCK_METHOD0(Start, bool()); |
| MOCK_METHOD0(Stop, void()); |
| MOCK_METHOD0(OnAfterResume, void()); |
| MOCK_CONST_METHOD0(GetResponseTimeMilliseconds, int()); |
| MOCK_CONST_METHOD0(IsGatewayFound, bool()); |
| |
| private: |
| DISALLOW_COPY_AND_ASSIGN(MockLinkMonitor); |
| }; |
| |
| } // namespace shill |
| |
| #endif // SHILL_MOCK_LINK_MONITOR_H_ |