| Index: chromeos/network/network_configuration_handler_unittest.cc
|
| diff --git a/chromeos/network/network_configuration_handler_unittest.cc b/chromeos/network/network_configuration_handler_unittest.cc
|
| index bfe347164d14e78b9bed054b587d21c9dc109b68..190c02aef33d25e6f99a595d25e6b967f5c741f0 100644
|
| --- a/chromeos/network/network_configuration_handler_unittest.cc
|
| +++ b/chromeos/network/network_configuration_handler_unittest.cc
|
| @@ -479,9 +479,8 @@ TEST_F(NetworkConfigurationHandlerTest, CreateConfiguration) {
|
| std::string profile = "profile path";
|
| base::DictionaryValue value;
|
| shill_property_util::SetSSID(networkName, &value);
|
| - value.SetWithoutPathExpansion(shill::kTypeProperty, new base::Value(type));
|
| - value.SetWithoutPathExpansion(shill::kProfileProperty,
|
| - new base::Value(profile));
|
| + value.SetStringWithoutPathExpansion(shill::kTypeProperty, type);
|
| + value.SetStringWithoutPathExpansion(shill::kProfileProperty, profile);
|
|
|
| EXPECT_CALL(*mock_manager_client_,
|
| ConfigureServiceForProfile(dbus::ObjectPath(profile), _, _, _))
|
| @@ -500,9 +499,8 @@ TEST_F(NetworkConfigurationHandlerTest, RemoveConfiguration) {
|
| std::string type = "wifi";
|
| base::DictionaryValue value;
|
| shill_property_util::SetSSID("Service", &value);
|
| - value.SetWithoutPathExpansion(shill::kTypeProperty, new base::Value(type));
|
| - value.SetWithoutPathExpansion(shill::kProfileProperty,
|
| - new base::Value("profile2"));
|
| + value.SetStringWithoutPathExpansion(shill::kTypeProperty, type);
|
| + value.SetStringWithoutPathExpansion(shill::kProfileProperty, "profile2");
|
| EXPECT_CALL(*mock_manager_client_,
|
| ConfigureServiceForProfile(dbus::ObjectPath("profile2"), _, _, _))
|
| .WillOnce(
|
| @@ -551,9 +549,8 @@ TEST_F(NetworkConfigurationHandlerTest, RemoveConfigurationFromCurrentProfile) {
|
| std::string type = "wifi";
|
| base::DictionaryValue value;
|
| shill_property_util::SetSSID("Service", &value);
|
| - value.SetWithoutPathExpansion(shill::kTypeProperty, new base::Value(type));
|
| - value.SetWithoutPathExpansion(shill::kProfileProperty,
|
| - new base::Value("profile2"));
|
| + value.SetStringWithoutPathExpansion(shill::kTypeProperty, type);
|
| + value.SetStringWithoutPathExpansion(shill::kProfileProperty, "profile2");
|
| EXPECT_CALL(*mock_manager_client_,
|
| ConfigureServiceForProfile(dbus::ObjectPath("profile2"), _, _, _))
|
| .WillOnce(
|
|
|