OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 CellularDataPlan*(const std::string&)); | 86 CellularDataPlan*(const std::string&)); |
87 | 87 |
88 MOCK_METHOD2(ChangePin, void(const std::string&, const std::string&)); | 88 MOCK_METHOD2(ChangePin, void(const std::string&, const std::string&)); |
89 MOCK_METHOD2(ChangeRequirePin, void(bool, const std::string&)); | 89 MOCK_METHOD2(ChangeRequirePin, void(bool, const std::string&)); |
90 MOCK_METHOD1(EnterPin, void(const std::string&)); | 90 MOCK_METHOD1(EnterPin, void(const std::string&)); |
91 MOCK_METHOD2(UnblockPin, void(const std::string&, const std::string&)); | 91 MOCK_METHOD2(UnblockPin, void(const std::string&, const std::string&)); |
92 | 92 |
93 MOCK_METHOD0(RequestCellularScan, void()); | 93 MOCK_METHOD0(RequestCellularScan, void()); |
94 MOCK_METHOD1(RequestCellularRegister, void(const std::string&)); | 94 MOCK_METHOD1(RequestCellularRegister, void(const std::string&)); |
95 MOCK_METHOD1(SetCellularDataRoamingAllowed, void(bool)); | 95 MOCK_METHOD1(SetCellularDataRoamingAllowed, void(bool)); |
| 96 MOCK_METHOD0(IsCellularAlwaysInRoaming, bool()); |
96 | 97 |
97 MOCK_METHOD0(RequestNetworkScan, void(void)); | 98 MOCK_METHOD0(RequestNetworkScan, void(void)); |
98 MOCK_CONST_METHOD1(HasProfileType, bool(NetworkProfileType)); | 99 MOCK_CONST_METHOD1(HasProfileType, bool(NetworkProfileType)); |
99 MOCK_METHOD1(GetWifiAccessPoints, bool(WifiAccessPointVector*)); | 100 MOCK_METHOD1(GetWifiAccessPoints, bool(WifiAccessPointVector*)); |
100 MOCK_CONST_METHOD1(CanConnectToNetwork, bool(const Network*)); | 101 MOCK_CONST_METHOD1(CanConnectToNetwork, bool(const Network*)); |
101 MOCK_METHOD1(ConnectToWifiNetwork, void(WifiNetwork*)); | 102 MOCK_METHOD1(ConnectToWifiNetwork, void(WifiNetwork*)); |
102 MOCK_METHOD2(ConnectToWifiNetwork, void(WifiNetwork*, bool)); | 103 MOCK_METHOD2(ConnectToWifiNetwork, void(WifiNetwork*, bool)); |
103 MOCK_METHOD6(ConnectToUnconfiguredWifiNetwork, | 104 MOCK_METHOD6(ConnectToUnconfiguredWifiNetwork, |
104 void(const std::string&, | 105 void(const std::string&, |
105 ConnectionSecurity, | 106 ConnectionSecurity, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 MOCK_METHOD3(GetIPConfigs, NetworkIPConfigVector(const std::string&, | 153 MOCK_METHOD3(GetIPConfigs, NetworkIPConfigVector(const std::string&, |
153 std::string*, | 154 std::string*, |
154 HardwareAddressFormat)); | 155 HardwareAddressFormat)); |
155 MOCK_METHOD1(SetIPConfig, void(const NetworkIPConfig&)); | 156 MOCK_METHOD1(SetIPConfig, void(const NetworkIPConfig&)); |
156 MOCK_METHOD0(SwitchToPreferredNetwork, void(void)); | 157 MOCK_METHOD0(SwitchToPreferredNetwork, void(void)); |
157 }; | 158 }; |
158 | 159 |
159 } // namespace chromeos | 160 } // namespace chromeos |
160 | 161 |
161 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ | 162 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ |
OLD | NEW |