Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_service_provider.h

Issue 1347193004: Refactor DBusThreadManager to split away BT clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_GATT_CHARACTERISTIC_SERVICE_PROVIDER_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDER_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDER_H_ 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "chromeos/chromeos_export.h"
12 #include "chromeos/dbus/bluetooth_gatt_characteristic_service_provider.h"
13 #include "dbus/object_path.h" 11 #include "dbus/object_path.h"
12 #include "device/bluetooth/bluetooth_export.h"
13 #include "device/bluetooth/dbus/bluetooth_gatt_characteristic_service_provider.h "
14 14
15 namespace chromeos { 15 namespace bluez {
16 16
17 // FakeBluetoothGattCharacteristicServiceProvider simulates behavior of a local 17 // FakeBluetoothGattCharacteristicServiceProvider simulates behavior of a local
18 // GATT characteristic object and is used both in test cases in place of a mock 18 // GATT characteristic object and is used both in test cases in place of a mock
19 // and on the Linux desktop. 19 // and on the Linux desktop.
20 class CHROMEOS_EXPORT FakeBluetoothGattCharacteristicServiceProvider 20 class DEVICE_BLUETOOTH_EXPORT FakeBluetoothGattCharacteristicServiceProvider
21 : public BluetoothGattCharacteristicServiceProvider { 21 : public BluetoothGattCharacteristicServiceProvider {
22 public: 22 public:
23 FakeBluetoothGattCharacteristicServiceProvider( 23 FakeBluetoothGattCharacteristicServiceProvider(
24 const dbus::ObjectPath& object_path, 24 const dbus::ObjectPath& object_path,
25 Delegate* delegate, 25 Delegate* delegate,
26 const std::string& uuid, 26 const std::string& uuid,
27 const std::vector<std::string>& flags, 27 const std::vector<std::string>& flags,
28 const std::vector<std::string>& permissions, 28 const std::vector<std::string>& permissions,
29 const dbus::ObjectPath& service_path); 29 const dbus::ObjectPath& service_path);
30 ~FakeBluetoothGattCharacteristicServiceProvider() override; 30 ~FakeBluetoothGattCharacteristicServiceProvider() override;
(...skipping 23 matching lines...) Expand all
54 54
55 // Object path of the service that this characteristic belongs to. 55 // Object path of the service that this characteristic belongs to.
56 dbus::ObjectPath service_path_; 56 dbus::ObjectPath service_path_;
57 57
58 // The delegate that method calls are passed on to. 58 // The delegate that method calls are passed on to.
59 Delegate* delegate_; 59 Delegate* delegate_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattCharacteristicServiceProvider); 61 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattCharacteristicServiceProvider);
62 }; 62 };
63 63
64 } // namespace chromeos 64 } // namespace bluez
65 65
66 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDER_H_ 66 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_SERVICE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698