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

Unified Diff: device/bluetooth/test/bluetooth_test_mac.h

Issue 1246913006: Bringing 4 more BluetoothTest.* unit tests to Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scheibtest
Patch Set: CBUUID dyanamically used now Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/bluetooth/test/bluetooth_test_android.cc ('k') | device/bluetooth/test/bluetooth_test_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/test/bluetooth_test_mac.h
diff --git a/device/bluetooth/test/bluetooth_test_mac.h b/device/bluetooth/test/bluetooth_test_mac.h
index b6d15385ad33b33aacab8999c882cf7467bc8529..0e44ff9994357271b2bec724db848905e4410b70 100644
--- a/device/bluetooth/test/bluetooth_test_mac.h
+++ b/device/bluetooth/test/bluetooth_test_mac.h
@@ -15,6 +15,9 @@ class BluetoothAdapterMac;
// Mac implementation of BluetoothTestBase.
class BluetoothTestMac : public BluetoothTestBase {
public:
+ static const std::string kTestPeripheralUUID1;
+ static const std::string kTestPeripheralUUID2;
+
BluetoothTestMac();
~BluetoothTestMac() override;
@@ -22,11 +25,16 @@ class BluetoothTestMac : public BluetoothTestBase {
void SetUp() override;
// BluetoothTestBase overrides:
+ bool PlatformSupportsLowEnergy() override;
void InitWithDefaultAdapter() override;
void InitWithoutDefaultAdapter() override;
void InitWithFakeAdapter() override;
+ void DiscoverLowEnergyDevice(int device_ordinal) override;
protected:
+ // Utility function for finding CBUUIDs with relatively nice SHA256 hashes.
+ std::string FindCBUUIDForHashTarget();
+
BluetoothAdapterMac* adapter_mac_ = NULL;
};
« no previous file with comments | « device/bluetooth/test/bluetooth_test_android.cc ('k') | device/bluetooth/test/bluetooth_test_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698