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, |
| 30 | mobile_provider_db *provider_db); |
| 31 | virtual ~MockCellular(); |
| 32 | |
| 33 | MOCK_METHOD2(InitCapability, void(Type, ProxyFactory *)); |
Jason Glasgow | 4c0724a | 2012-04-17 15:47:40 -0400 | [diff] [blame] | 34 | MOCK_METHOD3(OnDBusPropertiesChanged, void(const std::string &, |
| 35 | const DBusPropertiesMap &, |
| 36 | const std::vector<std::string> &)); |
David Rochberg | fa1d31d | 2012-03-20 10:38:07 -0400 | [diff] [blame] | 37 | MOCK_METHOD1(set_modem_state, void(ModemState)); |
| 38 | |
| 39 | private: |
| 40 | DISALLOW_COPY_AND_ASSIGN(MockCellular); |
| 41 | }; |
| 42 | |
| 43 | } // namespace shill |
| 44 | |
Jason Glasgow | 1452187 | 2012-05-07 19:12:15 -0400 | [diff] [blame] | 45 | #endif // SHILL_MOCK_CELLULAR_H_ |