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

Commit e29d6598 authored by Justin Weir's avatar Justin Weir
Browse files

Add CheckFlagsRule

Bug: 394977231
Test: presubmits are sufficient
Flag: EXEMPT test only change
Change-Id: Ifc6306b9adc999a51757eee247b84fd7ea2f046d
parent 41f92097
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -41,6 +41,8 @@ import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.graphics.Rect;
import android.platform.test.annotations.RequiresFlagsDisabled;
import android.platform.test.flag.junit.CheckFlagsRule;
import android.platform.test.flag.junit.DeviceFlagsValueProvider;
import android.platform.test.flag.junit.FlagsParameterization;
import android.testing.TestableLooper.RunWithLooper;
import android.view.View;
@@ -76,6 +78,7 @@ import com.android.systemui.user.domain.interactor.SelectedUserInteractor;
import com.google.common.util.concurrent.MoreExecutors;

import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
@@ -94,6 +97,9 @@ import java.util.concurrent.Executor;
@RunWithLooper(setAsMainLooper = true)
@SmallTest
public class NotificationShadeWindowControllerImplTest extends SysuiTestCase {
    @Rule public final CheckFlagsRule checkFlagsRule =
        DeviceFlagsValueProvider.createCheckFlagsRule();

    @Mock private ViewCaptureAwareWindowManager mWindowManager;
    @Mock private DozeParameters mDozeParameters;
    @Spy private final NotificationShadeWindowView mNotificationShadeWindowView = spy(