Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(592)

Unified Diff: chromeos/dbus/shill_client_unittest_base.cc

Issue 2843813002: Remove SetWithoutPathExpansion (Closed)
Patch Set: Fix CrOS Error Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/gsm_sms_client_unittest.cc ('k') | chromeos/dbus/shill_device_client_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/shill_client_unittest_base.cc
diff --git a/chromeos/dbus/shill_client_unittest_base.cc b/chromeos/dbus/shill_client_unittest_base.cc
index c8120beaf5db81f33527772da04b2f0343f40646..308743ae4391a8e9bb0891c82c12329d1cc98836 100644
--- a/chromeos/dbus/shill_client_unittest_base.cc
+++ b/chromeos/dbus/shill_client_unittest_base.cc
@@ -42,7 +42,7 @@ base::DictionaryValue* PopStringToStringDictionary(
!entry_reader.PopString(&key) ||
!entry_reader.PopString(&value))
return NULL;
- result->SetWithoutPathExpansion(key, new base::Value(value));
+ result->SetStringWithoutPathExpansion(key, value);
}
return result.release();
}
@@ -314,16 +314,15 @@ void ShillClientUnittestBase::ExpectDictionaryValueArgument(
base::DictionaryValue*
ShillClientUnittestBase::CreateExampleServiceProperties() {
base::DictionaryValue* properties = new base::DictionaryValue;
- properties->SetWithoutPathExpansion(
- shill::kGuidProperty,
- new base::Value("00000000-0000-0000-0000-000000000000"));
- properties->SetWithoutPathExpansion(shill::kModeProperty,
- new base::Value(shill::kModeManaged));
- properties->SetWithoutPathExpansion(shill::kTypeProperty,
- new base::Value(shill::kTypeWifi));
+ properties->SetStringWithoutPathExpansion(
+ shill::kGuidProperty, "00000000-0000-0000-0000-000000000000");
+ properties->SetStringWithoutPathExpansion(shill::kModeProperty,
+ shill::kModeManaged);
+ properties->SetStringWithoutPathExpansion(shill::kTypeProperty,
+ shill::kTypeWifi);
shill_property_util::SetSSID("testssid", properties);
- properties->SetWithoutPathExpansion(shill::kSecurityClassProperty,
- new base::Value(shill::kSecurityPsk));
+ properties->SetStringWithoutPathExpansion(shill::kSecurityClassProperty,
+ shill::kSecurityPsk);
return properties;
}
« no previous file with comments | « chromeos/dbus/gsm_sms_client_unittest.cc ('k') | chromeos/dbus/shill_device_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698