Commit b2308cc5 authored by Nico Weber's avatar Nico Weber Committed by Commit Bot

Remaining changes to build all code in src.git with -Wimplicit-fallthrough.

Fixes a bug where device ordinal 5 would fall through to device ordinal 6
after resetting the name, cf
https://codereview.chromium.org/2440043002/diff/120001/device/bluetooth/test/bluetooth_test_bluez.cc

This CL was uploaded by git cl split.

R=ortuno@chromium.org

Bug: 177475
Change-Id: I93fd60b42f634c4b84c464452861f2cf3aa32f37
Reviewed-on: https://chromium-review.googlesource.com/891502
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: default avatarGiovanni Ortuño Urquidi <ortuno@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532871}
parent 088743f4
...@@ -148,6 +148,7 @@ BluetoothDevice* BluetoothTestBlueZ::SimulateLowEnergyDevice( ...@@ -148,6 +148,7 @@ BluetoothDevice* BluetoothTestBlueZ::SimulateLowEnergyDevice(
break; break;
case 5: case 5:
device_name = base::nullopt; device_name = base::nullopt;
break;
case 6: case 6:
device_address = kTestDeviceAddress2; device_address = kTestDeviceAddress2;
device_type = BLUETOOTH_TRANSPORT_DUAL; device_type = BLUETOOTH_TRANSPORT_DUAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment