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

Commit 708056a3 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add CheckFlagsRule to tests with `@RequiresFlags[Enabled|Disabled]`" into main

parents fc473477 a32d3d2f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -36,6 +36,8 @@ import android.media.cts.MediaProjectionRule;
import android.os.UserHandle;
import android.platform.test.annotations.RequiresFlagsDisabled;
import android.platform.test.annotations.RequiresFlagsEnabled;
import android.platform.test.flag.junit.CheckFlagsRule;
import android.platform.test.flag.junit.DeviceFlagsValueProvider;
import android.telecom.TelecomManager;
import android.telephony.TelephonyCallback;
import android.telephony.TelephonyManager;
@@ -75,6 +77,9 @@ public class MediaProjectionStoppingTest {
    private static final String STOP_DIALOG_TITLE_RES_ID = "android:id/alertTitle";
    private static final String STOP_DIALOG_CLOSE_BUTTON_RES_ID = "android:id/button2";

    @Rule
    public final CheckFlagsRule mCheckFlagsRule = DeviceFlagsValueProvider.createCheckFlagsRule();

    @Rule public MediaProjectionRule mMediaProjectionRule = new MediaProjectionRule();

    private Context mContext;