Loading libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/PipTouchHandlerTest.java +8 −0 Original line number Diff line number Diff line Loading @@ -16,12 +16,16 @@ package com.android.wm.shell.pip.phone; import static com.android.wm.shell.Flags.FLAG_ENABLE_PIP2; import static org.junit.Assert.assertEquals; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import android.graphics.Rect; import android.platform.test.annotations.DisableFlags; import android.platform.test.flag.junit.SetFlagsRule; import android.testing.AndroidTestingRunner; import android.testing.TestableLooper; import android.util.Size; Loading @@ -45,6 +49,7 @@ import com.android.wm.shell.pip.PipTransitionController; import com.android.wm.shell.sysui.ShellInit; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; Loading @@ -63,6 +68,8 @@ import java.util.Optional; @SmallTest @TestableLooper.RunWithLooper(setAsMainLooper = true) public class PipTouchHandlerTest extends ShellTestCase { @Rule public SetFlagsRule setFlagsRule = new SetFlagsRule(); private static final int INSET = 10; private static final int PIP_LENGTH = 100; Loading Loading @@ -150,6 +157,7 @@ public class PipTouchHandlerTest extends ShellTestCase { } @Test @DisableFlags(FLAG_ENABLE_PIP2) public void instantiate_addInitCallback() { verify(mShellInit, times(1)).addInitCallback(any(), any()); } Loading Loading
libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/PipTouchHandlerTest.java +8 −0 Original line number Diff line number Diff line Loading @@ -16,12 +16,16 @@ package com.android.wm.shell.pip.phone; import static com.android.wm.shell.Flags.FLAG_ENABLE_PIP2; import static org.junit.Assert.assertEquals; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import android.graphics.Rect; import android.platform.test.annotations.DisableFlags; import android.platform.test.flag.junit.SetFlagsRule; import android.testing.AndroidTestingRunner; import android.testing.TestableLooper; import android.util.Size; Loading @@ -45,6 +49,7 @@ import com.android.wm.shell.pip.PipTransitionController; import com.android.wm.shell.sysui.ShellInit; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; Loading @@ -63,6 +68,8 @@ import java.util.Optional; @SmallTest @TestableLooper.RunWithLooper(setAsMainLooper = true) public class PipTouchHandlerTest extends ShellTestCase { @Rule public SetFlagsRule setFlagsRule = new SetFlagsRule(); private static final int INSET = 10; private static final int PIP_LENGTH = 100; Loading Loading @@ -150,6 +157,7 @@ public class PipTouchHandlerTest extends ShellTestCase { } @Test @DisableFlags(FLAG_ENABLE_PIP2) public void instantiate_addInitCallback() { verify(mShellInit, times(1)).addInitCallback(any(), any()); } Loading