Ben Chan | c07362b | 2012-05-12 10:54:11 -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_WIMAX_H_ |
| 6 | #define SHILL_MOCK_WIMAX_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include <gmock/gmock.h> |
| 11 | |
| 12 | #include "shill/wimax.h" |
| 13 | |
| 14 | namespace shill { |
| 15 | |
| 16 | class ControlInterface; |
| 17 | class Error; |
| 18 | class EventDispatcher; |
| 19 | |
| 20 | class MockWiMax : public WiMax { |
| 21 | public: |
| 22 | MockWiMax(ControlInterface *control, |
| 23 | EventDispatcher *dispatcher, |
| 24 | Metrics *metrics, |
| 25 | Manager *manager, |
| 26 | const std::string &link_name, |
Ben Chan | 4e64d2d | 2012-05-16 00:02:25 -0700 | [diff] [blame] | 27 | const std::string &address, |
Darin Petkov | b72b62e | 2012-05-15 16:55:36 +0200 | [diff] [blame] | 28 | int interface_index, |
| 29 | const RpcIdentifier &path); |
Ben Chan | c07362b | 2012-05-12 10:54:11 -0700 | [diff] [blame] | 30 | virtual ~MockWiMax(); |
| 31 | |
| 32 | MOCK_METHOD2(Start, void(Error *error, |
| 33 | const EnabledStateChangedCallback &callback)); |
| 34 | MOCK_METHOD2(Stop, void(Error *error, |
| 35 | const EnabledStateChangedCallback &callback)); |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 36 | MOCK_METHOD2(ConnectTo, void(const WiMaxServiceRefPtr &service, |
| 37 | Error *error)); |
Darin Petkov | c63dcf0 | 2012-05-24 11:51:43 +0200 | [diff] [blame] | 38 | MOCK_METHOD2(DisconnectFrom, void(const ServiceRefPtr &service, |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 39 | Error *error)); |
Darin Petkov | 6b9b2e1 | 2012-07-10 15:51:42 +0200 | [diff] [blame] | 40 | MOCK_CONST_METHOD0(IsIdle, bool()); |
Darin Petkov | c63dcf0 | 2012-05-24 11:51:43 +0200 | [diff] [blame] | 41 | MOCK_METHOD1(OnServiceStopped, void(const WiMaxServiceRefPtr &service)); |
Darin Petkov | b96a451 | 2012-06-04 11:02:49 +0200 | [diff] [blame] | 42 | MOCK_METHOD0(OnDeviceVanished, void()); |
Darin Petkov | d1cd797 | 2012-05-22 15:26:15 +0200 | [diff] [blame] | 43 | |
Ben Chan | c07362b | 2012-05-12 10:54:11 -0700 | [diff] [blame] | 44 | private: |
| 45 | DISALLOW_COPY_AND_ASSIGN(MockWiMax); |
| 46 | }; |
| 47 | |
| 48 | } // namespace shill |
| 49 | |
| 50 | #endif // SHILL_MOCK_WIMAX_H_ |