Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(895)

Side by Side Diff: chrome/browser/chromeos/cros/mock_network_library.h

Issue 11367048: This is the first pass at making GetIPConfigs asynchronous. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/cros/network_library.h" 10 #include "chrome/browser/chromeos/cros/network_library.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 MOCK_CONST_METHOD0(connecting_network, const Network*(void)); 174 MOCK_CONST_METHOD0(connecting_network, const Network*(void));
175 175
176 MOCK_CONST_METHOD0(offline_mode, bool(void)); 176 MOCK_CONST_METHOD0(offline_mode, bool(void));
177 177
178 MOCK_METHOD1(EnableEthernetNetworkDevice, void(bool)); 178 MOCK_METHOD1(EnableEthernetNetworkDevice, void(bool));
179 MOCK_METHOD1(EnableWifiNetworkDevice, void(bool)); 179 MOCK_METHOD1(EnableWifiNetworkDevice, void(bool));
180 MOCK_METHOD1(EnableCellularNetworkDevice, void(bool)); 180 MOCK_METHOD1(EnableCellularNetworkDevice, void(bool));
181 MOCK_METHOD1(EnableWimaxNetworkDevice, void(bool)); 181 MOCK_METHOD1(EnableWimaxNetworkDevice, void(bool));
182 MOCK_METHOD1(EnableMobileNetworkDevice, void(bool)); 182 MOCK_METHOD1(EnableMobileNetworkDevice, void(bool));
183 MOCK_METHOD1(EnableOfflineMode, void(bool)); 183 MOCK_METHOD1(EnableOfflineMode, void(bool));
184 MOCK_METHOD3(GetIPConfigs, NetworkIPConfigVector(const std::string&, 184 MOCK_METHOD3(GetIPConfigs, void(const std::string&,
185 std::string*, 185 HardwareAddressFormat,
186 HardwareAddressFormat)); 186 const NetworkGetIPConfigsCallback&));
187 MOCK_METHOD3(GetIPConfigsAndBlock,
188 NetworkIPConfigVector(const std::string&,
189 std::string*,
190 HardwareAddressFormat));
187 MOCK_METHOD6(SetIPParameters, void(const std::string&, 191 MOCK_METHOD6(SetIPParameters, void(const std::string&,
188 const std::string&, 192 const std::string&,
189 const std::string&, 193 const std::string&,
190 const std::string&, 194 const std::string&,
191 const std::string&, 195 const std::string&,
192 int)); 196 int));
193 MOCK_METHOD0(SwitchToPreferredNetwork, void(void)); 197 MOCK_METHOD0(SwitchToPreferredNetwork, void(void));
194 MOCK_METHOD5(LoadOncNetworks, bool(const std::string&, 198 MOCK_METHOD5(LoadOncNetworks, bool(const std::string&,
195 const std::string&, 199 const std::string&,
196 NetworkUIData::ONCSource, 200 NetworkUIData::ONCSource,
197 bool, 201 bool,
198 std::string*)); 202 std::string*));
199 MOCK_METHOD2(SetActiveNetwork, bool(ConnectionType, const std::string&)); 203 MOCK_METHOD2(SetActiveNetwork, bool(ConnectionType, const std::string&));
200 }; 204 };
201 205
202 } // namespace chromeos 206 } // namespace chromeos
203 207
204 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_ 208 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_NETWORK_LIBRARY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/cros_network_functions_unittest.cc ('k') | chrome/browser/chromeos/cros/network_ip_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698