Peter Qiu | fcc00ee | 2015-01-16 15:38:45 -0800 | [diff] [blame] | 1 | // Copyright 2015 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_PASSIVE_LINK_MONITOR_H_ |
| 6 | #define SHILL_MOCK_PASSIVE_LINK_MONITOR_H_ |
| 7 | |
| 8 | #include "shill/passive_link_monitor.h" |
| 9 | |
| 10 | #include <base/macros.h> |
| 11 | #include <gmock/gmock.h> |
| 12 | |
| 13 | namespace shill { |
| 14 | |
Peter Qiu | ffa5637 | 2015-01-22 14:25:23 -0800 | [diff] [blame] | 15 | class Connection; |
| 16 | |
Peter Qiu | fcc00ee | 2015-01-16 15:38:45 -0800 | [diff] [blame] | 17 | class MockPassiveLinkMonitor : public PassiveLinkMonitor { |
| 18 | public: |
| 19 | MockPassiveLinkMonitor(); |
| 20 | ~MockPassiveLinkMonitor() override; |
| 21 | |
| 22 | MOCK_METHOD1(Start, bool(int)); |
| 23 | MOCK_METHOD0(Stop, void()); |
| 24 | |
| 25 | private: |
| 26 | DISALLOW_COPY_AND_ASSIGN(MockPassiveLinkMonitor); |
| 27 | }; |
| 28 | |
| 29 | } // namespace shill |
| 30 | |
| 31 | #endif // SHILL_MOCK_PASSIVE_LINK_MONITOR_H_ |