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

Unified Diff: device/bluetooth/test/bluetooth_test_bluez.h

Issue 1919683002: Adapter changes for implementing local GATT attributes and tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dbus_classes
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/bluetooth/test/bluetooth_test.h ('k') | device/bluetooth/test/bluetooth_test_bluez.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/test/bluetooth_test_bluez.h
diff --git a/device/bluetooth/test/bluetooth_test_bluez.h b/device/bluetooth/test/bluetooth_test_bluez.h
index a6805d0b98d60ac34108ae15cf2678c5f7615603..5d468376802b96eb0940e9789e7edb4415a25dbb 100644
--- a/device/bluetooth/test/bluetooth_test_bluez.h
+++ b/device/bluetooth/test/bluetooth_test_bluez.h
@@ -5,6 +5,14 @@
#ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_
#define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_BLUEZ_H_
+#include <cstdint>
+#include <vector>
+
+#include "base/callback_forward.h"
+#include "device/bluetooth/bluetooth_device.h"
+#include "device/bluetooth/bluetooth_local_gatt_characteristic.h"
+#include "device/bluetooth/bluetooth_local_gatt_descriptor.h"
+#include "device/bluetooth/bluetooth_local_gatt_service.h"
#include "device/bluetooth/test/bluetooth_test.h"
namespace bluez {
@@ -28,6 +36,30 @@ class BluetoothTestBlueZ : public BluetoothTestBase {
void InitWithFakeAdapter() override;
BluetoothDevice* DiscoverLowEnergyDevice(int device_ordinal) override;
+ void SimulateLocalGattCharacteristicValueReadRequest(
+ BluetoothLocalGattService* service,
+ BluetoothLocalGattCharacteristic* characteristic,
+ const BluetoothLocalGattService::Delegate::ValueCallback& value_callback,
+ const base::Closure& error_callback) override;
+ void SimulateLocalGattCharacteristicValueWriteRequest(
+ BluetoothLocalGattService* service,
+ BluetoothLocalGattCharacteristic* characteristic,
+ const std::vector<uint8_t>& value_to_write,
+ const base::Closure& success_callback,
+ const base::Closure& error_callback) override;
+
+ void SimulateLocalGattDescriptorValueReadRequest(
+ BluetoothLocalGattService* service,
+ BluetoothLocalGattDescriptor* descriptor,
+ const BluetoothLocalGattService::Delegate::ValueCallback& value_callback,
+ const base::Closure& error_callback) override;
+ void SimulateLocalGattDescriptorValueWriteRequest(
+ BluetoothLocalGattService* service,
+ BluetoothLocalGattDescriptor* descriptor,
+ const std::vector<uint8_t>& value_to_write,
+ const base::Closure& success_callback,
+ const base::Closure& error_callback) override;
+
private:
bluez::FakeBluetoothDeviceClient* fake_bluetooth_device_client_;
};
« no previous file with comments | « device/bluetooth/test/bluetooth_test.h ('k') | device/bluetooth/test/bluetooth_test_bluez.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698