| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |