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

Unified Diff: chromeos/network/network_connection_handler_unittest.cc

Issue 22674011: Handle connecting to hidden networks correctly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ExtensionNetworkingPrivateApiTest expectations Created 7 years, 4 months 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
« no previous file with comments | « chromeos/network/network_connection_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/network_connection_handler_unittest.cc
diff --git a/chromeos/network/network_connection_handler_unittest.cc b/chromeos/network/network_connection_handler_unittest.cc
index a321fa4b6619c4f3585a6a6adc63c373b48abd52..68c3a9b7bc6de87b8d1e7ead10b5fa61e26e5aea 100644
--- a/chromeos/network/network_connection_handler_unittest.cc
+++ b/chromeos/network/network_connection_handler_unittest.cc
@@ -167,7 +167,8 @@ TEST_F(NetworkConnectionHandlerTest, NetworkConnectionHandlerConnectSuccess) {
// Handles basic failure cases.
TEST_F(NetworkConnectionHandlerTest, NetworkConnectionHandlerConnectFailure) {
Connect("no-network");
- EXPECT_EQ(NetworkConnectionHandler::kErrorNotFound, GetResultAndReset());
+ EXPECT_EQ(NetworkConnectionHandler::kErrorConfigureFailed,
+ GetResultAndReset());
EXPECT_TRUE(Configure(kConfigConnected));
Connect("wifi1");
@@ -221,7 +222,8 @@ TEST_F(NetworkConnectionHandlerTest,
TEST_F(NetworkConnectionHandlerTest,
NetworkConnectionHandlerDisconnectFailure) {
Connect("no-network");
- EXPECT_EQ(NetworkConnectionHandler::kErrorNotFound, GetResultAndReset());
+ EXPECT_EQ(NetworkConnectionHandler::kErrorConfigureFailed,
+ GetResultAndReset());
EXPECT_TRUE(Configure(kConfigConnectable));
Disconnect("wifi0");
« no previous file with comments | « chromeos/network/network_connection_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698