[Sheriff] Disable BluetoothAdapterMacTest.IOBluetoothPrivateAPIs on Mac
Bug: 1344137
Change-Id: I9d62c6f55299f6797df189dc9ed68bbde58d8978
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3758218
Commit-Queue: Ian Clelland <iclelland@chromium.org>
Reviewed-by: Christos Froussios <cfroussios@chromium.org>
Owners-Override: Christos Froussios <cfroussios@chromium.org>
Reviewed-by: Ian Clelland <iclelland@chromium.org>
Auto-Submit: Christos Froussios <cfroussios@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1023712}
diff --git a/device/bluetooth/bluetooth_adapter_mac_unittest.mm b/device/bluetooth/bluetooth_adapter_mac_unittest.mm
index b236108d..bceca7a1 100644
--- a/device/bluetooth/bluetooth_adapter_mac_unittest.mm
+++ b/device/bluetooth/bluetooth_adapter_mac_unittest.mm
@@ -234,7 +234,14 @@
// Test if private IOBluetooth APIs are callable on all supported macOS
// versions.
-TEST_F(BluetoothAdapterMacTest, IOBluetoothPrivateAPIs) {
+// TODO(crbug.com/1344137): This test is flaky on all Mac builders and timing
+// out frequently on Mac11.
+#if BUILDFLAG(IS_MAC)
+#define MAYBE_IOBluetoothPrivateAPIs DISABLED_IOBluetoothPrivateAPIs
+#else
+#define MAYBE_IOBluetoothPrivateAPIs IOBluetoothPrivateAPIs
+#endif
+TEST_F(BluetoothAdapterMacTest, MAYBE_IOBluetoothPrivateAPIs) {
// Obtain current power state, toggle it, and reset it to it's original value.
int previous_state = IOBluetoothPreferenceGetControllerPowerState();
IOBluetoothPreferenceSetControllerPowerState(!previous_state);