OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/prohibited_technologies_handler.h" | 5 #include "chromeos/network/prohibited_technologies_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
| 12 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
14 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
15 #include "chromeos/dbus/dbus_thread_manager.h" | 16 #include "chromeos/dbus/dbus_thread_manager.h" |
16 #include "chromeos/dbus/shill_manager_client.h" | 17 #include "chromeos/dbus/shill_manager_client.h" |
17 #include "chromeos/dbus/shill_profile_client.h" | 18 #include "chromeos/dbus/shill_profile_client.h" |
18 #include "chromeos/network/managed_network_configuration_handler_impl.h" | 19 #include "chromeos/network/managed_network_configuration_handler_impl.h" |
19 #include "chromeos/network/network_configuration_handler.h" | 20 #include "chromeos/network/network_configuration_handler.h" |
20 #include "chromeos/network/network_profile_handler.h" | 21 #include "chromeos/network/network_profile_handler.h" |
21 #include "chromeos/network/network_state_handler.h" | 22 #include "chromeos/network/network_state_handler.h" |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 network_state_handler_->SetTechnologyEnabled( | 182 network_state_handler_->SetTechnologyEnabled( |
182 NetworkTypePattern::Cellular(), true, network_handler::ErrorCallback()); | 183 NetworkTypePattern::Cellular(), true, network_handler::ErrorCallback()); |
183 message_loop_.RunUntilIdle(); | 184 message_loop_.RunUntilIdle(); |
184 EXPECT_FALSE( | 185 EXPECT_FALSE( |
185 network_state_handler_->IsTechnologyEnabled(NetworkTypePattern::WiFi())); | 186 network_state_handler_->IsTechnologyEnabled(NetworkTypePattern::WiFi())); |
186 EXPECT_TRUE(network_state_handler_->IsTechnologyEnabled( | 187 EXPECT_TRUE(network_state_handler_->IsTechnologyEnabled( |
187 NetworkTypePattern::Cellular())); | 188 NetworkTypePattern::Cellular())); |
188 }; | 189 }; |
189 | 190 |
190 } // namespace chromeos | 191 } // namespace chromeos |
OLD | NEW |