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-15 20:31:36 +0000
commit8bbaf3def25fb233400d70aa50454f0581021cbd (patch)
tree8b763399161018aface5524c8cc99bbd5a65d540 /java/tests
parenta1355cd0ff84d0e734e001a261e7751f2c4d5c95 (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 Merged-In: I2b8a68ed1e3fe1e6d4bdb1a89f155afdf377159a (cherry picked from commit 6333997c2c04f2e71c8fefad56a651e88bd25922)
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());