Merge "Remove flake error for AdvancedBluetoothDetailsHeaderControllerTest" into sc-dev am: 032b2b20bc
am: ee96a0d778
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14782146 Change-Id: I3f82f02c89436321ec85e6f4f9992785bf0c9449
This commit is contained in:
@@ -121,9 +121,6 @@ public class AdvancedBluetoothDetailsHeaderControllerTest {
|
|||||||
when(mBluetoothDevice.getMetadata(
|
when(mBluetoothDevice.getMetadata(
|
||||||
BluetoothDevice.METADATA_IS_UNTETHERED_HEADSET)).thenReturn(
|
BluetoothDevice.METADATA_IS_UNTETHERED_HEADSET)).thenReturn(
|
||||||
String.valueOf(false).getBytes());
|
String.valueOf(false).getBytes());
|
||||||
when(mBluetoothDevice.getMetadata(
|
|
||||||
BluetoothDevice.METADATA_MAIN_BATTERY)).thenReturn(
|
|
||||||
String.valueOf(BATTERY_LEVEL_MAIN).getBytes());
|
|
||||||
when(mCachedDevice.isConnected()).thenReturn(true);
|
when(mCachedDevice.isConnected()).thenReturn(true);
|
||||||
|
|
||||||
mController.refresh();
|
mController.refresh();
|
||||||
@@ -134,6 +131,7 @@ public class AdvancedBluetoothDetailsHeaderControllerTest {
|
|||||||
View.GONE);
|
View.GONE);
|
||||||
assertThat(mLayoutPreference.findViewById(R.id.layout_middle).getVisibility()).isEqualTo(
|
assertThat(mLayoutPreference.findViewById(R.id.layout_middle).getVisibility()).isEqualTo(
|
||||||
View.VISIBLE);
|
View.VISIBLE);
|
||||||
|
// TODO (b/188954766) : clarify settings design
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Reference in New Issue
Block a user