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 | |
Jason Glasgow | 4c0724a | 2012-04-17 15:47:40 -0400 | [diff] [blame] | 35 | MOCK_METHOD3(OnDBusPropertiesChanged, void(const std::string &, |
| 36 | const DBusPropertiesMap &, |
| 37 | const std::vector<std::string> &)); |
David Rochberg | fa1d31d | 2012-03-20 10:38:07 -0400 | [diff] [blame] | 38 | MOCK_METHOD1(set_modem_state, void(ModemState)); |
Darin Petkov | a0a0efe | 2012-06-27 12:50:01 +0200 | [diff] [blame] | 39 | MOCK_METHOD0(DestroyService, void()); |
David Rochberg | fa1d31d | 2012-03-20 10:38:07 -0400 | [diff] [blame] | 40 | |
| 41 | private: |
| 42 | DISALLOW_COPY_AND_ASSIGN(MockCellular); |
| 43 | }; |
| 44 | |
| 45 | } // namespace shill |
| 46 | |
Jason Glasgow | 1452187 | 2012-05-07 19:12:15 -0400 | [diff] [blame] | 47 | #endif // SHILL_MOCK_CELLULAR_H_ |