OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_LE_ADVERTISING_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
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" | |
15 #include "chromeos/dbus/bluetooth_le_advertising_manager_client.h" | |
16 #include "dbus/object_path.h" | 14 #include "dbus/object_path.h" |
17 #include "dbus/property.h" | 15 #include "dbus/property.h" |
| 16 #include "device/bluetooth/bluetooth_export.h" |
| 17 #include "device/bluetooth/dbus/bluetooth_le_advertising_manager_client.h" |
18 | 18 |
19 namespace chromeos { | 19 namespace bluez { |
20 | 20 |
21 class FakeBluetoothLEAdvertisementServiceProvider; | 21 class FakeBluetoothLEAdvertisementServiceProvider; |
22 | 22 |
23 // FakeBluetoothAdvertisementManagerClient simulates the behavior of the | 23 // FakeBluetoothAdvertisementManagerClient simulates the behavior of the |
24 // Bluetooth | 24 // Bluetooth |
25 // Daemon's profile manager object and is used both in test cases in place of a | 25 // Daemon's profile manager object and is used both in test cases in place of a |
26 // mock and on the Linux desktop. | 26 // mock and on the Linux desktop. |
27 class CHROMEOS_EXPORT FakeBluetoothLEAdvertisingManagerClient | 27 class DEVICE_BLUETOOTH_EXPORT FakeBluetoothLEAdvertisingManagerClient |
28 : public BluetoothLEAdvertisingManagerClient { | 28 : public BluetoothLEAdvertisingManagerClient { |
29 public: | 29 public: |
30 FakeBluetoothLEAdvertisingManagerClient(); | 30 FakeBluetoothLEAdvertisingManagerClient(); |
31 ~FakeBluetoothLEAdvertisingManagerClient() override; | 31 ~FakeBluetoothLEAdvertisingManagerClient() override; |
32 | 32 |
33 // DBusClient overrides: | 33 // DBusClient overrides: |
34 void Init(dbus::Bus* bus) override; | 34 void Init(dbus::Bus* bus) override; |
35 | 35 |
36 // BluetoothAdvertisingManagerClient overrides: | 36 // BluetoothAdvertisingManagerClient overrides: |
37 void AddObserver(Observer* observer) override; | 37 void AddObserver(Observer* observer) override; |
(...skipping 29 matching lines...) Expand all Loading... |
67 ServiceProviderMap; | 67 ServiceProviderMap; |
68 ServiceProviderMap service_provider_map_; | 68 ServiceProviderMap service_provider_map_; |
69 | 69 |
70 // Holds the currently registered advertisement. If there is no advertisement | 70 // Holds the currently registered advertisement. If there is no advertisement |
71 // registered, this path is empty. | 71 // registered, this path is empty. |
72 dbus::ObjectPath currently_registered_; | 72 dbus::ObjectPath currently_registered_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothLEAdvertisingManagerClient); | 74 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothLEAdvertisingManagerClient); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace chromeos | 77 } // namespace bluez |
78 | 78 |
79 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_ | 79 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_LE_ADVERTISING_MANAGER_CLIENT_H_ |
OLD | NEW |