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

Unified Diff: chromeos/dbus/shill_service_client_stub.cc

Issue 12387065: Convert TrayVPN to use new NetworkState code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browser_tests Created 7 years, 10 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/shill_manager_client_stub.cc ('k') | chromeos/network/network_state_handler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/shill_service_client_stub.cc
diff --git a/chromeos/dbus/shill_service_client_stub.cc b/chromeos/dbus/shill_service_client_stub.cc
index 86e637b196e44496dbc0f9b1339b4f7b027afd81..82686195d711af95d7524916053a79ec76c7f11b 100644
--- a/chromeos/dbus/shill_service_client_stub.cc
+++ b/chromeos/dbus/shill_service_client_stub.cc
@@ -291,6 +291,9 @@ const base::DictionaryValue* ShillServiceClientStub::GetServiceProperties(
}
void ShillServiceClientStub::ClearServices() {
+ DBusThreadManager::Get()->GetShillManagerClient()->GetTestInterface()->
+ ClearServices();
+
stub_services_.Clear();
}
@@ -335,6 +338,16 @@ void ShillServiceClientStub::SetDefaultProperties() {
SetServiceProperty("stub_cellular1",
flimflam::kActivationStateProperty,
activation_value);
+
+ AddService("stub_vpn1", "vpn1",
+ flimflam::kTypeVPN,
+ flimflam::kStateOnline,
+ add_to_watchlist);
+
+ AddService("stub_vpn2", "vpn2",
+ flimflam::kTypeVPN,
+ flimflam::kStateOffline,
+ add_to_watchlist);
}
void ShillServiceClientStub::PassStubServiceProperties(
« no previous file with comments | « chromeos/dbus/shill_manager_client_stub.cc ('k') | chromeos/network/network_state_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698