| Index: chromeos/dbus/shill_profile_client.h
|
| diff --git a/chromeos/dbus/shill_profile_client.h b/chromeos/dbus/shill_profile_client.h
|
| index 2c45ac72c3dca619a99063b3fe5e374a67919fc8..4d653ffe49b6e8d266ad340e2338f0fdc8220d97 100644
|
| --- a/chromeos/dbus/shill_profile_client.h
|
| +++ b/chromeos/dbus/shill_profile_client.h
|
| @@ -41,6 +41,20 @@ class CHROMEOS_EXPORT ShillProfileClient {
|
| DictionaryValueCallbackWithoutStatus;
|
| typedef ShillClientHelper::ErrorCallback ErrorCallback;
|
|
|
| + // Interface for setting up services for testing. Accessed through
|
| + // GetTestInterface(), only implemented in the stub implementation.
|
| + class TestInterface {
|
| + public:
|
| + virtual void AddProfile(const std::string& profile_path) = 0;
|
| + virtual void AddEntry(const std::string& profile_path,
|
| + const std::string& entry_path,
|
| + const base::DictionaryValue& properties) = 0;
|
| + virtual bool AddService(const std::string& service_path) = 0;
|
| +
|
| + protected:
|
| + virtual ~TestInterface() {}
|
| + };
|
| +
|
| virtual ~ShillProfileClient();
|
|
|
| // Factory function, creates a new instance which is owned by the caller.
|
| @@ -79,6 +93,9 @@ class CHROMEOS_EXPORT ShillProfileClient {
|
| const base::Closure& callback,
|
| const ErrorCallback& error_callback) = 0;
|
|
|
| + // Returns an interface for testing (stub only), or returns NULL.
|
| + virtual TestInterface* GetTestInterface() = 0;
|
| +
|
| protected:
|
| // Create() should be used instead.
|
| ShillProfileClient();
|
|
|