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

Commit 6ac2d6a3 authored by Tsung-Mao Fang's avatar Tsung-Mao Fang
Browse files

Fix a few tests

Test: Run SettingsLib tests
Fix: 206425424
Change-Id: I0f9c1040a191d90b2729ddc5318ae90f1ca20f00
parent 6763835a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ import org.robolectric.RobolectricTestRunner;
public final class ActionDisabledLearnMoreButtonLauncherTest {

    private static final int CONTEXT_USER_ID = -ENFORCEMENT_ADMIN_USER_ID;
    private static final UserHandle CONTEXT_USER = UserHandle.of(CONTEXT_USER_ID);
    private static final UserHandle CONTEXT_USER = new UserHandle(CONTEXT_USER_ID);

    @Rule
    public final MockitoRule mMockitoRule = MockitoJUnit.rule();
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ import org.robolectric.android.controller.ActivityController;
@RunWith(RobolectricTestRunner.class)
public class ManagedDeviceActionDisabledByAdminControllerTest {

    private static UserHandle MANAGED_USER = UserHandle.of(123);
    private static UserHandle MANAGED_USER = new UserHandle(123);
    private static final String RESTRICTION = UserManager.DISALLOW_ADJUST_VOLUME;
    private static final String EMPTY_URL = "";
    private static final String SUPPORT_TITLE_FOR_RESTRICTION = DISALLOW_ADJUST_VOLUME_TITLE;