| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FAKE_SHILL_SERVICE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_SHILL_SERVICE_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_SHILL_SERVICE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_SHILL_SERVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual void GetLoadableProfileEntries( | 73 virtual void GetLoadableProfileEntries( |
| 74 const dbus::ObjectPath& service_path, | 74 const dbus::ObjectPath& service_path, |
| 75 const DictionaryValueCallback& callback) OVERRIDE; | 75 const DictionaryValueCallback& callback) OVERRIDE; |
| 76 virtual ShillServiceClient::TestInterface* GetTestInterface() OVERRIDE; | 76 virtual ShillServiceClient::TestInterface* GetTestInterface() OVERRIDE; |
| 77 | 77 |
| 78 // ShillServiceClient::TestInterface overrides. | 78 // ShillServiceClient::TestInterface overrides. |
| 79 virtual void AddService(const std::string& service_path, | 79 virtual void AddService(const std::string& service_path, |
| 80 const std::string& name, | 80 const std::string& name, |
| 81 const std::string& type, | 81 const std::string& type, |
| 82 const std::string& state, | 82 const std::string& state, |
| 83 bool add_to_visible_list) OVERRIDE; | 83 bool visible) OVERRIDE; |
| 84 virtual void AddServiceWithIPConfig(const std::string& service_path, | 84 virtual void AddServiceWithIPConfig(const std::string& service_path, |
| 85 const std::string& guid, | 85 const std::string& guid, |
| 86 const std::string& name, | 86 const std::string& name, |
| 87 const std::string& type, | 87 const std::string& type, |
| 88 const std::string& state, | 88 const std::string& state, |
| 89 const std::string& ipconfig_path, | 89 const std::string& ipconfig_path, |
| 90 bool add_to_visible_list) OVERRIDE; | 90 bool visible) OVERRIDE; |
| 91 virtual base::DictionaryValue* SetServiceProperties( |
| 92 const std::string& service_path, |
| 93 const std::string& guid, |
| 94 const std::string& name, |
| 95 const std::string& type, |
| 96 const std::string& state, |
| 97 bool visible) OVERRIDE; |
| 91 virtual void RemoveService(const std::string& service_path) OVERRIDE; | 98 virtual void RemoveService(const std::string& service_path) OVERRIDE; |
| 92 virtual bool SetServiceProperty(const std::string& service_path, | 99 virtual bool SetServiceProperty(const std::string& service_path, |
| 93 const std::string& property, | 100 const std::string& property, |
| 94 const base::Value& value) OVERRIDE; | 101 const base::Value& value) OVERRIDE; |
| 95 virtual const base::DictionaryValue* GetServiceProperties( | 102 virtual const base::DictionaryValue* GetServiceProperties( |
| 96 const std::string& service_path) const OVERRIDE; | 103 const std::string& service_path) const OVERRIDE; |
| 97 virtual void ClearServices() OVERRIDE; | 104 virtual void ClearServices() OVERRIDE; |
| 98 virtual void SetConnectBehavior(const std::string& service_path, | 105 virtual void SetConnectBehavior(const std::string& service_path, |
| 99 const base::Closure& behavior) OVERRIDE; | 106 const base::Closure& behavior) OVERRIDE; |
| 100 | 107 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 125 // Note: This should remain the last member so it'll be destroyed and | 132 // Note: This should remain the last member so it'll be destroyed and |
| 126 // invalidate its weak pointers before any other members are destroyed. | 133 // invalidate its weak pointers before any other members are destroyed. |
| 127 base::WeakPtrFactory<FakeShillServiceClient> weak_ptr_factory_; | 134 base::WeakPtrFactory<FakeShillServiceClient> weak_ptr_factory_; |
| 128 | 135 |
| 129 DISALLOW_COPY_AND_ASSIGN(FakeShillServiceClient); | 136 DISALLOW_COPY_AND_ASSIGN(FakeShillServiceClient); |
| 130 }; | 137 }; |
| 131 | 138 |
| 132 } // namespace chromeos | 139 } // namespace chromeos |
| 133 | 140 |
| 134 #endif // CHROMEOS_DBUS_FAKE_SHILL_SERVICE_CLIENT_H_ | 141 #endif // CHROMEOS_DBUS_FAKE_SHILL_SERVICE_CLIENT_H_ |
| OLD | NEW |