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_MODEM_SIMPLE_PROXY_H_ |
| 6 | #define SHILL_CELLULAR_MOCK_MM1_MODEM_SIMPLE_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_modem_simple_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 MockModemSimpleProxy : public ModemSimpleProxyInterface { |
| 19 | public: |
| 20 | MockModemSimpleProxy(); |
Ben Chan | 5ea763b | 2014-08-13 11:07:54 -0700 | [diff] [blame] | 21 | ~MockModemSimpleProxy() 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(Connect, void(const DBusPropertiesMap& properties, |
| 24 | Error* error, |
| 25 | const DBusPathCallback& 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_METHOD4(Disconnect, void(const ::DBus::Path& bearer, |
| 28 | Error* error, |
| 29 | const ResultCallback& callback, |
Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [diff] [blame] | 30 | int timeout)); |
Paul Stewart | 2f6c789 | 2015-06-16 13:13:10 -0700 | [diff] [blame^] | 31 | MOCK_METHOD3(GetStatus, void(Error* error, |
| 32 | const DBusPropertyMapCallback& callback, |
Jason Glasgow | ef96556 | 2012-04-10 16:12:35 -0400 | [diff] [blame] | 33 | int timeout)); |
| 34 | private: |
| 35 | DISALLOW_COPY_AND_ASSIGN(MockModemSimpleProxy); |
| 36 | }; |
| 37 | |
| 38 | } // namespace mm1 |
| 39 | } // namespace shill |
| 40 | |
Ben Chan | c54afe5 | 2014-11-05 10:28:08 -0800 | [diff] [blame] | 41 | #endif // SHILL_CELLULAR_MOCK_MM1_MODEM_SIMPLE_PROXY_H_ |