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

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

Issue 1804093003: Add BluetoothGattCharacteristicTest::StartNotifySession_Reentrant unit test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
Index: device/bluetooth/test/bluetooth_test.h
diff --git a/device/bluetooth/test/bluetooth_test.h b/device/bluetooth/test/bluetooth_test.h
index 51e6541f40c21555a8cc32177a321277dcd9199a..08617d83c65d055bf54cfb82db95e9a08655eb85 100644
--- a/device/bluetooth/test/bluetooth_test.h
+++ b/device/bluetooth/test/bluetooth_test.h
@@ -271,6 +271,15 @@ class BluetoothTestBase : public testing::Test {
enum BluetoothDevice::ConnectErrorCode);
void GattErrorCallback(Call expected,
BluetoothRemoteGattService::GattErrorCode);
+ void ReentrantStartNotifySessionSuccessCallback(
+ Call expected,
+ BluetoothRemoteGattCharacteristic* characteristic,
+ std::unique_ptr<BluetoothGattNotifySession> notify_session);
+ void ReentrantStartNotifySessionErrorCallback(
+ Call expected,
+ BluetoothRemoteGattCharacteristic* characteristic,
+ bool error_in_reentrant,
+ BluetoothGattService::GattErrorCode error_code);
// Accessors to get callbacks bound to this fixture:
base::Closure GetCallback(Call expected);
@@ -286,6 +295,15 @@ class BluetoothTestBase : public testing::Test {
BluetoothDevice::ConnectErrorCallback GetConnectErrorCallback(Call expected);
base::Callback<void(BluetoothRemoteGattService::GattErrorCode)>
GetGattErrorCallback(Call expected);
+ BluetoothRemoteGattCharacteristic::NotifySessionCallback
+ GetReentrantStartNotifySessionSuccessCallback(
+ Call expected,
+ BluetoothRemoteGattCharacteristic* characteristic);
+ base::Callback<void(BluetoothGattService::GattErrorCode)>
+ GetReentrantStartNotifySessionErrorCallback(
+ Call expected,
+ BluetoothRemoteGattCharacteristic* characteristic,
+ bool error_in_reentrant);
// Reset all event count members to 0.
void ResetEventCounts();
« no previous file with comments | « device/bluetooth/bluetooth_remote_gatt_characteristic_unittest.cc ('k') | device/bluetooth/test/bluetooth_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698