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

Unified Diff: chromeos/dbus/shill_ipconfig_client.h

Issue 267433005: Provide IPConfigs in networkingPrivate.GetProperties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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/fake_shill_service_client.cc ('k') | chromeos/dbus/shill_ipconfig_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/shill_ipconfig_client.h
diff --git a/chromeos/dbus/shill_ipconfig_client.h b/chromeos/dbus/shill_ipconfig_client.h
index ef144b293ed290a19b67b3b802af2460ab6749e6..379d8e99444a6a6ea33d49ad1a10bf45837dcec5 100644
--- a/chromeos/dbus/shill_ipconfig_client.h
+++ b/chromeos/dbus/shill_ipconfig_client.h
@@ -37,6 +37,17 @@ class CHROMEOS_EXPORT ShillIPConfigClient : public DBusClient {
public:
typedef ShillClientHelper::PropertyChangedHandler PropertyChangedHandler;
typedef ShillClientHelper::DictionaryValueCallback DictionaryValueCallback;
+
+ class TestInterface {
+ public:
+ // Adds an IPConfig entry.
+ virtual void AddIPConfig(const std::string& ip_config_path,
+ const base::DictionaryValue& properties) = 0;
+
+ protected:
+ virtual ~TestInterface() {}
+ };
+
virtual ~ShillIPConfigClient();
// Factory function, creates a new instance which is owned by the caller.
@@ -81,6 +92,9 @@ class CHROMEOS_EXPORT ShillIPConfigClient : public DBusClient {
virtual void Remove(const dbus::ObjectPath& ipconfig_path,
const VoidDBusMethodCallback& callback) = 0;
+ // Returns an interface for testing (stub only), or returns NULL.
+ virtual ShillIPConfigClient::TestInterface* GetTestInterface() = 0;
+
protected:
friend class ShillIPConfigClientTest;
« no previous file with comments | « chromeos/dbus/fake_shill_service_client.cc ('k') | chromeos/dbus/shill_ipconfig_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698