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

Side by Side Diff: device/bluetooth/dbus/fake_bluetooth_gatt_service_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_SERVICE_SERVICE_PROVIDER_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_SERVICE_SERVICE_PROVIDER_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_SERVICE_SERVICE_PROVIDER_H_ 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_SERVICE_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_service_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_service_service_provider.h"
14 14
15 namespace chromeos { 15 namespace bluez {
16 16
17 // FakeBluetoothGattServiceServiceProvider simulates behavior of a local GATT 17 // FakeBluetoothGattServiceServiceProvider simulates behavior of a local GATT
18 // service object and is used both in test cases in place of a mock and on the 18 // service object and is used both in test cases in place of a mock and on the
19 // Linux desktop. 19 // Linux desktop.
20 class CHROMEOS_EXPORT FakeBluetoothGattServiceServiceProvider 20 class DEVICE_BLUETOOTH_EXPORT FakeBluetoothGattServiceServiceProvider
21 : public BluetoothGattServiceServiceProvider { 21 : public BluetoothGattServiceServiceProvider {
22 public: 22 public:
23 FakeBluetoothGattServiceServiceProvider( 23 FakeBluetoothGattServiceServiceProvider(
24 const dbus::ObjectPath& object_path, 24 const dbus::ObjectPath& object_path,
25 const std::string& uuid, 25 const std::string& uuid,
26 const std::vector<dbus::ObjectPath>& includes); 26 const std::vector<dbus::ObjectPath>& includes);
27 ~FakeBluetoothGattServiceServiceProvider() override; 27 ~FakeBluetoothGattServiceServiceProvider() override;
28 28
29 const dbus::ObjectPath& object_path() const { return object_path_; } 29 const dbus::ObjectPath& object_path() const { return object_path_; }
30 const std::string& uuid() const { return uuid_; } 30 const std::string& uuid() const { return uuid_; }
31 31
32 private: 32 private:
33 // D-Bus object path of the fake GATT service. 33 // D-Bus object path of the fake GATT service.
34 dbus::ObjectPath object_path_; 34 dbus::ObjectPath object_path_;
35 35
36 // 128-bit GATT service UUID. 36 // 128-bit GATT service UUID.
37 std::string uuid_; 37 std::string uuid_;
38 38
39 // List of included GATT services. 39 // List of included GATT services.
40 std::vector<dbus::ObjectPath> includes_; 40 std::vector<dbus::ObjectPath> includes_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattServiceServiceProvider); 42 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattServiceServiceProvider);
43 }; 43 };
44 44
45 } // namespace chromeos 45 } // namespace bluez
46 46
47 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_SERVICE_SERVICE_PROVIDER_H_ 47 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_SERVICE_SERVICE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698