| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 MOCK_CONST_METHOD0(IPAddress, const std::string&(void)); | 58 MOCK_CONST_METHOD0(IPAddress, const std::string&(void)); |
| 59 MOCK_CONST_METHOD0(wifi_networks, const WifiNetworkVector&(void)); | 59 MOCK_CONST_METHOD0(wifi_networks, const WifiNetworkVector&(void)); |
| 60 MOCK_CONST_METHOD0(remembered_wifi_networks, const WifiNetworkVector&(void)); | 60 MOCK_CONST_METHOD0(remembered_wifi_networks, const WifiNetworkVector&(void)); |
| 61 MOCK_CONST_METHOD0(cellular_networks, const CellularNetworkVector&(void)); | 61 MOCK_CONST_METHOD0(cellular_networks, const CellularNetworkVector&(void)); |
| 62 MOCK_CONST_METHOD0(virtual_networks, const VirtualNetworkVector&(void)); | 62 MOCK_CONST_METHOD0(virtual_networks, const VirtualNetworkVector&(void)); |
| 63 | 63 |
| 64 MOCK_CONST_METHOD1(FindNetworkDeviceByPath, | 64 MOCK_CONST_METHOD1(FindNetworkDeviceByPath, |
| 65 NetworkDevice*(const std::string&)); | 65 NetworkDevice*(const std::string&)); |
| 66 MOCK_CONST_METHOD0(FindCellularDevice, const NetworkDevice*(void)); | 66 MOCK_CONST_METHOD0(FindCellularDevice, const NetworkDevice*(void)); |
| 67 MOCK_CONST_METHOD0(FindWifiDevices, NetworkDeviceVector(void)); |
| 68 MOCK_CONST_METHOD0(FindEthernetDevices, NetworkDeviceVector(void)); |
| 67 MOCK_CONST_METHOD1(FindNetworkByPath, | 69 MOCK_CONST_METHOD1(FindNetworkByPath, |
| 68 Network*(const std::string&)); | 70 Network*(const std::string&)); |
| 69 MOCK_CONST_METHOD1(FindWifiNetworkByPath, | 71 MOCK_CONST_METHOD1(FindWifiNetworkByPath, |
| 70 WifiNetwork*(const std::string&)); | 72 WifiNetwork*(const std::string&)); |
| 71 MOCK_CONST_METHOD1(FindCellularNetworkByPath, | 73 MOCK_CONST_METHOD1(FindCellularNetworkByPath, |
| 72 CellularNetwork*(const std::string&)); | 74 CellularNetwork*(const std::string&)); |
| 73 MOCK_CONST_METHOD1(FindVirtualNetworkByPath, | 75 MOCK_CONST_METHOD1(FindVirtualNetworkByPath, |
| 74 VirtualNetwork*(const std::string&)); | 76 VirtualNetwork*(const std::string&)); |
| 75 MOCK_CONST_METHOD1(FindNetworkFromRemembered,Network*(const Network*)); | 77 MOCK_CONST_METHOD1(FindNetworkFromRemembered,Network*(const Network*)); |
| 76 MOCK_CONST_METHOD1(GetDataPlans, | 78 MOCK_CONST_METHOD1(GetDataPlans, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 130 |
| 129 MOCK_CONST_METHOD0(active_network, const Network*(void)); | 131 MOCK_CONST_METHOD0(active_network, const Network*(void)); |
| 130 MOCK_CONST_METHOD0(connected_network, const Network*(void)); | 132 MOCK_CONST_METHOD0(connected_network, const Network*(void)); |
| 131 | 133 |
| 132 MOCK_CONST_METHOD0(offline_mode, bool(void)); | 134 MOCK_CONST_METHOD0(offline_mode, bool(void)); |
| 133 | 135 |
| 134 MOCK_METHOD1(EnableEthernetNetworkDevice, void(bool)); | 136 MOCK_METHOD1(EnableEthernetNetworkDevice, void(bool)); |
| 135 MOCK_METHOD1(EnableWifiNetworkDevice, void(bool)); | 137 MOCK_METHOD1(EnableWifiNetworkDevice, void(bool)); |
| 136 MOCK_METHOD1(EnableCellularNetworkDevice, void(bool)); | 138 MOCK_METHOD1(EnableCellularNetworkDevice, void(bool)); |
| 137 MOCK_METHOD1(EnableOfflineMode, void(bool)); | 139 MOCK_METHOD1(EnableOfflineMode, void(bool)); |
| 138 MOCK_METHOD2(GetIPConfigs, NetworkIPConfigVector(const std::string&, | 140 MOCK_METHOD3(GetIPConfigs, NetworkIPConfigVector(const std::string&, |
| 139 std::string*)); | 141 std::string*, |
| 142 HardwareAddressFormat)); |
| 140 MOCK_METHOD1(GetHtmlInfo, std::string(int)); | 143 MOCK_METHOD1(GetHtmlInfo, std::string(int)); |
| 141 }; | 144 }; |
| 142 | 145 |
| 143 } // namespace chromeos | 146 } // namespace chromeos |
| 144 | 147 |
| 145 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ | 148 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ |
| OLD | NEW |