[shill] Start replacing bare pointers with scoped_refptrs where appropriate

BUG=chromium-os:16259
TEST=unit tests

Change-Id: I5e1531b726bbb40917d25dc3ae44da9a6a420e00
Reviewed-on: http://gerrit.chromium.org/gerrit/2236
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Darin Petkov <petkov@chromium.org>
diff --git a/dhcp_config_unittest.cc b/dhcp_config_unittest.cc
index aa043e5..117f23c 100644
--- a/dhcp_config_unittest.cc
+++ b/dhcp_config_unittest.cc
@@ -23,7 +23,7 @@
 };
 
 TEST_F(DHCPConfigTest, GetIPv4AddressString) {
-  DHCPConfigRefPtr config(new DHCPConfig(NULL, *device_));
+  DHCPConfigRefPtr config(new DHCPConfig(NULL, device_));
   EXPECT_EQ("255.255.255.255", config->GetIPv4AddressString(0xffffffff));
   EXPECT_EQ("0.0.0.0", config->GetIPv4AddressString(0));
   EXPECT_EQ("1.2.3.4", config->GetIPv4AddressString(0x04030201));
@@ -69,7 +69,7 @@
   conf[DHCPConfig::kConfigurationKeyMTU].writer().append_uint16(600);
   conf["UnknownKey"] = DBus::Variant();
 
-  DHCPConfigRefPtr config(new DHCPConfig(NULL, *device_));
+  DHCPConfigRefPtr config(new DHCPConfig(NULL, device_));
   IPConfig::Properties properties;
   ASSERT_TRUE(config->ParseConfiguration(conf, &properties));
   EXPECT_EQ("4.3.2.1", properties.address);