| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 <iostream> | 5 #include <iostream> |
| 6 #include <memory> | 6 #include <memory> |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
| 16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "chromeos/dbus/dbus_thread_manager.h" | 18 #include "chromeos/dbus/dbus_thread_manager.h" |
| 19 #include "chromeos/dbus/mock_shill_manager_client.h" | 19 #include "chromeos/dbus/mock_shill_manager_client.h" |
| 20 #include "chromeos/dbus/mock_shill_profile_client.h" | 20 #include "chromeos/dbus/mock_shill_profile_client.h" |
| 21 #include "chromeos/dbus/mock_shill_service_client.h" | 21 #include "chromeos/dbus/mock_shill_service_client.h" |
| 22 #include "chromeos/dbus/shill_client_helper.h" | 22 #include "chromeos/dbus/shill_client_helper.h" |
| 23 #include "chromeos/network/managed_network_configuration_handler_impl.h" | 23 #include "chromeos/network/managed_network_configuration_handler_impl.h" |
| 24 #include "chromeos/network/network_configuration_handler.h" | 24 #include "chromeos/network/network_configuration_handler.h" |
| 25 #include "chromeos/network/network_policy_observer.h" | 25 #include "chromeos/network/network_policy_observer.h" |
| 26 #include "chromeos/network/network_profile_handler.h" | 26 #include "chromeos/network/network_profile_handler.h" |
| (...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 EXPECT_CALL(*mock_profile_client_, | 977 EXPECT_CALL(*mock_profile_client_, |
| 978 GetProperties(dbus::ObjectPath(kUser1ProfilePath), _, _)); | 978 GetProperties(dbus::ObjectPath(kUser1ProfilePath), _, _)); |
| 979 | 979 |
| 980 SetPolicy(::onc::ONC_SOURCE_USER_POLICY, kUser1, "policy/policy_wifi1.onc"); | 980 SetPolicy(::onc::ONC_SOURCE_USER_POLICY, kUser1, "policy/policy_wifi1.onc"); |
| 981 managed_network_configuration_handler_->RemoveObserver(&policy_observer_); | 981 managed_network_configuration_handler_->RemoveObserver(&policy_observer_); |
| 982 managed_network_configuration_handler_.reset(); | 982 managed_network_configuration_handler_.reset(); |
| 983 message_loop_.RunUntilIdle(); | 983 message_loop_.RunUntilIdle(); |
| 984 } | 984 } |
| 985 | 985 |
| 986 } // namespace chromeos | 986 } // namespace chromeos |
| OLD | NEW |