Fix ChooserActionFactoryTest
Fix: 297551329
Test: atest IntentResolverUnitTests:ChooserActionFactoryTest
Change-Id: I0241f840a3add9c433b312f440d5b12e9129ad30
diff --git a/java/tests/src/com/android/intentresolver/ChooserActionFactoryTest.kt b/java/tests/src/com/android/intentresolver/ChooserActionFactoryTest.kt
index 2d1ac4e..55a94eb 100644
--- a/java/tests/src/com/android/intentresolver/ChooserActionFactoryTest.kt
+++ b/java/tests/src/com/android/intentresolver/ChooserActionFactoryTest.kt
@@ -38,7 +38,6 @@
import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
import org.junit.Before
-import org.junit.Ignore
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.Mockito
@@ -78,7 +77,6 @@
context.unregisterReceiver(testReceiver)
}
- @Ignore("b/297551329")
@Test
fun testCreateCustomActions() {
val factory = createFactory()
@@ -104,7 +102,6 @@
assertThat(factory.modifyShareAction).isNull()
}
- @Ignore("b/297551329")
@Test
fun testModifyShareAction() {
val factory = createFactory(includeModifyShare = true)
@@ -192,7 +189,7 @@
private fun createFactory(includeModifyShare: Boolean = false): ChooserActionFactory {
val testPendingIntent =
- PendingIntent.getActivity(context, 0, Intent(testAction), PendingIntent.FLAG_IMMUTABLE)
+ PendingIntent.getBroadcast(context, 0, Intent(testAction), PendingIntent.FLAG_IMMUTABLE)
val targetIntent = Intent()
val action =
ChooserAction.Builder(