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 28 matching lines...) Expand all Loading... |
39 typedef ShillClientHelper::DictionaryValueCallback DictionaryValueCallback; | 39 typedef ShillClientHelper::DictionaryValueCallback DictionaryValueCallback; |
40 typedef ShillClientHelper::ErrorCallback ErrorCallback; | 40 typedef ShillClientHelper::ErrorCallback ErrorCallback; |
41 | 41 |
42 // Interface for setting up services for testing. | 42 // Interface for setting up services for testing. |
43 // Accessed through GetTestInterface(), only implemented in the Stub Impl. | 43 // Accessed through GetTestInterface(), only implemented in the Stub Impl. |
44 class TestInterface { | 44 class TestInterface { |
45 public: | 45 public: |
46 virtual void AddService(const std::string& service_path, | 46 virtual void AddService(const std::string& service_path, |
47 const std::string& name, | 47 const std::string& name, |
48 const std::string& type, | 48 const std::string& type, |
49 const std::string& state, | 49 const std::string& state) = 0; |
50 const std::string& security) = 0; | |
51 virtual void RemoveService(const std::string& service_path) = 0; | 50 virtual void RemoveService(const std::string& service_path) = 0; |
52 virtual void SetServiceProperty(const std::string& service_path, | 51 virtual void SetServiceProperty(const std::string& service_path, |
53 const std::string& property, | 52 const std::string& property, |
54 const base::Value& value) = 0; | 53 const base::Value& value) = 0; |
55 virtual void ClearServices() = 0; | 54 virtual void ClearServices() = 0; |
56 | 55 |
57 protected: | 56 protected: |
58 ~TestInterface() {} | 57 ~TestInterface() {} |
59 }; | 58 }; |
60 virtual ~ShillServiceClient(); | 59 virtual ~ShillServiceClient(); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 // Create() should be used instead. | 135 // Create() should be used instead. |
137 ShillServiceClient(); | 136 ShillServiceClient(); |
138 | 137 |
139 private: | 138 private: |
140 DISALLOW_COPY_AND_ASSIGN(ShillServiceClient); | 139 DISALLOW_COPY_AND_ASSIGN(ShillServiceClient); |
141 }; | 140 }; |
142 | 141 |
143 } // namespace chromeos | 142 } // namespace chromeos |
144 | 143 |
145 #endif // CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ | 144 #endif // CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ |
OLD | NEW |