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

Commit 68206f35 authored by Lucas Silva's avatar Lucas Silva
Browse files

Add comments to interaction handler tests

Follow-up from ag/27811558

Test: NA
Flag: EXEMPT comments only
Bug: 345741071
Change-Id: I3888eb8030b7bec48e34cc994fc6c8de62f4390d
parent 2f5a47ab
Loading
Loading
Loading
Loading
+14 −12
Original line number Diff line number Diff line
@@ -64,14 +64,15 @@ class SmartspaceInteractionHandlerTest : SysuiTestCase() {

        underTest.onInteraction(view, testIntent, testResponse)

        // Verify that we pass in a non-null animation controller
        verify(activityStarter)
            .startPendingIntentWithoutDismissing(
                eq(testIntent),
                eq(false),
                isNull(),
                notNull(),
                refEq(fillInIntent),
                refEq(activityOptions.toBundle()),
                /* intent = */ eq(testIntent),
                /* dismissShade = */ eq(false),
                /* intentSentUiThreadCallback = */ isNull(),
                /* animationController = */ notNull(),
                /* fillInIntent = */ refEq(fillInIntent),
                /* extraOptions = */ refEq(activityOptions.toBundle()),
            )
    }

@@ -84,14 +85,15 @@ class SmartspaceInteractionHandlerTest : SysuiTestCase() {

        underTest.onInteraction(view, testIntent, testResponse)

        // Verify null is used as the animation controller
        verify(activityStarter)
            .startPendingIntentWithoutDismissing(
                eq(testIntent),
                eq(false),
                isNull(),
                isNull(),
                refEq(fillInIntent),
                refEq(activityOptions.toBundle()),
                /* intent = */ eq(testIntent),
                /* dismissShade = */ eq(false),
                /* intentSentUiThreadCallback = */ isNull(),
                /* animationController = */ isNull(),
                /* fillInIntent = */ refEq(fillInIntent),
                /* extraOptions = */ refEq(activityOptions.toBundle()),
            )
    }
}
+14 −12
Original line number Diff line number Diff line
@@ -63,14 +63,15 @@ class WidgetInteractionHandlerTest : SysuiTestCase() {

        underTest.onInteraction(view, testIntent, testResponse)

        // Verify that we pass in a non-null animation controller
        verify(activityStarter)
            .startPendingIntentMaybeDismissingKeyguard(
                eq(testIntent),
                eq(false),
                isNull(),
                notNull(),
                refEq(fillInIntent),
                refEq(activityOptions.toBundle()),
                /* intent = */ eq(testIntent),
                /* dismissShade = */ eq(false),
                /* intentSentUiThreadCallback = */ isNull(),
                /* animationController = */ notNull(),
                /* fillInIntent = */ refEq(fillInIntent),
                /* extraOptions = */ refEq(activityOptions.toBundle()),
            )
    }

@@ -83,14 +84,15 @@ class WidgetInteractionHandlerTest : SysuiTestCase() {

        underTest.onInteraction(view, testIntent, testResponse)

        // Verify null is used as the animation controller
        verify(activityStarter)
            .startPendingIntentMaybeDismissingKeyguard(
                eq(testIntent),
                eq(false),
                isNull(),
                isNull(),
                refEq(fillInIntent),
                refEq(activityOptions.toBundle()),
                /* intent = */ eq(testIntent),
                /* dismissShade = */ eq(false),
                /* intentSentUiThreadCallback = */ isNull(),
                /* animationController = */ isNull(),
                /* fillInIntent = */ refEq(fillInIntent),
                /* extraOptions = */ refEq(activityOptions.toBundle()),
            )
    }
}