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

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

Issue 1842223003: Remove outdated devices from Android device chooser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't purge devices continuously. Added more tests. Created 4 years, 6 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 12 matching lines...) Expand all
23 // Test overrides: 23 // Test overrides:
24 void SetUp() override; 24 void SetUp() override;
25 void TearDown() override; 25 void TearDown() override;
26 26
27 // BluetoothTestBase overrides: 27 // BluetoothTestBase overrides:
28 bool PlatformSupportsLowEnergy() override; 28 bool PlatformSupportsLowEnergy() override;
29 void InitWithDefaultAdapter() override; 29 void InitWithDefaultAdapter() override;
30 void InitWithoutDefaultAdapter() override; 30 void InitWithoutDefaultAdapter() override;
31 void InitWithFakeAdapter() override; 31 void InitWithFakeAdapter() override;
32 bool DenyPermission() override; 32 bool DenyPermission() override;
33 void SetBonded(BluetoothDevice* device) override;
ortuno 2016/06/15 17:20:16 As mentioned above. I don't think we need to do th
34
33 BluetoothDevice* SimulateLowEnergyDevice(int device_ordinal) override; 35 BluetoothDevice* SimulateLowEnergyDevice(int device_ordinal) override;
34 void SimulateGattConnection(BluetoothDevice* device) override; 36 void SimulateGattConnection(BluetoothDevice* device) override;
35 void SimulateGattConnectionError(BluetoothDevice* device, 37 void SimulateGattConnectionError(BluetoothDevice* device,
36 BluetoothDevice::ConnectErrorCode) override; 38 BluetoothDevice::ConnectErrorCode) override;
37 void SimulateGattDisconnection(BluetoothDevice* device) override; 39 void SimulateGattDisconnection(BluetoothDevice* device) override;
38 void SimulateGattServicesDiscovered( 40 void SimulateGattServicesDiscovered(
39 BluetoothDevice* device, 41 BluetoothDevice* device,
40 const std::vector<std::string>& uuids) override; 42 const std::vector<std::string>& uuids) override;
41 void SimulateGattServicesDiscoveryError(BluetoothDevice* device) override; 43 void SimulateGattServicesDiscoveryError(BluetoothDevice* device) override;
42 void SimulateGattCharacteristic(BluetoothRemoteGattService* service, 44 void SimulateGattCharacteristic(BluetoothRemoteGattService* service,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 int gatt_open_connections_ = 0; 160 int gatt_open_connections_ = 0;
159 BluetoothRemoteGattDescriptor* remembered_ccc_descriptor_ = nullptr; 161 BluetoothRemoteGattDescriptor* remembered_ccc_descriptor_ = nullptr;
160 }; 162 };
161 163
162 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). 164 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).
163 typedef BluetoothTestAndroid BluetoothTest; 165 typedef BluetoothTestAndroid BluetoothTest;
164 166
165 } // namespace device 167 } // namespace device
166 168
167 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_ 169 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698