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_SIM_PROXY_ |
| 6 | #define SHILL_MM1_MOCK_SIM_PROXY_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include <base/basictypes.h> |
| 11 | #include <gmock/gmock.h> |
| 12 | |
| 13 | #include "shill/mm1_sim_proxy_interface.h" |
| 14 | |
| 15 | namespace shill { |
| 16 | namespace mm1 { |
| 17 | |
| 18 | class MockSimProxy : public SimProxyInterface { |
| 19 | public: |
| 20 | MockSimProxy(); |
| 21 | virtual ~MockSimProxy(); |
| 22 | |
| 23 | MOCK_METHOD4(SendPin, void(const std::string &pin, |
| 24 | Error *error, |
| 25 | const ResultCallback &callback, |
| 26 | int timeout)); |
| 27 | MOCK_METHOD5(SendPuk, void(const std::string &puk, |
| 28 | const std::string &pin, |
| 29 | Error *error, |
| 30 | const ResultCallback &callback, |
| 31 | int timeout)); |
| 32 | MOCK_METHOD5(EnablePin, void(const std::string &pin, |
| 33 | const bool enabled, |
| 34 | Error *error, |
| 35 | const ResultCallback &callback, |
| 36 | int timeout)); |
| 37 | MOCK_METHOD5(ChangePin, void(const std::string &old_pin, |
| 38 | const std::string &new_pin, |
| 39 | Error *error, |
| 40 | const ResultCallback &callback, |
| 41 | int timeout)); |
| 42 | |
| 43 | MOCK_METHOD0(SimIdentifier, const std::string()); |
| 44 | MOCK_METHOD0(Imsi, const std::string()); |
| 45 | MOCK_METHOD0(OperatorIdentifier, const std::string()); |
| 46 | MOCK_METHOD0(OperatorName, const std::string()); |
| 47 | |
| 48 | DISALLOW_COPY_AND_ASSIGN(MockSimProxy); |
| 49 | }; |
| 50 | |
| 51 | } // namespace mm1 |
| 52 | } // namespace shill |
| 53 | |
| 54 | #endif // SHILL_MM1_MOCK_SIM_PROXY_ |