diff options
author | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-06 23:54:38 +0000 |
---|---|---|
committer | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-06 23:54:38 +0000 |
commit | 783aa24d3cb99443f9ecbad61272c5ad23af7b56 (patch) | |
tree | 38d51af1f3a276ad65863be678e0f6408eccbb8c /chromeos/dbus/shill_service_client.h | |
parent | aac4f920f0972de986836e60062c56281447d8b8 (diff) | |
download | chromium_src-783aa24d3cb99443f9ecbad61272c5ad23af7b56.zip chromium_src-783aa24d3cb99443f9ecbad61272c5ad23af7b56.tar.gz chromium_src-783aa24d3cb99443f9ecbad61272c5ad23af7b56.tar.bz2 |
Sort stub network services correctly
Currently connected networks are moved to the top of the list, but no other sorting is performed. We should do a similar sort to Shill when a Service's State changes:
* Active (connected, connecting, etc) networks followed by Inactive networks
* Sorted by type: Ethernet, Wifi, Cellular, Wimax, VPN
This should make the stub based networking tests less fragile
BUG=256810
TBR=gauravsh@chromium.org, gspencer@chromium.org
Review URL: https://codereview.chromium.org/22315002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216035 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/shill_service_client.h')
-rw-r--r-- | chromeos/dbus/shill_service_client.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chromeos/dbus/shill_service_client.h b/chromeos/dbus/shill_service_client.h index 0579521..0ee87a0 100644 --- a/chromeos/dbus/shill_service_client.h +++ b/chromeos/dbus/shill_service_client.h @@ -44,6 +44,10 @@ class CHROMEOS_EXPORT ShillServiceClient { // GetTestInterface(), only implemented in the stub implementation. class TestInterface { public: + // Adds a set of default services. Must be called after all Shill + // clients have been created. + virtual void AddDefaultServices() = 0; + // Adds a Service to the Manager and Service stubs. virtual void AddService(const std::string& service_path, const std::string& name, |