Darin Petkov | fb0625e | 2012-01-16 13:05:56 +0100 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
Darin Petkov | e9d12e0 | 2011-07-27 15:09:37 -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_PROXY_H_ |
| 6 | #define SHILL_MOCK_MODEM_PROXY_H_ |
| 7 | |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 8 | #include <base/basictypes.h> |
Darin Petkov | e9d12e0 | 2011-07-27 15:09:37 -0700 | [diff] [blame] | 9 | #include <gmock/gmock.h> |
| 10 | |
| 11 | #include "shill/modem_proxy_interface.h" |
| 12 | |
| 13 | namespace shill { |
| 14 | |
| 15 | class MockModemProxy : public ModemProxyInterface { |
| 16 | public: |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 17 | MockModemProxy(); |
| 18 | virtual ~MockModemProxy(); |
| 19 | |
Eric Shienbrood | 9a24553 | 2012-03-07 14:20:39 -0500 | [diff] [blame] | 20 | MOCK_METHOD4(Enable, void(bool enable, Error *error, |
| 21 | const ResultCallback &callback, int timeout)); |
| 22 | MOCK_METHOD3(Disconnect, void(Error *error, const ResultCallback &callback, |
| 23 | int timeout)); |
| 24 | MOCK_METHOD3(GetModemInfo, void(Error *error, |
| 25 | const ModemInfoCallback &callback, |
| 26 | int timeout)); |
| 27 | MOCK_METHOD1(set_state_changed_callback, |
| 28 | void(const ModemStateChangedSignalCallback &callback)); |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 29 | |
| 30 | private: |
| 31 | DISALLOW_COPY_AND_ASSIGN(MockModemProxy); |
Darin Petkov | e9d12e0 | 2011-07-27 15:09:37 -0700 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | } // namespace shill |
| 35 | |
| 36 | #endif // SHILL_MOCK_MODEM_PROXY_H_ |