Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 33 typedef ShillClientHelper::ErrorCallback ErrorCallback; | 33 typedef ShillClientHelper::ErrorCallback ErrorCallback; |
| 34 | 34 |
| 35 // Interface for setting up devices, services, and technologies for testing. | 35 // Interface for setting up devices, services, and technologies for testing. |
| 36 // Accessed through GetTestInterface(), only implemented in the Stub Impl. | 36 // Accessed through GetTestInterface(), only implemented in the Stub Impl. |
| 37 class TestInterface { | 37 class TestInterface { |
| 38 public: | 38 public: |
| 39 virtual void AddDevice(const std::string& device_path) = 0; | 39 virtual void AddDevice(const std::string& device_path) = 0; |
| 40 virtual void RemoveDevice(const std::string& device_path) = 0; | 40 virtual void RemoveDevice(const std::string& device_path) = 0; |
| 41 virtual void AddService(const std::string& service_path, | 41 virtual void AddService(const std::string& service_path, |
| 42 bool add_to_watch_list) = 0; | 42 bool add_to_watch_list) = 0; |
| 43 virtual void InsertService(const std::string& service_path, | |
|
hashimoto
2012/11/05 04:03:03
Please describe the difference between AddService
stevenjb
2012/11/05 22:42:35
Renamed AddServiceAtIndex.
| |
| 44 size_t index) = 0; | |
|
hashimoto
2012/11/05 04:03:03
We might need to have add_to_watch_list here too?
stevenjb
2012/11/05 22:42:35
Done.
| |
| 43 virtual void RemoveService(const std::string& service_path) = 0; | 45 virtual void RemoveService(const std::string& service_path) = 0; |
| 44 virtual void AddTechnology(const std::string& type, bool enabled) = 0; | 46 virtual void AddTechnology(const std::string& type, bool enabled) = 0; |
| 45 virtual void RemoveTechnology(const std::string& type) = 0; | 47 virtual void RemoveTechnology(const std::string& type) = 0; |
| 46 virtual void ClearProperties() = 0; | 48 virtual void ClearProperties() = 0; |
| 47 | 49 |
| 48 protected: | 50 protected: |
| 49 ~TestInterface() {} | 51 ~TestInterface() {} |
| 50 }; | 52 }; |
| 51 | 53 |
| 52 virtual ~ShillManagerClient(); | 54 virtual ~ShillManagerClient(); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 120 // Create() should be used instead. | 122 // Create() should be used instead. |
| 121 ShillManagerClient(); | 123 ShillManagerClient(); |
| 122 | 124 |
| 123 private: | 125 private: |
| 124 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); | 126 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); |
| 125 }; | 127 }; |
| 126 | 128 |
| 127 } // namespace chromeos | 129 } // namespace chromeos |
| 128 | 130 |
| 129 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ | 131 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ |
| OLD | NEW |