• Home
  • Raw
  • Download

Lines Matching refs:t

28 func TestAndroidAppImport(t *testing.T) {
29 ctx, _ := testJava(t, `
45 t.Errorf("can't find dexpreopt outputs")
53 t.Errorf("Incorrect signing flags, expected: %q, got: %q", expected, signingFlag)
57 func TestAndroidAppImport_NoDexPreopt(t *testing.T) {
58 ctx, _ := testJava(t, `
74 t.Errorf("dexpreopt shouldn't have run.")
78 func TestAndroidAppImport_Presigned(t *testing.T) {
79 ctx, _ := testJava(t, `
95 t.Errorf("can't find dexpreopt outputs")
99 t.Errorf("signing rule shouldn't be included.")
102 t.Errorf("can't find aligning rule")
106 func TestAndroidAppImport_SigningLineage(t *testing.T) {
107 ctx, _ := testJava(t, `
131 t.Errorf("Incorrect certificates flags, expected: %q, got: %q", expected, certificatesFlag)
137 t.Errorf("Incorrect signing flags, expected: %q, got: %q", expected, signingFlag)
141 func TestAndroidAppImport_SigningLineageFilegroup(t *testing.T) {
142 ctx, _ := testJava(t, `
163 t.Errorf("Incorrect signing flags, expected: %q, got: %q", expected, signingFlag)
167 func TestAndroidAppImport_DefaultDevCert(t *testing.T) {
168 ctx, _ := testJava(t, `
184 t.Errorf("can't find dexpreopt outputs")
192 t.Errorf("Incorrect signing flags, expected: %q, got: %q", expected, signingFlag)
196 func TestAndroidAppImport_DpiVariants(t *testing.T) {
261 ).RunTestWithBp(t, bp)
267 t.Errorf("failed to extract the src apk path from %q", jniRuleCommand)
270 t.Errorf("wrong src apk, expected: %q got: %q", test.expected, matches[1])
275 func TestAndroidAppImport_Filename(t *testing.T) {
276 ctx, _ := testJava(t, `
308 t.Errorf("can't find output named %q - all outputs: %v", test.expected, variant.AllOutputs())
313 …actualValues := android.AndroidMkEntriesForTest(t, ctx, a)[0].EntryMap["LOCAL_INSTALLED_MODULE_STE…
315 t.Errorf("Incorrect LOCAL_INSTALLED_MODULE_STEM value '%s', expected '%s'",
321 func TestAndroidAppImport_ArchVariants(t *testing.T) {
388 ctx, _ := testJava(t, test.bp)
393 t.Error("module should have been disabled, but wasn't")
400 t.Errorf("failed to extract the src apk path from %q", jniRuleCommand)
403 t.Errorf("wrong src apk, expected: %q got: %q", test.expected, matches[1])
408 func TestAndroidAppImport_overridesDisabledAndroidApp(t *testing.T) {
409 ctx, _ := testJava(t, `
429 t.Errorf("prebuilt foo module is not active")
432 t.Errorf("prebuilt foo module is disabled")
436 func TestAndroidAppImport_frameworkRes(t *testing.T) {
437 ctx, _ := testJava(t, `
457 t.Errorf("prebuilt framework-res is not preprocessed")
462 …android.AssertPathRelativeToTopEquals(t, "prebuilt framework-res install location", expectedInstal…
464 entries := android.AndroidMkEntriesForTest(t, ctx, mod)[0]
478 t.Errorf("LOCAL_PATH incorrect len %d", len(actualPath))
480 t.Errorf("LOCAL_PATH mismatch, actual: %s, expected: %s", actualPath[0], expectedPath)
484 t.Errorf("LOCAL_PREBUILT_MODULE_FILE incorrect len %d", len(actualPrebuiltModuleFile))
486t.Errorf("LOCAL_PREBUILT_MODULE_FILE mismatch, actual: %s, expected: %s", actualPrebuiltModuleFile…
490t.Errorf("LOCAL_SOONG_RESOURCE_EXPORT_PACKAGE incorrect len %d", len(actualSoongResourceExportPack…
492t.Errorf("LOCAL_SOONG_RESOURCE_EXPORT_PACKAGE mismatch, actual: %s, expected: %s", actualSoongReso…
496 func TestAndroidTestImport(t *testing.T) {
497 ctx, _ := testJava(t, `
511 entries := android.AndroidMkEntriesForTest(t, ctx, test)[0]
515 t.Errorf("Unexpected module tags - expected: %q, actual: %q", expected, actual)
520 t.Errorf("Unexpected test data - expected: %q, actual: %q", expected, actual)
524 func TestAndroidTestImport_NoJinUncompressForPresigned(t *testing.T) {
525 ctx, _ := testJava(t, `
548 t.Errorf("Unexpected JNI uncompress rule command: " + jniRule)
554 t.Errorf("Unexpected JNI uncompress rule: " + jniRule)
557 t.Errorf("Presigned test apk should be aligned")
561 func TestAndroidTestImport_Preprocessed(t *testing.T) {
562 ctx, _ := testJava(t, `
584 t.Errorf("Unexpected JNI uncompress rule: " + jniRule)
589 t.Errorf("signing rule shouldn't be included for preprocessed.")
592 t.Errorf("aligning rule shouldn't be for preprocessed")