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

Commit f43c3308 authored by Lucas Silva's avatar Lucas Silva Committed by Android (Google) Code Review
Browse files

Merge "Add comments to interaction handler tests" into main

parents b86d3349 68206f35
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()),
            )
    }
}