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

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

Issue 1502833002: bluetooth: android: Enable characteristic change notification events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bta-check-null-
Patch Set: GattCharacteristicValueChanged_AfterDeleted Created 4 years, 11 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 29 matching lines...) Expand all
40 void SimulateGattServicesDiscoveryError(BluetoothDevice* device) override; 40 void SimulateGattServicesDiscoveryError(BluetoothDevice* device) override;
41 void SimulateGattCharacteristic(BluetoothGattService* service, 41 void SimulateGattCharacteristic(BluetoothGattService* service,
42 const std::string& uuid, 42 const std::string& uuid,
43 int properties) override; 43 int properties) override;
44 void RememberCharacteristicForSubsequentAction( 44 void RememberCharacteristicForSubsequentAction(
45 BluetoothGattCharacteristic* characteristic) override; 45 BluetoothGattCharacteristic* characteristic) override;
46 void SimulateGattNotifySessionStarted( 46 void SimulateGattNotifySessionStarted(
47 BluetoothGattCharacteristic* characteristic) override; 47 BluetoothGattCharacteristic* characteristic) override;
48 void SimulateGattCharacteristicSetNotifyWillFailSynchronouslyOnce( 48 void SimulateGattCharacteristicSetNotifyWillFailSynchronouslyOnce(
49 BluetoothGattCharacteristic* characteristic) override; 49 BluetoothGattCharacteristic* characteristic) override;
50 void SimulateGattCharacteristicChanged(
51 BluetoothGattCharacteristic* characteristic,
52 const std::vector<uint8_t>& value) override;
50 void SimulateGattCharacteristicRead( 53 void SimulateGattCharacteristicRead(
51 BluetoothGattCharacteristic* characteristic, 54 BluetoothGattCharacteristic* characteristic,
52 const std::vector<uint8_t>& value) override; 55 const std::vector<uint8_t>& value) override;
53 void SimulateGattCharacteristicReadError( 56 void SimulateGattCharacteristicReadError(
54 BluetoothGattCharacteristic* characteristic, 57 BluetoothGattCharacteristic* characteristic,
55 BluetoothGattService::GattErrorCode) override; 58 BluetoothGattService::GattErrorCode) override;
56 void SimulateGattCharacteristicReadWillFailSynchronouslyOnce( 59 void SimulateGattCharacteristicReadWillFailSynchronouslyOnce(
57 BluetoothGattCharacteristic* characteristic) override; 60 BluetoothGattCharacteristic* characteristic) override;
58 void SimulateGattCharacteristicWrite( 61 void SimulateGattCharacteristicWrite(
59 BluetoothGattCharacteristic* characteristic) override; 62 BluetoothGattCharacteristic* characteristic) override;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 110
108 base::android::ScopedJavaGlobalRef<jobject> j_fake_bluetooth_adapter_; 111 base::android::ScopedJavaGlobalRef<jobject> j_fake_bluetooth_adapter_;
109 }; 112 };
110 113
111 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). 114 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).
112 typedef BluetoothTestAndroid BluetoothTest; 115 typedef BluetoothTestAndroid BluetoothTest;
113 116
114 } // namespace device 117 } // namespace device
115 118
116 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ 119 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698