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

Unified Diff: chromeos/network/shill_property_handler_unittest.cc

Issue 2392693002: Rewrite simple uses of base::ListValue::Append(base::Value*) on CrOS. (Closed)
Patch Set: MakeUnique Created 4 years, 2 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/network/onc/onc_translator_shill_to_onc.cc ('k') | components/user_manager/known_user.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/shill_property_handler_unittest.cc
diff --git a/chromeos/network/shill_property_handler_unittest.cc b/chromeos/network/shill_property_handler_unittest.cc
index 15434766b671ad9a72213ff2a17d13170fadc4f8..e5cc6ffdfe857827aff01d3e1137fe2b9aa44050 100644
--- a/chromeos/network/shill_property_handler_unittest.cc
+++ b/chromeos/network/shill_property_handler_unittest.cc
@@ -427,8 +427,8 @@ TEST_F(ShillPropertyHandlerTest, ShillPropertyHandlerIPConfigPropertyChanged) {
shill::kAddressProperty, ip_address,
base::Bind(&DoNothingWithCallStatus));
base::ListValue dns_servers;
- dns_servers.Append(new base::StringValue("192.168.1.100"));
- dns_servers.Append(new base::StringValue("192.168.1.101"));
+ dns_servers.AppendString("192.168.1.100");
+ dns_servers.AppendString("192.168.1.101");
DBusThreadManager::Get()->GetShillIPConfigClient()->SetProperty(
dbus::ObjectPath(kTestIPConfigPath),
shill::kNameServersProperty, dns_servers,
« no previous file with comments | « chromeos/network/onc/onc_translator_shill_to_onc.cc ('k') | components/user_manager/known_user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698