Paul Stewart | c681fa0 | 2012-03-02 19:40:04 -0800 | [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_PORTAL_DETECTOR_H_ |
| 6 | #define SHILL_MOCK_PORTAL_DETECTOR_H_ |
| 7 | |
Alex Vakulenko | 8a53229 | 2014-06-16 17:18:44 -0700 | [diff] [blame] | 8 | #include <string> |
| 9 | |
Paul Stewart | c681fa0 | 2012-03-02 19:40:04 -0800 | [diff] [blame] | 10 | #include <base/basictypes.h> |
| 11 | #include <gmock/gmock.h> |
| 12 | |
| 13 | #include "shill/portal_detector.h" |
| 14 | |
| 15 | namespace shill { |
| 16 | |
| 17 | class MockPortalDetector : public PortalDetector { |
| 18 | public: |
Alex Vakulenko | 8a53229 | 2014-06-16 17:18:44 -0700 | [diff] [blame] | 19 | explicit MockPortalDetector(ConnectionRefPtr connection); |
Ben Chan | 5ea763b | 2014-08-13 11:07:54 -0700 | [diff] [blame^] | 20 | ~MockPortalDetector() override; |
Paul Stewart | c681fa0 | 2012-03-02 19:40:04 -0800 | [diff] [blame] | 21 | |
| 22 | MOCK_METHOD1(Start, bool(const std::string &)); |
| 23 | MOCK_METHOD2(StartAfterDelay, bool(const std::string &, int delay_seconds)); |
| 24 | MOCK_METHOD0(Stop, void()); |
| 25 | MOCK_METHOD0(IsInProgress, bool()); |
| 26 | |
| 27 | private: |
| 28 | DISALLOW_COPY_AND_ASSIGN(MockPortalDetector); |
| 29 | }; |
| 30 | |
| 31 | } // namespace shill |
| 32 | |
| 33 | #endif // SHILL_MOCK_PORTAL_DETECTOR_H_ |