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 | |
Ben Chan | c54afe5 | 2014-11-05 10:28:08 -0800 | [diff] [blame] | 5 | #ifndef SHILL_CELLULAR_MOCK_MM1_SIM_PROXY_H_ |
| 6 | #define SHILL_CELLULAR_MOCK_MM1_SIM_PROXY_H_ |
Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [diff] [blame] | 7 | |
| 8 | #include <string> |
| 9 | |
Ben Chan | cc67c52 | 2014-09-03 07:19:18 -0700 | [diff] [blame] | 10 | #include <base/macros.h> |
Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [diff] [blame] | 11 | #include <gmock/gmock.h> |
| 12 | |
Ben Chan | c54afe5 | 2014-11-05 10:28:08 -0800 | [diff] [blame] | 13 | #include "shill/cellular/mm1_sim_proxy_interface.h" |
Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [diff] [blame] | 14 | |
| 15 | namespace shill { |
| 16 | namespace mm1 { |
| 17 | |
| 18 | class MockSimProxy : public SimProxyInterface { |
| 19 | public: |
| 20 | MockSimProxy(); |
Ben Chan | 5ea763b | 2014-08-13 11:07:54 -0700 | [diff] [blame] | 21 | ~MockSimProxy() override; |
Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [diff] [blame] | 22 | |
Paul Stewart | 2f6c789 | 2015-06-16 13:13:10 -0700 | [diff] [blame^] | 23 | MOCK_METHOD4(SendPin, void(const std::string& pin, |
| 24 | Error* error, |
| 25 | const ResultCallback& callback, |
Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [diff] [blame] | 26 | int timeout)); |
Paul Stewart | 2f6c789 | 2015-06-16 13:13:10 -0700 | [diff] [blame^] | 27 | MOCK_METHOD5(SendPuk, void(const std::string& puk, |
| 28 | const std::string& pin, |
| 29 | Error* error, |
| 30 | const ResultCallback& callback, |
Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [diff] [blame] | 31 | int timeout)); |
Paul Stewart | 2f6c789 | 2015-06-16 13:13:10 -0700 | [diff] [blame^] | 32 | MOCK_METHOD5(EnablePin, void(const std::string& pin, |
Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [diff] [blame] | 33 | const bool enabled, |
Paul Stewart | 2f6c789 | 2015-06-16 13:13:10 -0700 | [diff] [blame^] | 34 | Error* error, |
| 35 | const ResultCallback& callback, |
Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [diff] [blame] | 36 | int timeout)); |
Paul Stewart | 2f6c789 | 2015-06-16 13:13:10 -0700 | [diff] [blame^] | 37 | MOCK_METHOD5(ChangePin, void(const std::string& old_pin, |
| 38 | const std::string& new_pin, |
| 39 | Error* error, |
| 40 | const ResultCallback& callback, |
Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [diff] [blame] | 41 | int timeout)); |
| 42 | |
Alex Vakulenko | 8a53229 | 2014-06-16 17:18:44 -0700 | [diff] [blame] | 43 | private: |
Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [diff] [blame] | 44 | DISALLOW_COPY_AND_ASSIGN(MockSimProxy); |
| 45 | }; |
| 46 | |
| 47 | } // namespace mm1 |
| 48 | } // namespace shill |
| 49 | |
Ben Chan | c54afe5 | 2014-11-05 10:28:08 -0800 | [diff] [blame] | 50 | #endif // SHILL_CELLULAR_MOCK_MM1_SIM_PROXY_H_ |