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

Commit d59304db authored by Merissa Mitchell's avatar Merissa Mitchell Committed by Android (Google) Code Review
Browse files

Merge "Disable Pip2 flag for PipTouchHandlerTest#instantiate_addInitCallback" into main

parents aec8597a 4e11a4c1
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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;
@@ -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;
@@ -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;
@@ -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());
    }