| 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_DEVICE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
| 14 #include "chromeos/chromeos_export.h" | 14 #include "chromeos/chromeos_export.h" |
| 15 #include "chromeos/dbus/bluetooth_agent_service_provider.h" | 15 #include "chromeos/dbus/bluetooth_agent_service_provider.h" |
| 16 #include "chromeos/dbus/bluetooth_device_client.h" | 16 #include "chromeos/dbus/bluetooth_device_client.h" |
| 17 #include "chromeos/dbus/bluetooth_profile_service_provider.h" | 17 #include "chromeos/dbus/bluetooth_profile_service_provider.h" |
| 18 #include "chromeos/dbus/dbus_client_implementation_type.h" | |
| 19 #include "dbus/object_path.h" | 18 #include "dbus/object_path.h" |
| 20 #include "dbus/property.h" | 19 #include "dbus/property.h" |
| 21 | 20 |
| 22 namespace chromeos { | 21 namespace chromeos { |
| 23 | 22 |
| 24 // FakeBluetoothDeviceClient simulates the behavior of the Bluetooth Daemon | 23 // FakeBluetoothDeviceClient simulates the behavior of the Bluetooth Daemon |
| 25 // device objects and is used both in test cases in place of a mock and on | 24 // device objects and is used both in test cases in place of a mock and on |
| 26 // the Linux desktop. | 25 // the Linux desktop. |
| 27 class CHROMEOS_EXPORT FakeBluetoothDeviceClient | 26 class CHROMEOS_EXPORT FakeBluetoothDeviceClient |
| 28 : public BluetoothDeviceClient { | 27 : public BluetoothDeviceClient { |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 std::vector<dbus::ObjectPath> device_list_; | 207 std::vector<dbus::ObjectPath> device_list_; |
| 209 | 208 |
| 210 int simulation_interval_ms_; | 209 int simulation_interval_ms_; |
| 211 uint32_t discovery_simulation_step_; | 210 uint32_t discovery_simulation_step_; |
| 212 bool pairing_cancelled_; | 211 bool pairing_cancelled_; |
| 213 }; | 212 }; |
| 214 | 213 |
| 215 } // namespace chromeos | 214 } // namespace chromeos |
| 216 | 215 |
| 217 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ | 216 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ |
| OLD | NEW |