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

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

Issue 1676073002: Implement BluetoothLowEnergyWrapperFake for Bluetooth test fixture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase && address comments Created 4 years, 10 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_win.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_WIN_H_ 5 #ifndef DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_
6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_ 6 #define DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_
7 7
8 #include "device/bluetooth/test/bluetooth_test.h" 8 #include "device/bluetooth/test/bluetooth_test.h"
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 BluetoothTestWin(); 22 BluetoothTestWin();
23 ~BluetoothTestWin() override; 23 ~BluetoothTestWin() override;
24 24
25 // BluetoothTestBase overrides 25 // BluetoothTestBase overrides
26 bool PlatformSupportsLowEnergy() override; 26 bool PlatformSupportsLowEnergy() override;
27 void InitWithDefaultAdapter() override; 27 void InitWithDefaultAdapter() override;
28 void InitWithoutDefaultAdapter() override; 28 void InitWithoutDefaultAdapter() override;
29 void InitWithFakeAdapter() override; 29 void InitWithFakeAdapter() override;
30 bool DenyPermission() override; 30 bool DenyPermission() override;
31 void StartLowEnergyDiscoverySession() override;
32 BluetoothDevice* DiscoverLowEnergyDevice(int device_ordinal) override;
31 33
32 private: 34 private:
33 scoped_refptr<base::TestSimpleTaskRunner> ui_task_runner_; 35 scoped_refptr<base::TestSimpleTaskRunner> ui_task_runner_;
34 scoped_refptr<base::TestSimpleTaskRunner> bluetooth_task_runner_; 36 scoped_refptr<base::TestSimpleTaskRunner> bluetooth_task_runner_;
35 BluetoothAdapterWin* adapter_win_; 37 BluetoothAdapterWin* adapter_win_;
36 38
37 win::BluetoothClassicWrapperFake* fake_bt_classic_wrapper_; 39 win::BluetoothClassicWrapperFake* fake_bt_classic_wrapper_;
38 win::BluetoothLowEnergyWrapperFake* fake_bt_le_wrapper_; 40 win::BluetoothLowEnergyWrapperFake* fake_bt_le_wrapper_;
39 41
40 void AdapterInitCallback(); 42 void AdapterInitCallback();
41 }; 43 };
42 44
43 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). 45 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).
44 typedef BluetoothTestWin BluetoothTest; 46 typedef BluetoothTestWin BluetoothTest;
45 47
46 } // namespace device 48 } // namespace device
47 49
48 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_ 50 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_WIN_H_
OLDNEW
« no previous file with comments | « device/bluetooth/test/bluetooth_test.h ('k') | device/bluetooth/test/bluetooth_test_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698