summaryrefslogtreecommitdiff
path: root/java/tests
diff options
context:
space:
mode:
author Matt Casey <mrcasey@google.com> 2023-02-05 04:03:56 +0000
committer Matt Casey <mrcasey@google.com> 2023-02-06 02:38:45 +0000
commit6333997c2c04f2e71c8fefad56a651e88bd25922 (patch)
treeed71e1585d4b2597b75b4cfa74b7b58c46418a9d /java/tests
parent9f5489d8213f4ff6259c43b076d9538db83180d0 (diff)
[intentresolver] Reselection -> modify share
Doesn't change the UI or logging in this change, just API and code naming. Bug: 267870268 Test: atest UnbundledChooserActivityTest Change-Id: I2b8a68ed1e3fe1e6d4bdb1a89f155afdf377159a
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());