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

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

Issue 1395783005: bluetooth: android: BluetoothRemoteGattServiceAndroid::GetUUID (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed jyasskin comments Created 5 years, 2 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 "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include "device/bluetooth/test/bluetooth_test.h" 9 #include "device/bluetooth/test/bluetooth_test.h"
10 10
(...skipping 13 matching lines...) Expand all
24 // BluetoothTestBase overrides: 24 // BluetoothTestBase overrides:
25 bool PlatformSupportsLowEnergy() override; 25 bool PlatformSupportsLowEnergy() override;
26 void InitWithDefaultAdapter() override; 26 void InitWithDefaultAdapter() override;
27 void InitWithoutDefaultAdapter() override; 27 void InitWithoutDefaultAdapter() override;
28 void InitWithFakeAdapter() override; 28 void InitWithFakeAdapter() override;
29 BluetoothDevice* DiscoverLowEnergyDevice(int device_ordinal) override; 29 BluetoothDevice* DiscoverLowEnergyDevice(int device_ordinal) override;
30 void SimulateGattConnection(BluetoothDevice* device) override; 30 void SimulateGattConnection(BluetoothDevice* device) override;
31 void SimulateGattConnectionError(BluetoothDevice* device, 31 void SimulateGattConnectionError(BluetoothDevice* device,
32 BluetoothDevice::ConnectErrorCode) override; 32 BluetoothDevice::ConnectErrorCode) override;
33 void SimulateGattDisconnection(BluetoothDevice* device) override; 33 void SimulateGattDisconnection(BluetoothDevice* device) override;
34 void SimulateGattServicesDiscovered(BluetoothDevice* device) override; 34 void SimulateGattServicesDiscovered(
35 BluetoothDevice* device,
36 const std::vector<std::string>& uuids) override;
35 void SimulateGattServicesDiscoveryError(BluetoothDevice* device) override; 37 void SimulateGattServicesDiscoveryError(BluetoothDevice* device) override;
36 38
37 // Records that Java FakeBluetoothDevice connectGatt was called. 39 // Records that Java FakeBluetoothDevice connectGatt was called.
38 void OnFakeBluetoothDeviceConnectGattCalled(JNIEnv* env, jobject caller); 40 void OnFakeBluetoothDeviceConnectGattCalled(JNIEnv* env, jobject caller);
39 41
40 // Records that Java FakeBluetoothGatt disconnect was called. 42 // Records that Java FakeBluetoothGatt disconnect was called.
41 void OnFakeBluetoothGattDisconnect(JNIEnv* env, jobject caller); 43 void OnFakeBluetoothGattDisconnect(JNIEnv* env, jobject caller);
42 44
43 // Records that Java FakeBluetoothGatt discoverServices was called. 45 // Records that Java FakeBluetoothGatt discoverServices was called.
44 void OnFakeBluetoothGattDiscoverServices(JNIEnv* env, jobject caller); 46 void OnFakeBluetoothGattDiscoverServices(JNIEnv* env, jobject caller);
45 47
46 base::android::ScopedJavaGlobalRef<jobject> j_fake_bluetooth_adapter_; 48 base::android::ScopedJavaGlobalRef<jobject> j_fake_bluetooth_adapter_;
47 }; 49 };
48 50
49 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). 51 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).
50 typedef BluetoothTestAndroid BluetoothTest; 52 typedef BluetoothTestAndroid BluetoothTest;
51 53
52 } // namespace device 54 } // namespace device
53 55
54 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ 56 #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