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

Unified Diff: device/bluetooth/bluetooth_adapter_mac_unittest.mm

Issue 1228863002: Runtime checks so that CoreBluetooth only used on >= 10.10 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@timeinfo
Patch Set: CHECK->DCHECK 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/bluetooth_adapter_mac.mm ('k') | device/bluetooth/bluetooth_low_energy_device_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_adapter_mac_unittest.mm
diff --git a/device/bluetooth/bluetooth_adapter_mac_unittest.mm b/device/bluetooth/bluetooth_adapter_mac_unittest.mm
index 3e7ab6832ede2641ba91284e7597cdc009d3560b..ee01cd67b30c8fd29274a4b44f4500e2ed9f6be0 100644
--- a/device/bluetooth/bluetooth_adapter_mac_unittest.mm
+++ b/device/bluetooth/bluetooth_adapter_mac_unittest.mm
@@ -25,9 +25,8 @@ class BluetoothAdapterMacTest : public testing::Test {
// Helper methods for setup and access to BluetoothAdapterMacTest's members.
bool SetMockCentralManager() {
- Class aClass = NSClassFromString(@"CBCentralManager");
- if (aClass == nil) {
- LOG(WARNING) << "CoreBluetooth not available, skipping unit test.";
+ if (!BluetoothAdapterMac::IsLowEnergyAvailable()) {
+ LOG(WARNING) << "Low Energy Bluetooth unavailable, skipping unit test.";
return false;
}
mock_central_manager_ = [[MockCentralManager alloc] init];
« no previous file with comments | « device/bluetooth/bluetooth_adapter_mac.mm ('k') | device/bluetooth/bluetooth_low_energy_device_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698