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_ADAPTER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
13 #include "chromeos/chromeos_export.h" | 13 #include "chromeos/chromeos_export.h" |
14 #include "chromeos/dbus/bluetooth_adapter_client.h" | 14 #include "chromeos/dbus/bluetooth_adapter_client.h" |
15 #include "chromeos/dbus/dbus_client_implementation_type.h" | |
16 #include "dbus/object_path.h" | 15 #include "dbus/object_path.h" |
17 #include "dbus/property.h" | 16 #include "dbus/property.h" |
18 | 17 |
19 namespace chromeos { | 18 namespace chromeos { |
20 | 19 |
21 // FakeBluetoothAdapterClient simulates the behavior of the Bluetooth Daemon | 20 // FakeBluetoothAdapterClient simulates the behavior of the Bluetooth Daemon |
22 // adapter objects and is used both in test cases in place of a mock and on | 21 // adapter objects and is used both in test cases in place of a mock and on |
23 // the Linux desktop. | 22 // the Linux desktop. |
24 class CHROMEOS_EXPORT FakeBluetoothAdapterClient | 23 class CHROMEOS_EXPORT FakeBluetoothAdapterClient |
25 : public BluetoothAdapterClient { | 24 : public BluetoothAdapterClient { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 bool visible_; | 84 bool visible_; |
86 bool second_visible_; | 85 bool second_visible_; |
87 | 86 |
88 // Number of times we've been asked to discover. | 87 // Number of times we've been asked to discover. |
89 int discovering_count_; | 88 int discovering_count_; |
90 }; | 89 }; |
91 | 90 |
92 } // namespace chromeos | 91 } // namespace chromeos |
93 | 92 |
94 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ | 93 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ |
OLD | NEW |