summaryrefslogtreecommitdiffstats
path: root/dbus/property_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dbus/property_unittest.cc')
-rw-r--r--dbus/property_unittest.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/dbus/property_unittest.cc b/dbus/property_unittest.cc
index bd37a53..052d98b 100644
--- a/dbus/property_unittest.cc
+++ b/dbus/property_unittest.cc
@@ -76,9 +76,10 @@ class PropertyTest : public testing::Test {
ASSERT_TRUE(bus_->HasDBusThread());
// Create the properties structure
- properties_ = new Properties(object_proxy_,
- base::Bind(&PropertyTest::OnPropertyChanged,
- base::Unretained(this)));
+ properties_.reset(new Properties(
+ object_proxy_,
+ base::Bind(&PropertyTest::OnPropertyChanged,
+ base::Unretained(this))));
properties_->ConnectSignals();
properties_->GetAll();
}
@@ -141,7 +142,7 @@ class PropertyTest : public testing::Test {
scoped_ptr<base::Thread> dbus_thread_;
scoped_refptr<dbus::Bus> bus_;
dbus::ObjectProxy* object_proxy_;
- Properties* properties_;
+ scoped_ptr<Properties> properties_;
scoped_ptr<dbus::TestService> test_service_;
// Properties updated.
std::vector<std::string> updated_properties_;