Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b1393a2 authored by Haijie Hong's avatar Haijie Hong
Browse files

Fix AdvancedBluetoothDetailsHeaderControllerTest

Bug: 313014781
Test: atest AdvancedBluetoothDetailsHeaderControllerTest
Change-Id: I42cea3add9d61abeae339b3aa0ec7025ab238d89
parent dd2cc366
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -59,7 +59,6 @@ import org.robolectric.annotation.Config;
import java.util.HashSet;
import java.util.Set;

@Ignore("b/313014781")
@RunWith(RobolectricTestRunner.class)
@Config(shadows = {ShadowEntityHeaderController.class, ShadowDeviceConfig.class})
public class AdvancedBluetoothDetailsHeaderControllerTest {
@@ -386,6 +385,9 @@ public class AdvancedBluetoothDetailsHeaderControllerTest {
                .thenReturn("true".getBytes());
        Set<CachedBluetoothDevice> cacheBluetoothDevices = new HashSet<>();
        when(mCachedDevice.getMemberDevice()).thenReturn(cacheBluetoothDevices);
        when(mBluetoothAdapter.addOnMetadataChangedListener(
                mBluetoothDevice, mContext.getMainExecutor(), mController.mMetadataListener))
                .thenReturn(true);

        mController.onStart();