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

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 new 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 int properties) override; 45 int properties) override;
46 void RememberCharacteristicForSubsequentAction( 46 void RememberCharacteristicForSubsequentAction(
47 BluetoothRemoteGattCharacteristic* characteristic) override; 47 BluetoothRemoteGattCharacteristic* characteristic) override;
48 void RememberCCCDescriptorForSubsequentAction( 48 void RememberCCCDescriptorForSubsequentAction(
49 BluetoothRemoteGattCharacteristic* characteristic) override; 49 BluetoothRemoteGattCharacteristic* characteristic) override;
50 void SimulateGattNotifySessionStarted( 50 void SimulateGattNotifySessionStarted(
51 BluetoothRemoteGattCharacteristic* characteristic) override; 51 BluetoothRemoteGattCharacteristic* characteristic) override;
52 void SimulateGattNotifySessionStartError( 52 void SimulateGattNotifySessionStartError(
53 BluetoothRemoteGattCharacteristic* characteristic, 53 BluetoothRemoteGattCharacteristic* characteristic,
54 BluetoothRemoteGattService::GattErrorCode error_code) override; 54 BluetoothRemoteGattService::GattErrorCode error_code) override;
55 void SimulateGattNotifySessionStopped(
56 BluetoothRemoteGattCharacteristic* characteristic) override;
57 void SimulateGattNotifySessionStopError(
58 BluetoothRemoteGattCharacteristic* characteristic,
59 BluetoothRemoteGattService::GattErrorCode error_code) override;
55 void SimulateGattCharacteristicSetNotifyWillFailSynchronouslyOnce( 60 void SimulateGattCharacteristicSetNotifyWillFailSynchronouslyOnce(
56 BluetoothRemoteGattCharacteristic* characteristic) override; 61 BluetoothRemoteGattCharacteristic* characteristic) override;
57 void SimulateGattCharacteristicChanged( 62 void SimulateGattCharacteristicChanged(
58 BluetoothRemoteGattCharacteristic* characteristic, 63 BluetoothRemoteGattCharacteristic* characteristic,
59 const std::vector<uint8_t>& value) override; 64 const std::vector<uint8_t>& value) override;
60 65
61 void SimulateGattCharacteristicRead( 66 void SimulateGattCharacteristicRead(
62 BluetoothRemoteGattCharacteristic* characteristic, 67 BluetoothRemoteGattCharacteristic* characteristic,
63 const std::vector<uint8_t>& value) override; 68 const std::vector<uint8_t>& value) override;
64 void SimulateGattCharacteristicReadError( 69 void SimulateGattCharacteristicReadError(
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 int gatt_open_connections_ = 0; 168 int gatt_open_connections_ = 0;
164 BluetoothRemoteGattDescriptor* remembered_ccc_descriptor_ = nullptr; 169 BluetoothRemoteGattDescriptor* remembered_ccc_descriptor_ = nullptr;
165 }; 170 };
166 171
167 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). 172 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).
168 typedef BluetoothTestAndroid BluetoothTest; 173 typedef BluetoothTestAndroid BluetoothTest;
169 174
170 } // namespace device 175 } // namespace device
171 176
172 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ 177 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_
OLDNEW
« no previous file with comments | « device/bluetooth/test/bluetooth_test.cc ('k') | device/bluetooth/test/bluetooth_test_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698