Index: chromeos/dbus/shill_manager_client_unittest.cc |
diff --git a/chromeos/dbus/shill_manager_client_unittest.cc b/chromeos/dbus/shill_manager_client_unittest.cc |
index 67e2c7cc937e317c169a56bae8b1aaca396c121f..4051c36271b738c09962b87471f9ba2ba2c17a62 100644 |
--- a/chromeos/dbus/shill_manager_client_unittest.cc |
+++ b/chromeos/dbus/shill_manager_client_unittest.cc |
@@ -139,8 +139,7 @@ TEST_F(ShillManagerClientTest, GetProperties) { |
// Create the expected value. |
base::DictionaryValue value; |
- value.SetWithoutPathExpansion(shill::kOfflineModeProperty, |
- new base::Value(true)); |
+ value.SetBooleanWithoutPathExpansion(shill::kOfflineModeProperty, true); |
// Set expectations. |
PrepareForMethodCall(shill::kGetPropertiesFunction, |
base::Bind(&ExpectNoArgument), |
@@ -181,12 +180,12 @@ TEST_F(ShillManagerClientTest, GetNetworksForGeolocation) { |
// Create the expected value. |
base::DictionaryValue type_dict_value; |
- base::ListValue* type_entry_value = new base::ListValue; |
+ auto type_entry_value = base::MakeUnique<base::ListValue>(); |
auto property_dict_value = base::MakeUnique<base::DictionaryValue>(); |
- property_dict_value->SetWithoutPathExpansion( |
- shill::kGeoMacAddressProperty, new base::Value("01:23:45:67:89:AB")); |
+ property_dict_value->SetStringWithoutPathExpansion( |
+ shill::kGeoMacAddressProperty, "01:23:45:67:89:AB"); |
type_entry_value->Append(std::move(property_dict_value)); |
- type_dict_value.SetWithoutPathExpansion("wifi", type_entry_value); |
+ type_dict_value.SetWithoutPathExpansion("wifi", std::move(type_entry_value)); |
// Set expectations. |
PrepareForMethodCall(shill::kGetNetworksForGeolocation, |