Lines Matching refs:t
57 func _testAidl(t *testing.T, bp string, customizers ...android.FixturePreparer) android.FixturePrep…
58 t.Helper()
178 func testAidl(t *testing.T, bp string, customizers ...android.FixturePreparer) (*android.TestContex…
179 t.Helper()
180 preparer := _testAidl(t, bp, customizers...)
181 result := preparer.RunTest(t)
185 func testAidlError(t *testing.T, pattern, bp string, customizers ...android.FixturePreparer) {
186 t.Helper()
187 preparer := _testAidl(t, bp, customizers...)
190 RunTest(t)
194 func assertModulesExists(t *testing.T, ctx *android.TestContext, names ...string) {
195 t.Helper()
209 …t.Errorf("expected modules(%v) not found. all modules: %v", missing, android.SortedStringKeys(allM…
213 func assertContains(t *testing.T, actual, expected string) {
214 t.Helper()
216 t.Errorf("%q is not found in %q.", expected, actual)
220 func assertListContains(t *testing.T, actual []string, expected string) {
221 t.Helper()
227 t.Errorf("%q is not found in %v.", expected, actual)
231 func TestVintfWithoutVersionInRelease(t *testing.T) {
246 testAidlError(t, expectedError, vintfWithoutVersionBp, setReleaseEnv())
248 ctx, _ := testAidl(t, vintfWithoutVersionBp)
249 …assertModulesExists(t, ctx, "foo-V1-java", "foo-V1-rust", "foo-V1-cpp", "foo-V1-ndk", "foo-V1-ndk_…
253 func TestUnstableVersionUsageInRelease(t *testing.T) {
270 …testAidlError(t, expectedError, unstableVersionUsageInJavaBp, setReleaseEnv(), withFiles(map[strin…
274 testAidl(t, unstableVersionUsageInJavaBp, withFiles(map[string][]byte{
294 testAidl(t, stableVersionUsageInJavaBp, setReleaseEnv(), withFiles(map[string][]byte{
298 testAidl(t, stableVersionUsageInJavaBp, withFiles(map[string][]byte{
304 func TestNonVersionedModuleUsageInRelease(t *testing.T) {
319 testAidlError(t, expectedError, nonVersionedModuleUsageInJavaBp, setReleaseEnv())
320 testAidl(t, nonVersionedModuleUsageInJavaBp)
336 testAidl(t, nonVersionedUnstableModuleUsageInJavaBp, setReleaseEnv())
337 testAidl(t, nonVersionedUnstableModuleUsageInJavaBp)
340 func TestImportInRelease(t *testing.T) {
360 testAidl(t, importInRelease, setReleaseEnv(), withFiles(map[string][]byte{
368 func TestUnstableVersionedModuleUsageInRelease(t *testing.T) {