Eric Shienbrood | 5de44ab | 2011-12-05 10:46:27 -0500 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
Darin Petkov | 975b5e7 | 2011-08-30 11:48:08 -0700 | [diff] [blame] | 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_GSM_CARD_PROXY_H_ |
| 6 | #define SHILL_MOCK_MODEM_GSM_CARD_PROXY_H_ |
| 7 | |
Hristo Stefanov | ed2c28c | 2011-11-29 15:37:30 -0800 | [diff] [blame] | 8 | #include <string> |
| 9 | |
Darin Petkov | 975b5e7 | 2011-08-30 11:48:08 -0700 | [diff] [blame] | 10 | #include <base/basictypes.h> |
| 11 | #include <gmock/gmock.h> |
| 12 | |
| 13 | #include "shill/modem_gsm_card_proxy_interface.h" |
| 14 | |
| 15 | namespace shill { |
| 16 | |
| 17 | class MockModemGSMCardProxy : public ModemGSMCardProxyInterface { |
| 18 | public: |
| 19 | MockModemGSMCardProxy(); |
| 20 | virtual ~MockModemGSMCardProxy(); |
| 21 | |
Eric Shienbrood | 9a24553 | 2012-03-07 14:20:39 -0500 | [diff] [blame] | 22 | MOCK_METHOD3(GetIMEI, void(Error *error, |
| 23 | const GSMIdentifierCallback &callback, |
| 24 | int timeout)); |
| 25 | MOCK_METHOD3(GetIMSI, void(Error *error, |
| 26 | const GSMIdentifierCallback &callback, |
| 27 | int timeout)); |
| 28 | MOCK_METHOD3(GetSPN, void(Error *error, |
| 29 | const GSMIdentifierCallback &callback, |
| 30 | int timeout)); |
| 31 | MOCK_METHOD3(GetMSISDN, void(Error *error, |
| 32 | const GSMIdentifierCallback &callback, |
| 33 | int timeout)); |
Darin Petkov | 975b5e7 | 2011-08-30 11:48:08 -0700 | [diff] [blame] | 34 | |
Eric Shienbrood | 9a24553 | 2012-03-07 14:20:39 -0500 | [diff] [blame] | 35 | MOCK_METHOD5(EnablePIN, void(const std::string &pin, bool enabled, |
| 36 | Error *error, const ResultCallback &callback, |
| 37 | int timeout)); |
| 38 | MOCK_METHOD4(SendPIN, void(const std::string &pin, |
| 39 | Error *error, const ResultCallback &callback, |
| 40 | int timeout)); |
| 41 | MOCK_METHOD5(SendPUK, void(const std::string &puk, const std::string &pin, |
| 42 | Error *error, const ResultCallback &callback, |
| 43 | int timeout)); |
| 44 | MOCK_METHOD5(ChangePIN, void(const std::string &old_pin, |
Eric Shienbrood | 5de44ab | 2011-12-05 10:46:27 -0500 | [diff] [blame] | 45 | const std::string &new_pin, |
Eric Shienbrood | 9a24553 | 2012-03-07 14:20:39 -0500 | [diff] [blame] | 46 | Error *error, const ResultCallback &callback, |
| 47 | int timeout)); |
Darin Petkov | 63138a9 | 2012-02-06 14:09:15 +0100 | [diff] [blame] | 48 | MOCK_METHOD0(EnabledFacilityLocks, uint32()); |
Darin Petkov | e42e101 | 2011-08-31 12:35:04 -0700 | [diff] [blame] | 49 | |
Darin Petkov | 975b5e7 | 2011-08-30 11:48:08 -0700 | [diff] [blame] | 50 | private: |
| 51 | DISALLOW_COPY_AND_ASSIGN(MockModemGSMCardProxy); |
| 52 | }; |
| 53 | |
| 54 | } // namespace shill |
| 55 | |
| 56 | #endif // SHILL_MOCK_MODEM_GSM_CARD_PROXY_H_ |