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 30 matching lines...) Expand all Loading... | |
41 typedef ShillClientHelper::ErrorCallback ErrorCallback; | 41 typedef ShillClientHelper::ErrorCallback ErrorCallback; |
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 const std::string& ipconfig_path, | |
stevenjb
2013/03/27 22:18:52
Do we really want to add this to AddService()? It
gauravsh
2013/03/27 23:16:04
This is needed because there are 2 distinct scenar
stevenjb
2013/03/27 23:55:10
Yeah, I'd prefer a separate AddServiceWithIpconfig
pneubeck (no reviews)
2013/03/28 10:37:54
If you want to have initial properties set, then w
| |
51 bool add_to_watch_list) = 0; | 52 bool add_to_watch_list) = 0; |
52 virtual void RemoveService(const std::string& service_path) = 0; | 53 virtual void RemoveService(const std::string& service_path) = 0; |
53 virtual void SetServiceProperty(const std::string& service_path, | 54 virtual void SetServiceProperty(const std::string& service_path, |
54 const std::string& property, | 55 const std::string& property, |
55 const base::Value& value) = 0; | 56 const base::Value& value) = 0; |
56 virtual const base::DictionaryValue* GetServiceProperties( | 57 virtual const base::DictionaryValue* GetServiceProperties( |
57 const std::string& service_path) const = 0; | 58 const std::string& service_path) const = 0; |
58 virtual void ClearServices() = 0; | 59 virtual void ClearServices() = 0; |
59 | 60 |
60 protected: | 61 protected: |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
153 // Create() should be used instead. | 154 // Create() should be used instead. |
154 ShillServiceClient(); | 155 ShillServiceClient(); |
155 | 156 |
156 private: | 157 private: |
157 DISALLOW_COPY_AND_ASSIGN(ShillServiceClient); | 158 DISALLOW_COPY_AND_ASSIGN(ShillServiceClient); |
158 }; | 159 }; |
159 | 160 |
160 } // namespace chromeos | 161 } // namespace chromeos |
161 | 162 |
162 #endif // CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ | 163 #endif // CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ |
OLD | NEW |