summaryrefslogtreecommitdiff
path: root/java/tests/src
diff options
context:
space:
mode:
author Matt Casey <mrcasey@google.com> 2023-02-07 17:44:56 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-02-07 17:44:56 +0000
commit276b55adbeb06f273303ef83008a095911ffa8cb (patch)
tree7862acadba6fa3bc2e22dc8101d42e5933fc03eb /java/tests/src
parent4ab8f38d66a85f715debc5eb5352b8d909fa5175 (diff)
parent6333997c2c04f2e71c8fefad56a651e88bd25922 (diff)
Merge "[intentresolver] Reselection -> modify share"
Diffstat (limited to 'java/tests/src')
-rw-r--r--java/tests/src/com/android/intentresolver/UnbundledChooserActivityTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/java/tests/src/com/android/intentresolver/UnbundledChooserActivityTest.java b/java/tests/src/com/android/intentresolver/UnbundledChooserActivityTest.java
index c90f0b63..17fd5bd9 100644
--- a/java/tests/src/com/android/intentresolver/UnbundledChooserActivityTest.java
+++ b/java/tests/src/com/android/intentresolver/UnbundledChooserActivityTest.java
@@ -1998,7 +1998,7 @@ public class UnbundledChooserActivityTest {
}
@Test
- public void testLaunchWithPayloadReselection() throws InterruptedException {
+ public void testLaunchWithShareModification() throws InterruptedException {
ChooserActivityOverrideData.getInstance().featureFlagRepository =
new TestFeatureFlagRepository(
Collections.singletonMap(Flags.SHARESHEET_RESELECTION_ACTION, true));
@@ -2015,14 +2015,14 @@ public class UnbundledChooserActivityTest {
.thenReturn(resolvedComponentInfos);
Context testContext = InstrumentationRegistry.getInstrumentation().getContext();
- final String reselectionAction = "test-broadcast-receiver-action";
+ final String modifyShareAction = "test-broadcast-receiver-action";
Intent chooserIntent = Intent.createChooser(createSendTextIntent(), null);
chooserIntent.putExtra(
- Intent.EXTRA_CHOOSER_PAYLOAD_RESELECTION_ACTION,
+ Intent.EXTRA_CHOOSER_MODIFY_SHARE_ACTION,
PendingIntent.getBroadcast(
testContext,
123,
- new Intent(reselectionAction),
+ new Intent(modifyShareAction),
PendingIntent.FLAG_IMMUTABLE | PendingIntent.FLAG_ONE_SHOT));
// Start activity
mActivityRule.launchActivity(chooserIntent);
@@ -2035,7 +2035,7 @@ public class UnbundledChooserActivityTest {
broadcastInvoked.countDown();
}
};
- testContext.registerReceiver(testReceiver, new IntentFilter(reselectionAction));
+ testContext.registerReceiver(testReceiver, new IntentFilter(modifyShareAction));
try {
onView(withText(R.string.select_text)).perform(click());