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

Commit b09ad7c1 authored by Pragya Bajoria's avatar Pragya Bajoria
Browse files

Add SetFlagsRule to FreeformTaskListenerTests since the current flagging...

Add SetFlagsRule to FreeformTaskListenerTests since the current flagging system is not working in this test.

Bug: 376022969
Flag: EXEMPT (updates only tests)
Change-Id: Icc480c1fc33141904f3354f7c0bc70531ddc3de2
parent cd4bc44f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import static org.mockito.Mockito.when;

import android.app.ActivityManager;
import android.platform.test.annotations.EnableFlags;
import android.platform.test.flag.junit.SetFlagsRule;
import android.view.SurfaceControl;

import androidx.test.ext.junit.runners.AndroidJUnit4;
@@ -49,6 +50,7 @@ import com.android.wm.shell.windowdecor.WindowDecorViewModel;

import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
@@ -65,6 +67,9 @@ import java.util.Optional;
@RunWith(AndroidJUnit4.class)
public final class FreeformTaskListenerTests extends ShellTestCase {

    @Rule
    public final SetFlagsRule setFlagsRule = new SetFlagsRule();

    @Mock
    private ShellTaskOrganizer mTaskOrganizer;
    @Mock