Jason Glasgow | 1452187 | 2012-05-07 19:12:15 -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 | |
| 5 | #ifndef SHILL_MOCK_CELLULAR_SERVICE_H_ |
| 6 | #define SHILL_MOCK_CELLULAR_SERIVCE_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include <gmock/gmock.h> |
| 11 | |
| 12 | #include "shill/cellular_service.h" |
| 13 | |
| 14 | namespace shill { |
| 15 | |
| 16 | class MockCellularService : public CellularService { |
| 17 | public: |
Prathmesh Prabhu | 0d36b4f | 2013-04-01 11:45:54 -0700 | [diff] [blame] | 18 | MockCellularService(ModemInfo *modem_info, |
Jason Glasgow | 1452187 | 2012-05-07 19:12:15 -0400 | [diff] [blame] | 19 | const CellularRefPtr &device); |
| 20 | virtual ~MockCellularService(); |
| 21 | |
Arman Uguray | c7b1560 | 2013-02-16 00:56:18 -0800 | [diff] [blame] | 22 | MOCK_METHOD0(AutoConnect, void()); |
Jason Glasgow | 1452187 | 2012-05-07 19:12:15 -0400 | [diff] [blame] | 23 | MOCK_METHOD1(SetLastGoodApn, void(const Stringmap &apn_info)); |
| 24 | MOCK_METHOD0(ClearLastGoodApn, void()); |
Arman Uguray | c7b1560 | 2013-02-16 00:56:18 -0800 | [diff] [blame] | 25 | MOCK_METHOD1(SetActivationState, void(const std::string &state)); |
Arman Uguray | f84a424 | 2013-04-09 20:01:07 -0700 | [diff] [blame] | 26 | MOCK_METHOD1(Disconnect, void(Error *error)); |
Jason Glasgow | 1452187 | 2012-05-07 19:12:15 -0400 | [diff] [blame] | 27 | |
| 28 | private: |
| 29 | DISALLOW_COPY_AND_ASSIGN(MockCellularService); |
| 30 | }; |
| 31 | |
| 32 | } // namespace shill |
| 33 | |
| 34 | #endif // SHILL_MOCK_CELLULAR_SERVICE_H_ |