| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_ | 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| 11 #include "chromeos/chromeos_export.h" | 11 #include "chromeos/chromeos_export.h" |
| 12 #include "chromeos/dbus/bluetooth_agent_service_provider.h" | 12 #include "chromeos/dbus/bluetooth_agent_service_provider.h" |
| 13 #include "chromeos/dbus/dbus_client_implementation_type.h" | |
| 14 #include "dbus/object_path.h" | 13 #include "dbus/object_path.h" |
| 15 #include "dbus/property.h" | 14 #include "dbus/property.h" |
| 16 | 15 |
| 17 namespace chromeos { | 16 namespace chromeos { |
| 18 | 17 |
| 19 class FakeBluetoothAgentManagerClient; | 18 class FakeBluetoothAgentManagerClient; |
| 20 | 19 |
| 21 // FakeBluetoothAgentServiceProvider simulates the behavior of a local | 20 // FakeBluetoothAgentServiceProvider simulates the behavior of a local |
| 22 // Bluetooth agent object and is used both in test cases in place of a | 21 // Bluetooth agent object and is used both in test cases in place of a |
| 23 // mock and on the Linux desktop. | 22 // mock and on the Linux desktop. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 59 |
| 61 // All incoming method calls are passed on to the Delegate and a callback | 60 // All incoming method calls are passed on to the Delegate and a callback |
| 62 // passed to generate the reply. |delegate_| is generally the object that | 61 // passed to generate the reply. |delegate_| is generally the object that |
| 63 // owns this one, and must outlive it. | 62 // owns this one, and must outlive it. |
| 64 Delegate* delegate_; | 63 Delegate* delegate_; |
| 65 }; | 64 }; |
| 66 | 65 |
| 67 } // namespace chromeos | 66 } // namespace chromeos |
| 68 | 67 |
| 69 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_ | 68 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_AGENT_SERVICE_PROVIDER_H_ |
| OLD | NEW |