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_DEVICE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 const std::string& operation, | 81 const std::string& operation, |
82 const std::string& peer, | 82 const std::string& peer, |
83 const StringCallback& callback, | 83 const StringCallback& callback, |
84 const ErrorCallback& error_callback) OVERRIDE; | 84 const ErrorCallback& error_callback) OVERRIDE; |
85 | 85 |
86 virtual ShillDeviceClient::TestInterface* GetTestInterface() OVERRIDE; | 86 virtual ShillDeviceClient::TestInterface* GetTestInterface() OVERRIDE; |
87 | 87 |
88 // ShillDeviceClient::TestInterface overrides. | 88 // ShillDeviceClient::TestInterface overrides. |
89 virtual void AddDevice(const std::string& device_path, | 89 virtual void AddDevice(const std::string& device_path, |
90 const std::string& type, | 90 const std::string& type, |
91 const std::string& object_path) OVERRIDE; | 91 const std::string& name) OVERRIDE; |
92 virtual void RemoveDevice(const std::string& device_path) OVERRIDE; | 92 virtual void RemoveDevice(const std::string& device_path) OVERRIDE; |
93 virtual void ClearDevices() OVERRIDE; | 93 virtual void ClearDevices() OVERRIDE; |
94 virtual void SetDeviceProperty(const std::string& device_path, | 94 virtual void SetDeviceProperty(const std::string& device_path, |
95 const std::string& name, | 95 const std::string& name, |
96 const base::Value& value) OVERRIDE; | 96 const base::Value& value) OVERRIDE; |
97 virtual std::string GetDevicePathForType(const std::string& type) OVERRIDE; | 97 virtual std::string GetDevicePathForType(const std::string& type) OVERRIDE; |
98 | 98 |
99 void set_tdls_busy_count(int count) { tdls_busy_count_ = count; } | 99 void set_tdls_busy_count(int count) { tdls_busy_count_ = count; } |
100 | 100 |
101 private: | 101 private: |
(...skipping 22 matching lines...) Expand all Loading... |
124 // Note: This should remain the last member so it'll be destroyed and | 124 // Note: This should remain the last member so it'll be destroyed and |
125 // invalidate its weak pointers before any other members are destroyed. | 125 // invalidate its weak pointers before any other members are destroyed. |
126 base::WeakPtrFactory<FakeShillDeviceClient> weak_ptr_factory_; | 126 base::WeakPtrFactory<FakeShillDeviceClient> weak_ptr_factory_; |
127 | 127 |
128 DISALLOW_COPY_AND_ASSIGN(FakeShillDeviceClient); | 128 DISALLOW_COPY_AND_ASSIGN(FakeShillDeviceClient); |
129 }; | 129 }; |
130 | 130 |
131 } // namespace chromeos | 131 } // namespace chromeos |
132 | 132 |
133 #endif // CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_ | 133 #endif // CHROMEOS_DBUS_FAKE_SHILL_DEVICE_CLIENT_H_ |
OLD | NEW |