Skip to content

Commit 3377b35

Browse files
brettchabotcopybara-androidxtest
authored andcommitted
Include ExperimentalTestApi in public api diff checks.
The intent is to facilitate closer review of ExperimentalTestApis. PiperOrigin-RevId: 628214003
1 parent f3182f5 commit 3377b35

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed

espresso/core/java/androidx/test/espresso/api/current_public.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ package androidx.test.espresso {
7676
method public static void setIdlingResourceTimeout(long, java.util.concurrent.TimeUnit!);
7777
method public static void setMasterPolicyTimeout(long, java.util.concurrent.TimeUnit!);
7878
method public static void setMasterPolicyTimeoutWhenDebuggerAttached(boolean);
79+
method @androidx.test.annotation.ExperimentalTestApi public static void unsafeMakeIdlingResourceErrorPolicyWarning();
80+
method @androidx.test.annotation.ExperimentalTestApi public static void unsafeMakeMasterPolicyWarning();
7981
}
8082

8183
public final class IdlingPolicy {
@@ -719,6 +721,7 @@ package androidx.test.espresso.matcher {
719721
method public static org.hamcrest.Matcher<android.view.View!>! isRoot();
720722
method public static org.hamcrest.Matcher<android.view.View!>! isSelected();
721723
method public static org.hamcrest.Matcher<android.view.View!>! supportsInputMethods();
724+
method @androidx.test.annotation.ExperimentalTestApi public static org.hamcrest.Matcher<android.view.View!>! thatMatchesFirst(org.hamcrest.Matcher<android.view.View!>!);
722725
method public static org.hamcrest.Matcher<android.view.View!>! withAlpha(float);
723726
method public static org.hamcrest.Matcher<android.view.View!>! withChild(org.hamcrest.Matcher<android.view.View!>!);
724727
method public static org.hamcrest.Matcher<android.view.View!>! withClassName(org.hamcrest.Matcher<java.lang.String!>!);

services/storage/java/androidx/test/services/storage/api/current_public.txt

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,83 @@ package androidx.test.services.storage {
1616
method public java.io.OutputStream! openOutputFile(String, boolean) throws java.io.FileNotFoundException;
1717
}
1818

19+
@androidx.test.annotation.ExperimentalTestApi public final class TestStorageConstants {
20+
field public static final String INTERNAL_USE_PROVIDER_AUTHORITY = "androidx.test.services.storage._internal_use_files";
21+
field public static final String ON_DEVICE_FIXTURE_SCRIPTS = "googletest/fixture_scripts/";
22+
field public static final String ON_DEVICE_PATH_INTERNAL_USE = "googletest/internal_use/";
23+
field public static final String ON_DEVICE_PATH_ROOT = "googletest/";
24+
field public static final String ON_DEVICE_PATH_TEST_OUTPUT = "googletest/test_outputfiles/";
25+
field public static final String ON_DEVICE_PATH_TEST_PROPERTIES = "googletest/test_exportproperties/";
26+
field public static final String ON_DEVICE_TEST_RUNFILES = "googletest/test_runfiles/";
27+
field public static final String OUTPUT_PROPERTIES_PROVIDER_AUTHORITY = "androidx.test.services.storage.properties";
28+
field public static final String TEST_ARGS_FILE_NAME = "test_args.dat";
29+
field public static final String TEST_ARGS_PROVIDER_AUTHORITY = "androidx.test.services.storage.testargs";
30+
field public static final String TEST_OUTPUT_PROVIDER_AUTHORITY = "androidx.test.services.storage.outputfiles";
31+
field public static final String TEST_RUNFILES_PROVIDER_AUTHORITY = "androidx.test.services.storage.runfiles";
32+
}
33+
34+
@androidx.test.annotation.ExperimentalTestApi public class TestStorageException extends java.lang.RuntimeException {
35+
ctor public TestStorageException(String!);
36+
ctor public TestStorageException(String!, Throwable!);
37+
}
38+
39+
}
40+
41+
package androidx.test.services.storage.file {
42+
43+
@androidx.test.annotation.ExperimentalTestApi public final class HostedFile {
44+
method public static android.net.Uri! buildUri(androidx.test.services.storage.file.HostedFile.FileHost!, String!);
45+
method public static java.io.File! getInputRootDirectory(android.content.Context!);
46+
method public static java.io.File! getOutputRootDirectory(android.content.Context!);
47+
}
48+
49+
public enum HostedFile.FileHost {
50+
method public String! getAuthority();
51+
method public boolean isWritable();
52+
enum_constant public static final androidx.test.services.storage.file.HostedFile.FileHost EXPORT_PROPERTIES;
53+
enum_constant public static final androidx.test.services.storage.file.HostedFile.FileHost INTERNAL_USE_ONLY;
54+
enum_constant public static final androidx.test.services.storage.file.HostedFile.FileHost OUTPUT;
55+
enum_constant public static final androidx.test.services.storage.file.HostedFile.FileHost TEST_FILE;
56+
}
57+
58+
public enum HostedFile.FileType {
59+
method public static androidx.test.services.storage.file.HostedFile.FileType! fromTypeCode(String!);
60+
method public String! getTypeCode();
61+
enum_constant public static final androidx.test.services.storage.file.HostedFile.FileType DIRECTORY;
62+
enum_constant public static final androidx.test.services.storage.file.HostedFile.FileType FILE;
63+
}
64+
65+
public enum HostedFile.HostedFileColumn {
66+
method public int getAndroidType();
67+
method public String! getColumnName();
68+
method public static String![]! getColumnNames();
69+
method public Class<?>! getColumnType();
70+
method public int getPosition();
71+
enum_constant public static final androidx.test.services.storage.file.HostedFile.HostedFileColumn DATA;
72+
enum_constant public static final androidx.test.services.storage.file.HostedFile.HostedFileColumn DISPLAY_NAME;
73+
enum_constant public static final androidx.test.services.storage.file.HostedFile.HostedFileColumn NAME;
74+
enum_constant public static final androidx.test.services.storage.file.HostedFile.HostedFileColumn SIZE;
75+
enum_constant public static final androidx.test.services.storage.file.HostedFile.HostedFileColumn SIZE_2;
76+
enum_constant public static final androidx.test.services.storage.file.HostedFile.HostedFileColumn TYPE;
77+
}
78+
79+
@androidx.test.annotation.ExperimentalTestApi public final class PropertyFile {
80+
method public static android.net.Uri! buildUri(androidx.test.services.storage.file.PropertyFile.Authority!);
81+
method public static android.net.Uri! buildUri(androidx.test.services.storage.file.PropertyFile.Authority!, String!);
82+
}
83+
84+
public enum PropertyFile.Authority {
85+
method public String! getAuthority();
86+
enum_constant public static final androidx.test.services.storage.file.PropertyFile.Authority TEST_ARGS;
87+
}
88+
89+
public enum PropertyFile.Column {
90+
method public String! getName();
91+
method public static String![]! getNames();
92+
method public int getPosition();
93+
enum_constant public static final androidx.test.services.storage.file.PropertyFile.Column NAME;
94+
enum_constant public static final androidx.test.services.storage.file.PropertyFile.Column VALUE;
95+
}
96+
1997
}
2098

0 commit comments

Comments
 (0)