Arman Uguray | 72fab6a | 2013-01-10 19:32:42 -0800 | [diff] [blame] | 1 | // Copyright (c) 2013 The Chromium OS Authors. All rights reserved. |
Ben Chan | 1578603 | 2012-11-04 21:28:02 -0800 | [diff] [blame] | 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_OPERATOR_INFO_H_ |
| 6 | #define SHILL_MOCK_CELLULAR_OPERATOR_INFO_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include <gmock/gmock.h> |
| 11 | |
| 12 | #include "shill/cellular_operator_info.h" |
| 13 | |
| 14 | namespace shill { |
| 15 | |
| 16 | class MockCellularOperatorInfo : public CellularOperatorInfo { |
| 17 | public: |
| 18 | MockCellularOperatorInfo(); |
| 19 | virtual ~MockCellularOperatorInfo(); |
| 20 | |
Albert Chaulk | 0e1cdea | 2013-02-27 15:32:55 -0800 | [diff] [blame] | 21 | MOCK_METHOD1(Load, bool(const base::FilePath &info_file_path)); |
Arman Uguray | 73a83e6 | 2013-02-12 18:51:33 -0800 | [diff] [blame] | 22 | MOCK_CONST_METHOD1(GetOLPByMCCMNC, |
| 23 | const CellularService::OLP *(const std::string &mccmnc)); |
| 24 | MOCK_CONST_METHOD1(GetCellularOperatorByMCCMNC, |
| 25 | const CellularOperator *(const std::string &mccmnc)); |
Arman Uguray | 72fab6a | 2013-01-10 19:32:42 -0800 | [diff] [blame] | 26 | MOCK_CONST_METHOD1(GetOLPBySID, |
| 27 | const CellularService::OLP *(const std::string &sid)); |
| 28 | MOCK_CONST_METHOD1(GetCellularOperatorBySID, |
| 29 | const CellularOperator *(const std::string &sid)); |
Ben Chan | 1578603 | 2012-11-04 21:28:02 -0800 | [diff] [blame] | 30 | }; |
| 31 | |
| 32 | } // namespace shill |
| 33 | |
| 34 | #endif // SHILL_MOCK_CELLULAR_OPERATOR_INFO_H_ |