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/shill_property_handler.h" | 5 #include "chromeos/network/shill_property_handler.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 : manager_test_(NULL), | 170 : manager_test_(NULL), |
171 device_test_(NULL), | 171 device_test_(NULL), |
172 service_test_(NULL), | 172 service_test_(NULL), |
173 profile_test_(NULL) { | 173 profile_test_(NULL) { |
174 } | 174 } |
175 virtual ~ShillPropertyHandlerTest() { | 175 virtual ~ShillPropertyHandlerTest() { |
176 } | 176 } |
177 | 177 |
178 virtual void SetUp() OVERRIDE { | 178 virtual void SetUp() OVERRIDE { |
179 // Initialize DBusThreadManager with a stub implementation. | 179 // Initialize DBusThreadManager with a stub implementation. |
180 DBusThreadManager::InitializeWithStub(); | 180 DBusThreadManager::Initialize(); |
181 // Get the test interface for manager / device / service and clear the | 181 // Get the test interface for manager / device / service and clear the |
182 // default stub properties. | 182 // default stub properties. |
183 manager_test_ = | 183 manager_test_ = |
184 DBusThreadManager::Get()->GetShillManagerClient()->GetTestInterface(); | 184 DBusThreadManager::Get()->GetShillManagerClient()->GetTestInterface(); |
185 ASSERT_TRUE(manager_test_); | 185 ASSERT_TRUE(manager_test_); |
186 device_test_ = | 186 device_test_ = |
187 DBusThreadManager::Get()->GetShillDeviceClient()->GetTestInterface(); | 187 DBusThreadManager::Get()->GetShillDeviceClient()->GetTestInterface(); |
188 ASSERT_TRUE(device_test_); | 188 ASSERT_TRUE(device_test_); |
189 service_test_ = | 189 service_test_ = |
190 DBusThreadManager::Get()->GetShillServiceClient()->GetTestInterface(); | 190 DBusThreadManager::Get()->GetShillServiceClient()->GetTestInterface(); |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 shill_property_handler_->UpdateManagerProperties(); | 504 shill_property_handler_->UpdateManagerProperties(); |
505 message_loop_.RunUntilIdle(); | 505 message_loop_.RunUntilIdle(); |
506 EXPECT_EQ(1, listener_->list_updates(shill::kServiceCompleteListProperty)); | 506 EXPECT_EQ(1, listener_->list_updates(shill::kServiceCompleteListProperty)); |
507 EXPECT_EQ(1, listener_->initial_property_updates( | 507 EXPECT_EQ(1, listener_->initial_property_updates( |
508 shill::kServiceCompleteListProperty)[kTestServicePath2]); | 508 shill::kServiceCompleteListProperty)[kTestServicePath2]); |
509 EXPECT_EQ(1, listener_->property_updates( | 509 EXPECT_EQ(1, listener_->property_updates( |
510 shill::kServiceCompleteListProperty)[kTestServicePath2]); | 510 shill::kServiceCompleteListProperty)[kTestServicePath2]); |
511 } | 511 } |
512 | 512 |
513 } // namespace chromeos | 513 } // namespace chromeos |
OLD | NEW |