Darin Petkov | bec79a2 | 2011-08-01 14:47:17 -0700 | [diff] [blame] | 1 | // Copyright (c) 2011 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_MODEM_CDMA_PROXY_H_ |
| 6 | #define SHILL_MOCK_MODEM_CDMA_PROXY_H_ |
| 7 | |
Hristo Stefanov | ed2c28c | 2011-11-29 15:37:30 -0800 | [diff] [blame] | 8 | #include <string> |
| 9 | |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 10 | #include <base/basictypes.h> |
Darin Petkov | bec79a2 | 2011-08-01 14:47:17 -0700 | [diff] [blame] | 11 | #include <gmock/gmock.h> |
| 12 | |
| 13 | #include "shill/modem_cdma_proxy_interface.h" |
| 14 | |
| 15 | namespace shill { |
| 16 | |
| 17 | class MockModemCDMAProxy : public ModemCDMAProxyInterface { |
| 18 | public: |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 19 | MockModemCDMAProxy(); |
| 20 | virtual ~MockModemCDMAProxy(); |
| 21 | |
Eric Shienbrood | 9a24553 | 2012-03-07 14:20:39 -0500 | [diff] [blame] | 22 | MOCK_METHOD4(Activate, void(const std::string &carrier, Error *error, |
| 23 | const ActivationResultCallback &callback, |
| 24 | int timeout)); |
| 25 | MOCK_METHOD3(GetRegistrationState, |
| 26 | void(Error *error, const RegistrationStateCallback &callback, |
| 27 | int timeout)); |
| 28 | MOCK_METHOD3(GetSignalQuality, void(Error *error, |
| 29 | const SignalQualityCallback &callback, |
| 30 | int timeout)); |
Darin Petkov | 975b5e7 | 2011-08-30 11:48:08 -0700 | [diff] [blame] | 31 | MOCK_METHOD0(MEID, const std::string()); |
Eric Shienbrood | 9a24553 | 2012-03-07 14:20:39 -0500 | [diff] [blame] | 32 | MOCK_METHOD1(set_activation_state_callback, |
| 33 | void(const ActivationStateSignalCallback &callback)); |
| 34 | MOCK_METHOD1(set_signal_quality_callback, |
| 35 | void(const SignalQualitySignalCallback &callback)); |
| 36 | MOCK_METHOD1(set_registration_state_callback, |
| 37 | void(const RegistrationStateSignalCallback &callback)); |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 38 | |
| 39 | private: |
| 40 | DISALLOW_COPY_AND_ASSIGN(MockModemCDMAProxy); |
Darin Petkov | bec79a2 | 2011-08-01 14:47:17 -0700 | [diff] [blame] | 41 | }; |
| 42 | |
| 43 | } // namespace shill |
| 44 | |
| 45 | #endif // SHILL_MOCK_MODEM_CDMA_PROXY_H_ |