summaryrefslogtreecommitdiff
path: root/java/tests/AndroidManifest.xml
diff options
context:
space:
mode:
author Andrey Epin <ayepin@google.com> 2023-05-05 12:06:26 -0700
committer Andrey Epin <ayepin@google.com> 2023-05-05 12:13:01 -0700
commit7e34b05b23683d154f8743fd1b4e64c3c165d46b (patch)
treeb412985fc7e38aacbb053dd823d286ef18a11cd4 /java/tests/AndroidManifest.xml
parentd572ef6c2ba73880edecd66c86835e78763d9400 (diff)
Add test content provider to mock uri mime types
Add a content provider that returns getType and getStreamTypes based on the URI query parameters. That allows us not to rely on the debug hook to override URI mime types, mock files with previes, and makes our integration tests more integral. Bug: 280237072 Test: tests themselves Change-Id: I70835439e8b8b41f4dc633f218d662c2bc42c3ae
Diffstat (limited to 'java/tests/AndroidManifest.xml')
-rw-r--r--java/tests/AndroidManifest.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/tests/AndroidManifest.xml b/java/tests/AndroidManifest.xml
index 306eccb9..05830c4c 100644
--- a/java/tests/AndroidManifest.xml
+++ b/java/tests/AndroidManifest.xml
@@ -29,6 +29,10 @@
<uses-library android:name="android.test.runner" />
<activity android:name="com.android.intentresolver.ChooserWrapperActivity" />
<activity android:name="com.android.intentresolver.ResolverWrapperActivity" />
+ <provider
+ android:authorities="com.android.intentresolver.tests"
+ android:name="com.android.intentresolver.TestContentProvider"
+ android:grantUriPermissions="true" />
</application>
<instrumentation android:name="android.testing.TestableInstrumentation"