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

Unified Diff: chrome/browser/chromeos/cros/cros_network_functions_unittest.cc

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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/cros/cros_network_functions_unittest.cc
diff --git a/chrome/browser/chromeos/cros/cros_network_functions_unittest.cc b/chrome/browser/chromeos/cros/cros_network_functions_unittest.cc
index 8ce527cc39f4a0b93c489e13d88ed37756382d2d..e919631debe94680aa612e42626217ccb3fb077c 100644
--- a/chrome/browser/chromeos/cros/cros_network_functions_unittest.cc
+++ b/chrome/browser/chromeos/cros/cros_network_functions_unittest.cc
@@ -901,7 +901,7 @@ TEST_F(CrosNetworkFunctionsTest, CrosSetOfflineMode) {
CrosSetOfflineMode(kOffline);
}
-TEST_F(CrosNetworkFunctionsTest, CrosListIPConfigs) {
+TEST_F(CrosNetworkFunctionsTest, CrosListIPConfigsAndBlock) {
const std::string device_path = "/device/path";
std::string ipconfig_path = "/ipconfig/path";
@@ -970,8 +970,10 @@ TEST_F(CrosNetworkFunctionsTest, CrosListIPConfigs) {
std::vector<std::string> result_ipconfig_paths;
std::string result_hardware_address;
EXPECT_TRUE(
- CrosListIPConfigs(device_path, &result_ipconfigs, &result_ipconfig_paths,
- &result_hardware_address));
+ CrosListIPConfigsAndBlock(device_path,
+ &result_ipconfigs,
+ &result_ipconfig_paths,
+ &result_hardware_address));
EXPECT_EQ(hardware_address, result_hardware_address);
ASSERT_EQ(1U, result_ipconfigs.size());
« no previous file with comments | « chrome/browser/chromeos/cros/cros_network_functions.cc ('k') | chrome/browser/chromeos/cros/mock_network_library.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698