David Rochberg | fa1d31d | 2012-03-20 10:38:07 -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 | |
Jason Glasgow | 1452187 | 2012-05-07 19:12:15 -0400 | [diff] [blame] | 5 | #ifndef SHILL_MOCK_CELLULAR_H_ |
| 6 | #define SHILL_MOCK_CELLULAR_H_ |
David Rochberg | fa1d31d | 2012-03-20 10:38:07 -0400 | [diff] [blame] | 7 | |
| 8 | #include <string> |
Jason Glasgow | 1452187 | 2012-05-07 19:12:15 -0400 | [diff] [blame] | 9 | #include <vector> |
David Rochberg | fa1d31d | 2012-03-20 10:38:07 -0400 | [diff] [blame] | 10 | |
| 11 | #include <gmock/gmock.h> |
| 12 | |
| 13 | #include "shill/cellular.h" |
| 14 | |
| 15 | namespace shill { |
| 16 | |
| 17 | class MockCellular : public Cellular { |
| 18 | public: |
| 19 | MockCellular(ControlInterface *control_interface, |
| 20 | EventDispatcher *dispatcher, |
| 21 | Metrics *metrics, |
| 22 | Manager *manager, |
| 23 | const std::string &link_name, |
| 24 | const std::string &address, |
| 25 | int interface_index, |
| 26 | Type type, |
| 27 | const std::string &owner, |
Jason Glasgow | a585fc3 | 2012-06-06 11:04:09 -0400 | [diff] [blame] | 28 | const std::string &service, |
David Rochberg | fa1d31d | 2012-03-20 10:38:07 -0400 | [diff] [blame] | 29 | const std::string &path, |
Ben Chan | 62028b2 | 2012-11-05 11:20:02 -0800 | [diff] [blame] | 30 | CellularOperatorInfo *cellular_operator_info, |
Ben Chan | 3ecdf82 | 2012-08-06 12:29:23 -0700 | [diff] [blame] | 31 | mobile_provider_db *provider_db, |
| 32 | ProxyFactory *proxy_factory); |
David Rochberg | fa1d31d | 2012-03-20 10:38:07 -0400 | [diff] [blame] | 33 | virtual ~MockCellular(); |
| 34 | |
Christopher Wiley | 7d0953e | 2012-11-16 00:37:10 -0800 | [diff] [blame] | 35 | MOCK_METHOD1(Disconnect, void(Error *error)); |
Christopher Wiley | 7d0953e | 2012-11-16 00:37:10 -0800 | [diff] [blame] | 36 | MOCK_METHOD3(OnDBusPropertiesChanged, void( |
| 37 | const std::string &interface, |
| 38 | const DBusPropertiesMap &changed_properties, |
| 39 | const std::vector<std::string> &invalidated_properties)); |
| 40 | MOCK_METHOD1(set_modem_state, void(ModemState state)); |
Darin Petkov | a0a0efe | 2012-06-27 12:50:01 +0200 | [diff] [blame] | 41 | MOCK_METHOD0(DestroyService, void()); |
David Rochberg | fa1d31d | 2012-03-20 10:38:07 -0400 | [diff] [blame] | 42 | |
| 43 | private: |
| 44 | DISALLOW_COPY_AND_ASSIGN(MockCellular); |
| 45 | }; |
| 46 | |
| 47 | } // namespace shill |
| 48 | |
Jason Glasgow | 1452187 | 2012-05-07 19:12:15 -0400 | [diff] [blame] | 49 | #endif // SHILL_MOCK_CELLULAR_H_ |