Loading tests/src/com/android/launcher3/ui/TaplWorkProfileTest.java +8 −1 Original line number Diff line number Diff line Loading @@ -28,10 +28,13 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assume.assumeTrue; import android.platform.test.rule.ScreenRecordRule; import android.util.Log; import android.view.View; import androidx.recyclerview.widget.RecyclerView.ViewHolder; import androidx.test.ext.junit.runners.AndroidJUnit4; import androidx.test.filters.LargeTest; import com.android.launcher3.LauncherPrefs; import com.android.launcher3.R; Loading @@ -47,11 +50,14 @@ import com.android.launcher3.util.rule.TestStabilityRule; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import java.io.IOException; import java.util.Objects; import java.util.function.Predicate; @LargeTest @RunWith(AndroidJUnit4.class) public class TaplWorkProfileTest extends AbstractLauncherUiTest { private static final int WORK_PAGE = ActivityAllAppsContainerView.AdapterHolder.WORK; Loading @@ -64,6 +70,7 @@ public class TaplWorkProfileTest extends AbstractLauncherUiTest { @Override public void setUp() throws Exception { super.setUp(); initialize(this); String output = mDevice.executeShellCommand( "pm create-user --profileOf 0 --managed TestProfile"); Loading Loading @@ -139,7 +146,7 @@ public class TaplWorkProfileTest extends AbstractLauncherUiTest { // Staging; will be promoted to presubmit if stable @TestStabilityRule.Stability(flavors = LOCAL | PLATFORM_POSTSUBMIT) @ScreenRecordRule.ScreenRecord @Test public void toggleWorks() { assumeTrue(mWorkProfileSetupSuccessful); Loading Loading
tests/src/com/android/launcher3/ui/TaplWorkProfileTest.java +8 −1 Original line number Diff line number Diff line Loading @@ -28,10 +28,13 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assume.assumeTrue; import android.platform.test.rule.ScreenRecordRule; import android.util.Log; import android.view.View; import androidx.recyclerview.widget.RecyclerView.ViewHolder; import androidx.test.ext.junit.runners.AndroidJUnit4; import androidx.test.filters.LargeTest; import com.android.launcher3.LauncherPrefs; import com.android.launcher3.R; Loading @@ -47,11 +50,14 @@ import com.android.launcher3.util.rule.TestStabilityRule; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import java.io.IOException; import java.util.Objects; import java.util.function.Predicate; @LargeTest @RunWith(AndroidJUnit4.class) public class TaplWorkProfileTest extends AbstractLauncherUiTest { private static final int WORK_PAGE = ActivityAllAppsContainerView.AdapterHolder.WORK; Loading @@ -64,6 +70,7 @@ public class TaplWorkProfileTest extends AbstractLauncherUiTest { @Override public void setUp() throws Exception { super.setUp(); initialize(this); String output = mDevice.executeShellCommand( "pm create-user --profileOf 0 --managed TestProfile"); Loading Loading @@ -139,7 +146,7 @@ public class TaplWorkProfileTest extends AbstractLauncherUiTest { // Staging; will be promoted to presubmit if stable @TestStabilityRule.Stability(flavors = LOCAL | PLATFORM_POSTSUBMIT) @ScreenRecordRule.ScreenRecord @Test public void toggleWorks() { assumeTrue(mWorkProfileSetupSuccessful); Loading