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

Commit 976ca472 authored by Wale Ogunwale's avatar Wale Ogunwale
Browse files

Remove createActivityTaskManagerService and setupActivityTaskManagerService

They are no longer needed, so cleaning up the test files some.

Test: Existing test pass.
Change-Id: I09d6ce2c76ef05861c32be3691db441e3418c695
parent d46c3e29
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -57,11 +57,6 @@ import org.junit.Test;
@Presubmit
public class ActivityDisplayTests extends ActivityTestsBase {

    @Before
    public void setUp() throws Exception {
        setupActivityTaskManagerService();
    }

    @Test
    public void testLastFocusedStackIsUpdatedWhenMovingStack() {
        // Create a stack at bottom.
+0 −2
Original line number Diff line number Diff line
@@ -70,8 +70,6 @@ public class ActivityMetricsLaunchObserverTests extends ActivityTestsBase {

    @Before
    public void setUpAMLO() throws Exception {
        setupActivityTaskManagerService();

        mLaunchObserver = mock(ActivityMetricsLaunchObserver.class);

        // ActivityStackSupervisor always creates its own instance of ActivityMetricsLogger.
+0 −1
Original line number Diff line number Diff line
@@ -69,7 +69,6 @@ public class ActivityRecordTests extends ActivityTestsBase {

    @Before
    public void setUp() throws Exception {
        setupActivityTaskManagerService();
        mStack = (TestActivityStack) new StackBuilder(mRootActivityContainer).build();
        mTask = mStack.getChildAt(0);
        mActivity = mTask.getTopActivity();
+0 −1
Original line number Diff line number Diff line
@@ -64,7 +64,6 @@ public class ActivityStackSupervisorTests extends ActivityTestsBase {

    @Before
    public void setUp() throws Exception {
        setupActivityTaskManagerService();
        mFullscreenStack = mRootActivityContainer.getDefaultDisplay().createStack(
                WINDOWING_MODE_FULLSCREEN, ACTIVITY_TYPE_STANDARD, true /* onTop */);
    }
+0 −1
Original line number Diff line number Diff line
@@ -75,7 +75,6 @@ public class ActivityStackTests extends ActivityTestsBase {

    @Before
    public void setUp() throws Exception {
        setupActivityTaskManagerService();
        mDefaultDisplay = mRootActivityContainer.getDefaultDisplay();
        mStack = spy(mDefaultDisplay.createStack(WINDOWING_MODE_UNDEFINED, ACTIVITY_TYPE_STANDARD,
                true /* onTop */));
Loading