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

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

Issue 1538173003: Implementing GATT connection/disconnect on OS X. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing chromium.gyp_env Created 4 years, 11 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_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 "base/test/test_simple_task_runner.h" 8 #include "base/test/test_simple_task_runner.h"
9 #include "device/bluetooth/test/bluetooth_test.h" 9 #include "device/bluetooth/test/bluetooth_test.h"
10 10
(...skipping 12 matching lines...) Expand all
23 23
24 // Test overrides: 24 // Test overrides:
25 void SetUp() override; 25 void SetUp() 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 BluetoothDevice* DiscoverLowEnergyDevice(int device_ordinal) override; 32 BluetoothDevice* DiscoverLowEnergyDevice(int device_ordinal) override;
33 void SimulateGattConnection(BluetoothDevice* device) override;
33 34
34 protected: 35 protected:
35 // Utility function for finding CBUUIDs with relatively nice SHA256 hashes. 36 // Utility function for finding CBUUIDs with relatively nice SHA256 hashes.
36 std::string FindCBUUIDForHashTarget(); 37 std::string FindCBUUIDForHashTarget();
37 38
38 BluetoothAdapterMac* adapter_mac_ = NULL; 39 BluetoothAdapterMac* adapter_mac_ = NULL;
39 }; 40 };
40 41
41 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName). 42 // Defines common test fixture name. Use TEST_F(BluetoothTest, YourTestName).
42 typedef BluetoothTestMac BluetoothTest; 43 typedef BluetoothTestMac BluetoothTest;
43 44
44 } // namespace device 45 } // namespace device
45 46
46 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_ 47 #endif // DEVICE_BLUETOOTH_TEST_BLUETOOTH_TEST_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698