Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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()),
)
}
}
......@@ -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()),
)
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment