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)); |
| 38 | MOCK_METHOD2(DisconnectFrom, void(const WiMaxServiceRefPtr &service, |
| 39 | Error *error)); |
Ben Chan | c07362b | 2012-05-12 10:54:11 -0700 | [diff] [blame] | 40 | |
| 41 | private: |
| 42 | DISALLOW_COPY_AND_ASSIGN(MockWiMax); |
| 43 | }; |
| 44 | |
| 45 | } // namespace shill |
| 46 | |
| 47 | #endif // SHILL_MOCK_WIMAX_H_ |