You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make API changes as discussed in review:
- Make PlatformTestStorage public
- Make the default implementation FileTestStorage instead of a no-op
- Modify FileTestStorage implementation to:
- read input files from disk instead of assets
- remove support for reading from absolute paths, as that contradicts the PlatformTestStorage spec
- Add more documentation on usage across build environments
- Make TestStorage a restricted-to-androidx.test usage API
PiperOrigin-RevId: 627524599
@RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP) public final class FileTestStorage implements androidx.test.platform.io.PlatformTestStorage {
219
+
ctor public FileTestStorage();
220
+
method public void addOutputProperties(java.util.Map<java.lang.String!,java.io.Serializable!>!);
221
+
method public String! getInputArg(String!);
222
+
method public java.util.Map<java.lang.String!,java.lang.String!>! getInputArgs();
223
+
method public android.net.Uri! getInputFileUri(String);
224
+
method public android.net.Uri! getOutputFileUri(String);
225
+
method public java.util.Map<java.lang.String!,java.io.Serializable!>! getOutputProperties();
226
+
method public boolean isTestStorageFilePath(String);
227
+
method public java.io.InputStream! openInputFile(String!) throws java.io.FileNotFoundException;
228
+
method public java.io.OutputStream! openOutputFile(String!) throws java.io.FileNotFoundException;
229
+
method public java.io.OutputStream! openOutputFile(String!, boolean) throws java.io.FileNotFoundException;
230
+
}
231
+
232
+
public interface PlatformTestStorage {
233
+
method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP) public default java.io.InputStream! openInternalInputFile(String!) throws java.io.FileNotFoundException;
234
+
method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP) public default java.io.OutputStream! openInternalOutputFile(String!) throws java.io.FileNotFoundException;
235
+
}
236
+
237
+
}
238
+
216
239
package androidx.test.platform.tracing {
217
240
218
241
@RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP) public interface Tracer {
0 commit comments