| 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_SERVICE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 // Interface for setting up services for testing. Accessed through | 43 // Interface for setting up services for testing. Accessed through |
| 44 // GetTestInterface(), only implemented in the stub implementation. | 44 // GetTestInterface(), only implemented in the stub implementation. |
| 45 class TestInterface { | 45 class TestInterface { |
| 46 public: | 46 public: |
| 47 virtual void AddService(const std::string& service_path, | 47 virtual void AddService(const std::string& service_path, |
| 48 const std::string& name, | 48 const std::string& name, |
| 49 const std::string& type, | 49 const std::string& type, |
| 50 const std::string& state, | 50 const std::string& state, |
| 51 bool add_to_watch_list) = 0; | 51 bool add_to_watch_list) = 0; |
| 52 virtual void AddServiceWithIPConfig(const std::string& service_path, |
| 53 const std::string& name, |
| 54 const std::string& type, |
| 55 const std::string& state, |
| 56 const std::string& ipconfig_path, |
| 57 bool add_to_watch_list) = 0; |
| 52 virtual void RemoveService(const std::string& service_path) = 0; | 58 virtual void RemoveService(const std::string& service_path) = 0; |
| 53 virtual void SetServiceProperty(const std::string& service_path, | 59 virtual void SetServiceProperty(const std::string& service_path, |
| 54 const std::string& property, | 60 const std::string& property, |
| 55 const base::Value& value) = 0; | 61 const base::Value& value) = 0; |
| 56 virtual const base::DictionaryValue* GetServiceProperties( | 62 virtual const base::DictionaryValue* GetServiceProperties( |
| 57 const std::string& service_path) const = 0; | 63 const std::string& service_path) const = 0; |
| 58 virtual void ClearServices() = 0; | 64 virtual void ClearServices() = 0; |
| 59 | 65 |
| 60 protected: | 66 protected: |
| 61 ~TestInterface() {} | 67 ~TestInterface() {} |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // Create() should be used instead. | 159 // Create() should be used instead. |
| 154 ShillServiceClient(); | 160 ShillServiceClient(); |
| 155 | 161 |
| 156 private: | 162 private: |
| 157 DISALLOW_COPY_AND_ASSIGN(ShillServiceClient); | 163 DISALLOW_COPY_AND_ASSIGN(ShillServiceClient); |
| 158 }; | 164 }; |
| 159 | 165 |
| 160 } // namespace chromeos | 166 } // namespace chromeos |
| 161 | 167 |
| 162 #endif // CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ | 168 #endif // CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ |
| OLD | NEW |