OLD | NEW |
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 #include "chromeos/network/network_connection_handler.h" | 5 #include "chromeos/network/network_connection_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "chromeos/dbus/dbus_thread_manager.h" | 10 #include "chromeos/dbus/dbus_thread_manager.h" |
11 #include "chromeos/dbus/shill_manager_client.h" | 11 #include "chromeos/dbus/shill_manager_client.h" |
12 #include "chromeos/dbus/shill_service_client.h" | 12 #include "chromeos/dbus/shill_service_client.h" |
13 #include "chromeos/network/network_configuration_handler.h" | 13 #include "chromeos/network/network_configuration_handler.h" |
14 #include "chromeos/network/network_state_handler.h" | 14 #include "chromeos/network/network_state_handler.h" |
15 #include "chromeos/network/onc/onc_utils.h" | 15 #include "chromeos/network/onc/onc_utils.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "third_party/cros_system_api/dbus/service_constants.h" | 17 #include "third_party/cros_system_api/dbus/service_constants.h" |
18 | 18 |
19 namespace { | 19 namespace { |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 NetworkConnectionHandlerDisconnectFailure) { | 222 NetworkConnectionHandlerDisconnectFailure) { |
223 Connect("no-network"); | 223 Connect("no-network"); |
224 EXPECT_EQ(NetworkConnectionHandler::kErrorNotFound, GetResultAndReset()); | 224 EXPECT_EQ(NetworkConnectionHandler::kErrorNotFound, GetResultAndReset()); |
225 | 225 |
226 EXPECT_TRUE(Configure(kConfigConnectable)); | 226 EXPECT_TRUE(Configure(kConfigConnectable)); |
227 Disconnect("wifi0"); | 227 Disconnect("wifi0"); |
228 EXPECT_EQ(NetworkConnectionHandler::kErrorNotConnected, GetResultAndReset()); | 228 EXPECT_EQ(NetworkConnectionHandler::kErrorNotConnected, GetResultAndReset()); |
229 } | 229 } |
230 | 230 |
231 } // namespace chromeos | 231 } // namespace chromeos |
OLD | NEW |