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

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

Issue 2242833002: Bluetooth: mac: add connected BLE devices at startup Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Device: bluetooth: use untyped containers Created 4 years, 3 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_mac.mm » ('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_MAC_H_ 5 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_
6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/test/test_simple_task_runner.h" 10 #include "base/test/test_simple_task_runner.h"
(...skipping 21 matching lines...) Expand all
32 ~BluetoothTestMac() override; 32 ~BluetoothTestMac() override;
33 33
34 // Test overrides: 34 // Test overrides:
35 void SetUp() override; 35 void SetUp() override;
36 36
37 // BluetoothTestBase overrides: 37 // BluetoothTestBase overrides:
38 bool PlatformSupportsLowEnergy() override; 38 bool PlatformSupportsLowEnergy() override;
39 void InitWithDefaultAdapter() override; 39 void InitWithDefaultAdapter() override;
40 void InitWithoutDefaultAdapter() override; 40 void InitWithoutDefaultAdapter() override;
41 void InitWithFakeAdapter() override; 41 void InitWithFakeAdapter() override;
42 void InitWithFakeAdapterWithConnectedLowEnergyDevice() override;
42 BluetoothDevice* SimulateLowEnergyDevice(int device_ordinal) override; 43 BluetoothDevice* SimulateLowEnergyDevice(int device_ordinal) override;
43 void SimulateGattConnection(BluetoothDevice* device) override; 44 void SimulateGattConnection(BluetoothDevice* device) override;
44 void SimulateGattConnectionError( 45 void SimulateGattConnectionError(
45 BluetoothDevice* device, 46 BluetoothDevice* device,
46 BluetoothDevice::ConnectErrorCode errorCode) override; 47 BluetoothDevice::ConnectErrorCode errorCode) override;
47 void SimulateGattDisconnection(BluetoothDevice* device) override; 48 void SimulateGattDisconnection(BluetoothDevice* device) override;
48 void SimulateGattServicesDiscovered( 49 void SimulateGattServicesDiscovered(
49 BluetoothDevice* device, 50 BluetoothDevice* device,
50 const std::vector<std::string>& uuids) override; 51 const std::vector<std::string>& uuids) override;
51 void SimulateGattServicesChanged(BluetoothDevice* device) override; 52 void SimulateGattServicesChanged(BluetoothDevice* device) override;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 BluetoothAdapterMac* adapter_mac_ = nullptr; 103 BluetoothAdapterMac* adapter_mac_ = nullptr;
103 std::unique_ptr<ScopedMockCentralManager> mock_central_manager_; 104 std::unique_ptr<ScopedMockCentralManager> mock_central_manager_;
104 }; 105 };
105 106
106 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). 107 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).
107 typedef BluetoothTestMac BluetoothTest; 108 typedef BluetoothTestMac BluetoothTest;
108 109
109 } // namespace device 110 } // namespace device
110 111
111 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ 112 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_
OLDNEW
« no previous file with comments | « device/bluetooth/test/bluetooth_test.h ('k') | device/bluetooth/test/bluetooth_test_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698