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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 MOCK_CONST_METHOD0(virtual_network_connected, bool(void)); | 54 MOCK_CONST_METHOD0(virtual_network_connected, bool(void)); |
55 | 55 |
56 MOCK_CONST_METHOD0(Connected, bool(void)); | 56 MOCK_CONST_METHOD0(Connected, bool(void)); |
57 MOCK_CONST_METHOD0(Connecting, bool(void)); | 57 MOCK_CONST_METHOD0(Connecting, bool(void)); |
58 | 58 |
59 MOCK_CONST_METHOD0(IPAddress, const std::string&(void)); | 59 MOCK_CONST_METHOD0(IPAddress, const std::string&(void)); |
60 MOCK_CONST_METHOD0(wifi_networks, const WifiNetworkVector&(void)); | 60 MOCK_CONST_METHOD0(wifi_networks, const WifiNetworkVector&(void)); |
61 MOCK_CONST_METHOD0(remembered_wifi_networks, const WifiNetworkVector&(void)); | 61 MOCK_CONST_METHOD0(remembered_wifi_networks, const WifiNetworkVector&(void)); |
62 MOCK_CONST_METHOD0(cellular_networks, const CellularNetworkVector&(void)); | 62 MOCK_CONST_METHOD0(cellular_networks, const CellularNetworkVector&(void)); |
63 MOCK_CONST_METHOD0(virtual_networks, const VirtualNetworkVector&(void)); | 63 MOCK_CONST_METHOD0(virtual_networks, const VirtualNetworkVector&(void)); |
| 64 MOCK_CONST_METHOD0(remembered_virtual_networks, |
| 65 const VirtualNetworkVector&(void)); |
64 | 66 |
65 MOCK_CONST_METHOD1(FindNetworkDeviceByPath, | 67 MOCK_CONST_METHOD1(FindNetworkDeviceByPath, |
66 NetworkDevice*(const std::string&)); | 68 NetworkDevice*(const std::string&)); |
67 MOCK_CONST_METHOD0(FindCellularDevice, const NetworkDevice*(void)); | 69 MOCK_CONST_METHOD0(FindCellularDevice, const NetworkDevice*(void)); |
68 MOCK_CONST_METHOD0(FindWifiDevice, const NetworkDevice*(void)); | 70 MOCK_CONST_METHOD0(FindWifiDevice, const NetworkDevice*(void)); |
69 MOCK_CONST_METHOD0(FindEthernetDevice, const NetworkDevice*(void)); | 71 MOCK_CONST_METHOD0(FindEthernetDevice, const NetworkDevice*(void)); |
70 MOCK_CONST_METHOD1(FindNetworkByPath, Network*(const std::string&)); | 72 MOCK_CONST_METHOD1(FindNetworkByPath, Network*(const std::string&)); |
71 MOCK_CONST_METHOD1(FindWifiNetworkByPath, WifiNetwork*(const std::string&)); | 73 MOCK_CONST_METHOD1(FindWifiNetworkByPath, WifiNetwork*(const std::string&)); |
72 MOCK_CONST_METHOD1(FindCellularNetworkByPath, | 74 MOCK_CONST_METHOD1(FindCellularNetworkByPath, |
73 CellularNetwork*(const std::string&)); | 75 CellularNetwork*(const std::string&)); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 MOCK_METHOD6(ConnectToVirtualNetworkCert, void(const std::string&, | 119 MOCK_METHOD6(ConnectToVirtualNetworkCert, void(const std::string&, |
118 const std::string&, | 120 const std::string&, |
119 const std::string&, | 121 const std::string&, |
120 const std::string&, | 122 const std::string&, |
121 const std::string&, | 123 const std::string&, |
122 const std::string&)); | 124 const std::string&)); |
123 MOCK_METHOD0(SignalCellularPlanPayment, void(void)); | 125 MOCK_METHOD0(SignalCellularPlanPayment, void(void)); |
124 MOCK_METHOD0(HasRecentCellularPlanPayment, bool(void)); | 126 MOCK_METHOD0(HasRecentCellularPlanPayment, bool(void)); |
125 | 127 |
126 MOCK_METHOD1(DisconnectFromNetwork, void(const Network*)); | 128 MOCK_METHOD1(DisconnectFromNetwork, void(const Network*)); |
127 MOCK_METHOD1(ForgetWifiNetwork, void(const std::string&)); | 129 MOCK_METHOD1(ForgetNetwork, void(const std::string&)); |
128 MOCK_METHOD2(SetNetworkProfile, void(const std::string&, | 130 MOCK_METHOD2(SetNetworkProfile, void(const std::string&, |
129 NetworkProfileType)); | 131 NetworkProfileType)); |
130 MOCK_CONST_METHOD0(GetCellularHomeCarrierId, std::string(void)); | 132 MOCK_CONST_METHOD0(GetCellularHomeCarrierId, std::string(void)); |
131 | 133 |
132 MOCK_CONST_METHOD0(ethernet_available, bool(void)); | 134 MOCK_CONST_METHOD0(ethernet_available, bool(void)); |
133 MOCK_CONST_METHOD0(wifi_available, bool(void)); | 135 MOCK_CONST_METHOD0(wifi_available, bool(void)); |
134 MOCK_CONST_METHOD0(cellular_available, bool(void)); | 136 MOCK_CONST_METHOD0(cellular_available, bool(void)); |
135 | 137 |
136 MOCK_CONST_METHOD0(ethernet_enabled, bool(void)); | 138 MOCK_CONST_METHOD0(ethernet_enabled, bool(void)); |
137 MOCK_CONST_METHOD0(wifi_enabled, bool(void)); | 139 MOCK_CONST_METHOD0(wifi_enabled, bool(void)); |
(...skipping 12 matching lines...) Expand all Loading... |
150 MOCK_METHOD1(EnableOfflineMode, void(bool)); | 152 MOCK_METHOD1(EnableOfflineMode, void(bool)); |
151 MOCK_METHOD3(GetIPConfigs, NetworkIPConfigVector(const std::string&, | 153 MOCK_METHOD3(GetIPConfigs, NetworkIPConfigVector(const std::string&, |
152 std::string*, | 154 std::string*, |
153 HardwareAddressFormat)); | 155 HardwareAddressFormat)); |
154 MOCK_METHOD1(SetIPConfig, void(const NetworkIPConfig&)); | 156 MOCK_METHOD1(SetIPConfig, void(const NetworkIPConfig&)); |
155 }; | 157 }; |
156 | 158 |
157 } // namespace chromeos | 159 } // namespace chromeos |
158 | 160 |
159 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ | 161 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ |
OLD | NEW |