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

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

Issue 2051333004: Implement BluetoothGattNotifySession::Stop on Android, 2nd attempt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Giovanni's review comments Created 4 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_ANDROID_H_ 5 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_
6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 int properties) override; 44 int properties) override;
45 void RememberCharacteristicForSubsequentAction( 45 void RememberCharacteristicForSubsequentAction(
46 BluetoothRemoteGattCharacteristic* characteristic) override; 46 BluetoothRemoteGattCharacteristic* characteristic) override;
47 void RememberCCCDescriptorForSubsequentAction( 47 void RememberCCCDescriptorForSubsequentAction(
48 BluetoothRemoteGattCharacteristic* characteristic) override; 48 BluetoothRemoteGattCharacteristic* characteristic) override;
49 void SimulateGattNotifySessionStarted( 49 void SimulateGattNotifySessionStarted(
50 BluetoothRemoteGattCharacteristic* characteristic) override; 50 BluetoothRemoteGattCharacteristic* characteristic) override;
51 void SimulateGattNotifySessionStartError( 51 void SimulateGattNotifySessionStartError(
52 BluetoothRemoteGattCharacteristic* characteristic, 52 BluetoothRemoteGattCharacteristic* characteristic,
53 BluetoothRemoteGattService::GattErrorCode error_code) override; 53 BluetoothRemoteGattService::GattErrorCode error_code) override;
54 void SimulateGattNotifySessionStopped(
55 BluetoothRemoteGattCharacteristic* characteristic) override;
56 void SimulateGattNotifySessionStopError(
57 BluetoothRemoteGattCharacteristic* characteristic,
58 BluetoothRemoteGattService::GattErrorCode error_code) override;
54 void SimulateGattCharacteristicSetNotifyWillFailSynchronouslyOnce( 59 void SimulateGattCharacteristicSetNotifyWillFailSynchronouslyOnce(
55 BluetoothRemoteGattCharacteristic* characteristic) override; 60 BluetoothRemoteGattCharacteristic* characteristic) override;
56 void SimulateGattCharacteristicChanged( 61 void SimulateGattCharacteristicChanged(
57 BluetoothRemoteGattCharacteristic* characteristic, 62 BluetoothRemoteGattCharacteristic* characteristic,
58 const std::vector<uint8_t>& value) override; 63 const std::vector<uint8_t>& value) override;
59 64
60 void SimulateGattCharacteristicRead( 65 void SimulateGattCharacteristicRead(
61 BluetoothRemoteGattCharacteristic* characteristic, 66 BluetoothRemoteGattCharacteristic* characteristic,
62 const std::vector<uint8_t>& value) override; 67 const std::vector<uint8_t>& value) override;
63 void SimulateGattCharacteristicReadError( 68 void SimulateGattCharacteristicReadError(
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 int gatt_open_connections_ = 0; 167 int gatt_open_connections_ = 0;
163 BluetoothRemoteGattDescriptor* remembered_ccc_descriptor_ = nullptr; 168 BluetoothRemoteGattDescriptor* remembered_ccc_descriptor_ = nullptr;
164 }; 169 };
165 170
166 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). 171 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).
167 typedef BluetoothTestAndroid BluetoothTest; 172 typedef BluetoothTestAndroid BluetoothTest;
168 173
169 } // namespace device 174 } // namespace device
170 175
171 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ 176 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698