Arman Uguray | 2c39fab | 2012-12-12 16:56:34 -0800 | [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_LOCATION_PROXY_H_ |
| 6 | #define SHILL_MM1_MOCK_MODEM_LOCATION_PROXY_H_ |
| 7 | |
| 8 | #include <base/basictypes.h> |
| 9 | #include <gmock/gmock.h> |
| 10 | |
| 11 | #include "shill/mm1_modem_location_proxy_interface.h" |
| 12 | |
| 13 | namespace shill { |
| 14 | namespace mm1 { |
| 15 | |
| 16 | class MockModemLocationProxy : public ModemLocationProxyInterface { |
| 17 | public: |
| 18 | MockModemLocationProxy(); |
| 19 | virtual ~MockModemLocationProxy(); |
| 20 | |
| 21 | // Inherited methods from ModemLocationProxyInterface. |
| 22 | MOCK_METHOD5(Setup, void(uint32_t sources, |
| 23 | bool signal_location, |
| 24 | Error *error, |
| 25 | const ResultCallback &callback, |
| 26 | int timeout)); |
| 27 | |
| 28 | MOCK_METHOD3(GetLocation, void(Error *error, |
| 29 | const DBusEnumValueMapCallback &callback, |
| 30 | int timeout)); |
| 31 | |
| 32 | // Inherited properties from ModemLocationProxyInterface. |
| 33 | MOCK_METHOD0(Capabilities, uint32_t()); |
| 34 | MOCK_METHOD0(Enabled, uint32_t()); |
| 35 | MOCK_METHOD0(SignalsLocation, bool()); |
| 36 | MOCK_METHOD0(Location, const DBusEnumValueMap()); |
| 37 | |
| 38 | private: |
| 39 | DISALLOW_COPY_AND_ASSIGN(MockModemLocationProxy); |
| 40 | }; |
| 41 | |
| 42 | } // namespace mm1 |
| 43 | } // namespace shill |
| 44 | |
| 45 | #endif // SHILL_MM1_MOCK_MODEM_LOCATION_PROXY_H_ |