Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [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_MM1_MOCK_MODEM_MODEMCDMA_PROXY_H_ |
| 6 | #define SHILL_MM1_MOCK_MODEM_MODEMCDMA_PROXY_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include <base/basictypes.h> |
| 11 | #include <gmock/gmock.h> |
| 12 | |
| 13 | #include "shill/mm1_modem_modemcdma_proxy_interface.h" |
| 14 | |
| 15 | namespace shill { |
| 16 | namespace mm1 { |
| 17 | |
| 18 | class MockModemModemCdmaProxy : public ModemModemCdmaProxyInterface { |
| 19 | public: |
| 20 | MockModemModemCdmaProxy(); |
| 21 | virtual ~MockModemModemCdmaProxy(); |
| 22 | |
| 23 | MOCK_METHOD4(Activate, void( |
| 24 | const std::string &carrier, |
| 25 | Error *error, |
| 26 | const ResultCallback &callback, |
| 27 | int timeout)); |
| 28 | |
| 29 | MOCK_METHOD4(ActivateManual, void( |
| 30 | const DBusPropertiesMap &properties, |
| 31 | Error *error, |
| 32 | const ResultCallback &callback, |
| 33 | int timeout)); |
| 34 | |
| 35 | MOCK_METHOD1(set_activation_state_callback, |
| 36 | void(const ActivationStateSignalCallback &callback)); |
| 37 | |
| 38 | // Properties. |
| 39 | MOCK_METHOD0(Meid, std::string()); |
| 40 | MOCK_METHOD0(Esn, std::string()); |
| 41 | MOCK_METHOD0(Sid, uint32_t()); |
| 42 | MOCK_METHOD0(Nid, uint32_t()); |
| 43 | MOCK_METHOD0(Cdma1xRegistrationState, uint32_t()); |
| 44 | MOCK_METHOD0(EvdoRegistrationState, uint32_t()); |
| 45 | |
| 46 | private: |
| 47 | DISALLOW_COPY_AND_ASSIGN(MockModemModemCdmaProxy); |
| 48 | }; |
| 49 | |
| 50 | } // namespace mm1 |
| 51 | } // namespace shill |
| 52 | |
| 53 | #endif // SHILL_MM1_MOCK_MODEM_MODEMCDMA_PROXY_H_ |