Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [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 | |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 5 | #ifndef SHILL_MOCK_WIMAX_DEVICE_PROXY_H_ |
| 6 | #define SHILL_MOCK_WIMAX_DEVICE_PROXY_H_ |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 7 | |
| 8 | #include <base/basictypes.h> |
| 9 | #include <gmock/gmock.h> |
| 10 | |
| 11 | #include "shill/wimax_device_proxy_interface.h" |
| 12 | |
| 13 | namespace shill { |
| 14 | |
| 15 | class MockWiMaxDeviceProxy : public WiMaxDeviceProxyInterface { |
| 16 | public: |
| 17 | MockWiMaxDeviceProxy(); |
| 18 | virtual ~MockWiMaxDeviceProxy(); |
| 19 | |
| 20 | MOCK_METHOD3(Enable, void(Error *error, |
| 21 | const ResultCallback &callback, |
| 22 | int timeout)); |
| 23 | MOCK_METHOD3(Disable, void(Error *error, |
| 24 | const ResultCallback &callback, |
| 25 | int timeout)); |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 26 | MOCK_METHOD3(ScanNetworks, void(Error *error, |
| 27 | const ResultCallback &callback, |
| 28 | int timeout)); |
Darin Petkov | 25665aa | 2012-05-21 14:08:12 +0200 | [diff] [blame] | 29 | MOCK_METHOD5(Connect, void(const RpcIdentifier &network, |
| 30 | const KeyValueStore ¶meters, |
Ben Chan | 4e5c131 | 2012-05-18 18:45:38 -0700 | [diff] [blame] | 31 | Error *error, |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 32 | const ResultCallback &callback, |
| 33 | int timeout)); |
| 34 | MOCK_METHOD3(Disconnect, void(Error *error, |
| 35 | const ResultCallback &callback, |
| 36 | int timeout)); |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 37 | MOCK_METHOD1(set_networks_changed_callback, |
| 38 | void(const NetworksChangedCallback &callback)); |
Darin Petkov | 8ea0eaf | 2012-05-29 11:21:33 +0200 | [diff] [blame] | 39 | MOCK_METHOD1(set_status_changed_callback, |
| 40 | void(const StatusChangedCallback &callback)); |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 41 | MOCK_METHOD1(Index, uint8(Error *error)); |
| 42 | MOCK_METHOD1(Name, std::string(Error *error)); |
Darin Petkov | 59f2d69 | 2012-06-07 15:57:46 +0200 | [diff] [blame] | 43 | MOCK_METHOD1(Networks, RpcIdentifiers(Error *error)); |
Darin Petkov | 096b347 | 2012-05-15 10:26:22 +0200 | [diff] [blame] | 44 | |
| 45 | DISALLOW_COPY_AND_ASSIGN(MockWiMaxDeviceProxy); |
| 46 | }; |
| 47 | |
| 48 | } // namespace shill |
| 49 | |
Darin Petkov | 9893d9c | 2012-05-17 15:27:31 -0700 | [diff] [blame] | 50 | #endif // SHILL_MOCK_WIMAX_DEVICE_PROXY_H_ |