| 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 "chromeos/network/managed_network_configuration_handler.h" | 5 #include "chromeos/network/managed_network_configuration_handler.h" |
| 6 | 6 |
| 7 #include <iostream> | 7 #include <iostream> |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 252 |
| 253 protected: | 253 protected: |
| 254 StrictMock<MockShillManagerClient> mock_manager_client_; | 254 StrictMock<MockShillManagerClient> mock_manager_client_; |
| 255 StrictMock<MockShillServiceClient> mock_service_client_; | 255 StrictMock<MockShillServiceClient> mock_service_client_; |
| 256 StrictMock<MockShillProfileClient> mock_profile_client_; | 256 StrictMock<MockShillProfileClient> mock_profile_client_; |
| 257 ShillProfileTestClient profiles_stub_; | 257 ShillProfileTestClient profiles_stub_; |
| 258 scoped_ptr<TestNetworkProfileHandler> network_profile_handler_; | 258 scoped_ptr<TestNetworkProfileHandler> network_profile_handler_; |
| 259 scoped_ptr<NetworkConfigurationHandler> network_configuration_handler_; | 259 scoped_ptr<NetworkConfigurationHandler> network_configuration_handler_; |
| 260 scoped_ptr<ManagedNetworkConfigurationHandler> | 260 scoped_ptr<ManagedNetworkConfigurationHandler> |
| 261 managed_network_configuration_handler_; | 261 managed_network_configuration_handler_; |
| 262 MessageLoop message_loop_; | 262 base::MessageLoop message_loop_; |
| 263 | 263 |
| 264 private: | 264 private: |
| 265 DISALLOW_COPY_AND_ASSIGN(ManagedNetworkConfigurationHandlerTest); | 265 DISALLOW_COPY_AND_ASSIGN(ManagedNetworkConfigurationHandlerTest); |
| 266 }; | 266 }; |
| 267 | 267 |
| 268 TEST_F(ManagedNetworkConfigurationHandlerTest, ProfileInitialization) { | 268 TEST_F(ManagedNetworkConfigurationHandlerTest, ProfileInitialization) { |
| 269 InitializeStandardProfiles(); | 269 InitializeStandardProfiles(); |
| 270 message_loop_.RunUntilIdle(); | 270 message_loop_.RunUntilIdle(); |
| 271 } | 271 } |
| 272 | 272 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 ConfigureServiceForProfile( | 466 ConfigureServiceForProfile( |
| 467 dbus::ObjectPath(kUser1ProfilePath), | 467 dbus::ObjectPath(kUser1ProfilePath), |
| 468 IsEqualTo(expected_shill_properties.get()), | 468 IsEqualTo(expected_shill_properties.get()), |
| 469 _, _)); | 469 _, _)); |
| 470 | 470 |
| 471 InitializeStandardProfiles(); | 471 InitializeStandardProfiles(); |
| 472 message_loop_.RunUntilIdle(); | 472 message_loop_.RunUntilIdle(); |
| 473 } | 473 } |
| 474 | 474 |
| 475 } // namespace chromeos | 475 } // namespace chromeos |
| OLD | NEW |