summaryrefslogtreecommitdiff
path: root/java/tests
diff options
context:
space:
mode:
author Matt Casey <mrcasey@google.com> 2023-02-16 14:10:31 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2023-02-16 14:10:31 +0000
commitc4810d3f07aa98c063f715e2f05f2e9deb8c267a (patch)
treefa0eec24b49f0ec2d9c526c01b1a3bb620f6f24e /java/tests
parentb66f9f08e0733527d714c0c557367f8668710eed (diff)
parent8bbaf3def25fb233400d70aa50454f0581021cbd (diff)
[intentresolver] Reselection -> modify share am: 8bbaf3def2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/IntentResolver/+/21449426 Change-Id: I302f36eb6cd5a488c624e4383389f5b1f1ff04fd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'java/tests')
-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());