Add some instrumentation for jank in URLRequest::Start.
[chromium-blink-merge.git] / chromeos / dbus / fake_bluetooth_gatt_service_service_provider.h
bloba1a1253a3a850b39c79cc84e5ac254cdb794cbf6
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
3 // found in the LICENSE file.
5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_SERVICE_SERVICE_PROVIDER_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_SERVICE_SERVICE_PROVIDER_H_
8 #include <string>
9 #include <vector>
11 #include "chromeos/chromeos_export.h"
12 #include "chromeos/dbus/bluetooth_gatt_service_service_provider.h"
13 #include "dbus/object_path.h"
15 namespace chromeos {
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
19 // Linux desktop.
20 class CHROMEOS_EXPORT FakeBluetoothGattServiceServiceProvider
21 : public BluetoothGattServiceServiceProvider {
22 public:
23 FakeBluetoothGattServiceServiceProvider(
24 const dbus::ObjectPath& object_path,
25 const std::string& uuid,
26 const std::vector<dbus::ObjectPath>& includes);
27 ~FakeBluetoothGattServiceServiceProvider() override;
29 const dbus::ObjectPath& object_path() const { return object_path_; }
30 const std::string& uuid() const { return uuid_; }
32 private:
33 // D-Bus object path of the fake GATT service.
34 dbus::ObjectPath object_path_;
36 // 128-bit GATT service UUID.
37 std::string uuid_;
39 // List of included GATT services.
40 std::vector<dbus::ObjectPath> includes_;
42 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattServiceServiceProvider);
45 } // namespace chromeos
47 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_SERVICE_SERVICE_PROVIDER_H_