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

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

Issue 1574773002: bluetooth: android: Initial basic Descriptors implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bta-code-cleanup-
Patch Set: addressed j again 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
« no previous file with comments | « device/bluetooth/test/bluetooth_test.h ('k') | device/bluetooth/test/bluetooth_test_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 BluetoothGattService::GattErrorCode) override; 55 BluetoothGattService::GattErrorCode) override;
56 void SimulateGattCharacteristicReadWillFailSynchronouslyOnce( 56 void SimulateGattCharacteristicReadWillFailSynchronouslyOnce(
57 BluetoothGattCharacteristic* characteristic) override; 57 BluetoothGattCharacteristic* characteristic) override;
58 void SimulateGattCharacteristicWrite( 58 void SimulateGattCharacteristicWrite(
59 BluetoothGattCharacteristic* characteristic) override; 59 BluetoothGattCharacteristic* characteristic) override;
60 void SimulateGattCharacteristicWriteError( 60 void SimulateGattCharacteristicWriteError(
61 BluetoothGattCharacteristic* characteristic, 61 BluetoothGattCharacteristic* characteristic,
62 BluetoothGattService::GattErrorCode) override; 62 BluetoothGattService::GattErrorCode) override;
63 void SimulateGattCharacteristicWriteWillFailSynchronouslyOnce( 63 void SimulateGattCharacteristicWriteWillFailSynchronouslyOnce(
64 BluetoothGattCharacteristic* characteristic) override; 64 BluetoothGattCharacteristic* characteristic) override;
65 void SimulateGattDescriptor(BluetoothGattCharacteristic* characteristic,
66 const std::string& uuid) override;
65 67
66 // Records that Java FakeBluetoothDevice connectGatt was called. 68 // Records that Java FakeBluetoothDevice connectGatt was called.
67 void OnFakeBluetoothDeviceConnectGattCalled( 69 void OnFakeBluetoothDeviceConnectGattCalled(
68 JNIEnv* env, 70 JNIEnv* env,
69 const base::android::JavaParamRef<jobject>& caller); 71 const base::android::JavaParamRef<jobject>& caller);
70 72
71 // Records that Java FakeBluetoothGatt disconnect was called. 73 // Records that Java FakeBluetoothGatt disconnect was called.
72 void OnFakeBluetoothGattDisconnect( 74 void OnFakeBluetoothGattDisconnect(
73 JNIEnv* env, 75 JNIEnv* env,
74 const base::android::JavaParamRef<jobject>& caller); 76 const base::android::JavaParamRef<jobject>& caller);
(...skipping 22 matching lines...) Expand all
97 99
98 base::android::ScopedJavaGlobalRef<jobject> j_fake_bluetooth_adapter_; 100 base::android::ScopedJavaGlobalRef<jobject> j_fake_bluetooth_adapter_;
99 }; 101 };
100 102
101 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). 103 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).
102 typedef BluetoothTestAndroid BluetoothTest; 104 typedef BluetoothTestAndroid BluetoothTest;
103 105
104 } // namespace device 106 } // namespace device
105 107
106 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ 108 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_
OLDNEW
« no previous file with comments | « device/bluetooth/test/bluetooth_test.h ('k') | device/bluetooth/test/bluetooth_test_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698