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

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

Issue 1749403002: Implement BluetoothRemoteGattCharacteristicWin::StartNotifySession and related unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move comments 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/bluetooth_task_manager_win.cc ('k') | device/bluetooth/test/bluetooth_test_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/test/bluetooth_test_win.h
diff --git a/device/bluetooth/test/bluetooth_test_win.h b/device/bluetooth/test/bluetooth_test_win.h
index 459b992b3dd8f1c054290d60bd0ec67a1c97ab09..d5574ed322ed75a5a2508331ab157ca4c4b853df 100644
--- a/device/bluetooth/test/bluetooth_test_win.h
+++ b/device/bluetooth/test/bluetooth_test_win.h
@@ -20,7 +20,6 @@ class BluetoothRemoteGattCharacteristicWin;
// Windows implementation of BluetoothTestBase.
class BluetoothTestWin : public BluetoothTestBase,
- public BluetoothTaskManagerWin::Observer,
public win::BluetoothLowEnergyWrapperFake::Observer {
public:
BluetoothTestWin();
@@ -61,14 +60,18 @@ class BluetoothTestWin : public BluetoothTestBase,
void DeleteDevice(BluetoothDevice* device) override;
void SimulateGattDescriptor(BluetoothGattCharacteristic* characteristic,
const std::string& uuid) override;
-
- // BluetoothTaskManagerWin::Observer overrides.
- void OnAttemptReadGattCharacteristic() override;
- void OnAttemptWriteGattCharacteristic() override;
+ void SimulateGattNotifySessionStarted(
+ BluetoothGattCharacteristic* characteristic) override;
+ void SimulateGattCharacteristicChanged(
+ BluetoothGattCharacteristic* characteristic,
+ const std::vector<uint8_t>& value) override;
// win::BluetoothLowEnergyWrapperFake::Observer overrides.
- void onWriteGattCharacteristicValue(
+ void OnReadGattCharacteristicValue() override;
+ void OnWriteGattCharacteristicValue(
const PBTH_LE_GATT_CHARACTERISTIC_VALUE value) override;
+ void OnStartCharacteristicNotification() override;
+ void OnWriteGattDescriptorValue(const std::vector<uint8_t>& value) override;
private:
scoped_refptr<base::TestSimpleTaskRunner> ui_task_runner_;
@@ -78,8 +81,6 @@ class BluetoothTestWin : public BluetoothTestBase,
win::BluetoothClassicWrapperFake* fake_bt_classic_wrapper_;
win::BluetoothLowEnergyWrapperFake* fake_bt_le_wrapper_;
- BluetoothRemoteGattCharacteristicWin* remembered_characteristic_;
-
void AdapterInitCallback();
win::GattService* GetSimulatedService(win::BLEDevice* device,
BluetoothGattService* service);
« no previous file with comments | « device/bluetooth/bluetooth_task_manager_win.cc ('k') | device/bluetooth/test/bluetooth_test_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698