| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/values.h" | 6 #include "base/values.h" |
| 7 #include "chromeos/dbus/shill_client_unittest_base.h" | 7 #include "chromeos/dbus/shill_client_unittest_base.h" |
| 8 #include "chromeos/dbus/shill_ipconfig_client.h" | 8 #include "chromeos/dbus/shill_ipconfig_client.h" |
| 9 #include "dbus/message.h" | 9 #include "dbus/message.h" |
| 10 #include "dbus/values_util.h" | 10 #include "dbus/values_util.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 public: | 26 public: |
| 27 ShillIPConfigClientTest() | 27 ShillIPConfigClientTest() |
| 28 : ShillClientUnittestBase( | 28 : ShillClientUnittestBase( |
| 29 flimflam::kFlimflamIPConfigInterface, | 29 flimflam::kFlimflamIPConfigInterface, |
| 30 dbus::ObjectPath(kExampleIPConfigPath)) { | 30 dbus::ObjectPath(kExampleIPConfigPath)) { |
| 31 } | 31 } |
| 32 | 32 |
| 33 virtual void SetUp() { | 33 virtual void SetUp() { |
| 34 ShillClientUnittestBase::SetUp(); | 34 ShillClientUnittestBase::SetUp(); |
| 35 // Create a client with the mock bus. | 35 // Create a client with the mock bus. |
| 36 client_.reset(ShillIPConfigClient::Create( | 36 client_.reset(ShillIPConfigClient::Create(REAL_DBUS_CLIENT_IMPLEMENTATION, |
| 37 REAL_DBUS_CLIENT_IMPLEMENTATION, mock_bus_)); | 37 mock_bus_.get())); |
| 38 // Run the message loop to run the signal connection result callback. | 38 // Run the message loop to run the signal connection result callback. |
| 39 message_loop_.RunUntilIdle(); | 39 message_loop_.RunUntilIdle(); |
| 40 } | 40 } |
| 41 | 41 |
| 42 virtual void TearDown() { | 42 virtual void TearDown() { |
| 43 ShillClientUnittestBase::TearDown(); | 43 ShillClientUnittestBase::TearDown(); |
| 44 } | 44 } |
| 45 | 45 |
| 46 protected: | 46 protected: |
| 47 scoped_ptr<ShillIPConfigClient> client_; | 47 scoped_ptr<ShillIPConfigClient> client_; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 response.get()); | 210 response.get()); |
| 211 // Call method. | 211 // Call method. |
| 212 client_->Remove(dbus::ObjectPath(kExampleIPConfigPath), | 212 client_->Remove(dbus::ObjectPath(kExampleIPConfigPath), |
| 213 base::Bind(&ExpectNoResultValue)); | 213 base::Bind(&ExpectNoResultValue)); |
| 214 | 214 |
| 215 // Run the message loop. | 215 // Run the message loop. |
| 216 message_loop_.RunUntilIdle(); | 216 message_loop_.RunUntilIdle(); |
| 217 } | 217 } |
| 218 | 218 |
| 219 } // namespace chromeos | 219 } // namespace chromeos |
| OLD | NEW |