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

Unified Diff: chromeos/dbus/fake_shill_manager_client.cc

Issue 539573002: Elim 'Translated' from Managed ONC dictionary (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 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
Index: chromeos/dbus/fake_shill_manager_client.cc
diff --git a/chromeos/dbus/fake_shill_manager_client.cc b/chromeos/dbus/fake_shill_manager_client.cc
index 7b4eb61f39c3f515d2c7cdb962a0c5ec2d86b00b..0da7c31e22e432486b765c31ebf702563c02679e 100644
--- a/chromeos/dbus/fake_shill_manager_client.cc
+++ b/chromeos/dbus/fake_shill_manager_client.cc
@@ -778,29 +778,36 @@ void FakeShillManagerClient::SetupDefaultEnvironment() {
// Shill, "Provider.Type", etc keys are used, but when reading the values
// "Provider" . "Type", etc keys are used. Here we are setting the values
// that will be read (by the UI, tests, etc).
- base::DictionaryValue provider_properties;
- provider_properties.SetString(shill::kTypeProperty,
- shill::kProviderOpenVpn);
- provider_properties.SetString(shill::kHostProperty, "vpn_host");
-
- services->AddService("/service/vpn1",
- "vpn1_guid",
- "vpn1" /* name */,
- shill::kTypeVPN,
- state,
- add_to_visible);
- services->SetServiceProperty(
- "/service/vpn1", shill::kProviderProperty, provider_properties);
- profiles->AddService(shared_profile, "/service/vpn1");
-
- services->AddService("/service/vpn2",
- "vpn2_guid",
- "vpn2" /* name */,
- shill::kTypeVPN,
- shill::kStateIdle,
- add_to_visible);
- services->SetServiceProperty(
- "/service/vpn2", shill::kProviderProperty, provider_properties);
+ {
+ base::DictionaryValue provider_properties;
+ provider_properties.SetString(shill::kTypeProperty,
+ shill::kProviderOpenVpn);
+ provider_properties.SetString(shill::kHostProperty, "vpn_host");
+
+ services->AddService("/service/vpn1",
+ "vpn1_guid",
+ "vpn1" /* name */,
+ shill::kTypeVPN,
+ state,
+ add_to_visible);
+ services->SetServiceProperty(
+ "/service/vpn1", shill::kProviderProperty, provider_properties);
+ profiles->AddService(shared_profile, "/service/vpn1");
+ }
+ {
+ base::DictionaryValue provider_properties2;
+ provider_properties2.SetString(shill::kTypeProperty,
+ shill::kProviderL2tpIpsec);
+ provider_properties2.SetString(shill::kHostProperty, "vpn_host2");
armansito 2014/09/03 21:42:02 nit: Add an empty line here for consistency with t
stevenjb 2014/09/04 15:34:11 Done.
+ services->AddService("/service/vpn2",
+ "vpn2_guid",
+ "vpn2" /* name */,
+ shill::kTypeVPN,
+ shill::kStateIdle,
+ add_to_visible);
+ services->SetServiceProperty(
+ "/service/vpn2", shill::kProviderProperty, provider_properties2);
+ }
armansito 2014/09/03 21:42:03 nit: You already declared |provider_properties| an
stevenjb 2014/09/04 15:34:11 It's far too easily to accidentally use 'provider_
}
// Additional device states

Powered by Google App Engine
This is Rietveld 408576698