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

Side by Side Diff: device/bluetooth/test/bluetooth_test_win.h

Issue 1804093003: Add BluetoothGattCharacteristicTest::StartNotifySession_Reentrant unit test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_ 5 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_
6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_ 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_
7 7
8 #include "device/bluetooth/test/bluetooth_test.h" 8 #include "device/bluetooth/test/bluetooth_test.h"
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void SimulateGattCharacteristicWrite( 55 void SimulateGattCharacteristicWrite(
56 BluetoothRemoteGattCharacteristic* characteristic) override; 56 BluetoothRemoteGattCharacteristic* characteristic) override;
57 void SimulateGattCharacteristicWriteError( 57 void SimulateGattCharacteristicWriteError(
58 BluetoothRemoteGattCharacteristic* characteristic, 58 BluetoothRemoteGattCharacteristic* characteristic,
59 BluetoothRemoteGattService::GattErrorCode error_code) override; 59 BluetoothRemoteGattService::GattErrorCode error_code) override;
60 void DeleteDevice(BluetoothDevice* device) override; 60 void DeleteDevice(BluetoothDevice* device) override;
61 void SimulateGattDescriptor(BluetoothRemoteGattCharacteristic* characteristic, 61 void SimulateGattDescriptor(BluetoothRemoteGattCharacteristic* characteristic,
62 const std::string& uuid) override; 62 const std::string& uuid) override;
63 void SimulateGattNotifySessionStarted( 63 void SimulateGattNotifySessionStarted(
64 BluetoothRemoteGattCharacteristic* characteristic) override; 64 BluetoothRemoteGattCharacteristic* characteristic) override;
65 void SimulateGattCharacteristicSetNotifyWillFailAsynchronouslyOnce(
66 BluetoothRemoteGattCharacteristic* characteristic) override;
65 void SimulateGattCharacteristicChanged( 67 void SimulateGattCharacteristicChanged(
66 BluetoothRemoteGattCharacteristic* characteristic, 68 BluetoothRemoteGattCharacteristic* characteristic,
67 const std::vector<uint8_t>& value) override; 69 const std::vector<uint8_t>& value) override;
68 70
69 // win::BluetoothLowEnergyWrapperFake::Observer overrides. 71 // win::BluetoothLowEnergyWrapperFake::Observer overrides.
70 void OnReadGattCharacteristicValue() override; 72 void OnReadGattCharacteristicValue() override;
71 void OnWriteGattCharacteristicValue( 73 void OnWriteGattCharacteristicValue(
72 const PBTH_LE_GATT_CHARACTERISTIC_VALUE value) override; 74 const PBTH_LE_GATT_CHARACTERISTIC_VALUE value) override;
73 void OnStartCharacteristicNotification() override; 75 void OnStartCharacteristicNotification() override;
74 void OnWriteGattDescriptorValue(const std::vector<uint8_t>& value) override; 76 void OnWriteGattDescriptorValue(const std::vector<uint8_t>& value) override;
(...skipping 18 matching lines...) Expand all
93 void ForceRefreshDevice(); 95 void ForceRefreshDevice();
94 void FinishPendingTasks(); 96 void FinishPendingTasks();
95 }; 97 };
96 98
97 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). 99 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).
98 typedef BluetoothTestWin BluetoothTest; 100 typedef BluetoothTestWin BluetoothTest;
99 101
100 } // namespace device 102 } // namespace device
101 103
102 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_ 104 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698