| 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;
|
|
|
|
|