Lines Matching refs:t
25 func TestRequired(t *testing.T) {
26 ctx, config := testJava(t, `
35 entries := android.AndroidMkEntriesForTest(t, config, "", mod)[0]
40 t.Errorf("Unexpected required modules - expected: %q, actual: %q", expected, actual)
44 func TestHostdex(t *testing.T) {
45 ctx, config := testJava(t, `
54 entriesList := android.AndroidMkEntriesForTest(t, config, "", mod)
56 t.Errorf("two entries are expected, but got %d", len(entriesList))
63 t.Errorf("Unexpected module name - expected: %q, actual: %q", expected, actual)
70 t.Errorf("Unexpected module name - expected: %q, actual: %q", expected, actual)
74 func TestHostdexRequired(t *testing.T) {
75 ctx, config := testJava(t, `
85 entriesList := android.AndroidMkEntriesForTest(t, config, "", mod)
87 t.Errorf("two entries are expected, but got %d", len(entriesList))
94 t.Errorf("Unexpected required modules - expected: %q, actual: %q", expected, actual)
101 t.Errorf("Unexpected required modules - expected: %q, actual: %q", expected, actual)
105 func TestHostdexSpecificRequired(t *testing.T) {
106 ctx, config := testJava(t, `
120 entriesList := android.AndroidMkEntriesForTest(t, config, "", mod)
122 t.Errorf("two entries are expected, but got %d", len(entriesList))
127 t.Errorf("Unexpected required modules: %q", r)
134 t.Errorf("Unexpected required modules - expected: %q, actual: %q", expected, actual)
138 func TestDistWithTag(t *testing.T) {
139 ctx, config := testJava(t, `
159 …withoutTagEntries := android.AndroidMkEntriesForTest(t, config, "", ctx.ModuleForTests("foo_withou…
160 …withTagEntries := android.AndroidMkEntriesForTest(t, config, "", ctx.ModuleForTests("foo_with_tag"…
163 …t.Errorf("two mk entries per module expected, got %d and %d", len(withoutTagEntries), len(withTagE…
167 t.Errorf("expected DistFiles to contain classes.jar, got %v", withTagEntries[0].DistFiles)
170 …t.Errorf("did not expect explicit DistFile for .jar tag, got %v", withoutTagEntries[0].DistFiles["…
174 func TestDistWithDest(t *testing.T) {
175 ctx, config := testJava(t, `
188 entries := android.AndroidMkEntriesForTest(t, config, "", module)
190 t.Errorf("Expected 2 AndroidMk entries, got %d", len(entries))
196 t.Errorf("Expected 2 entries for dist: PHONY and dist-for-goals, but got %q", distStrings)
200 t.Errorf("Expected .PHONY entry to declare my_goal, but got: %s", distStrings[0])
205 t.Errorf(
210 func TestDistsWithAllProperties(t *testing.T) {
211 ctx, config := testJava(t, `
232 entries := android.AndroidMkEntriesForTest(t, config, "", module)
234 t.Errorf("Expected 2 AndroidMk entries, got %d", len(entries))
240 t.Errorf("Expected 4 entries for dist: PHONY and dist-for-goals, but got %d", len(distStrings))
244 t.Errorf("Expected .PHONY entry to declare bar, but got: %s", distStrings[0])
251 t.Errorf(
256 t.Errorf("Expected .PHONY entry to declare baz, but got: %s", distStrings[2])
261 t.Errorf(
267 func TestDistsWithTag(t *testing.T) {
268 ctx, config := testJava(t, `
295 withoutTagEntries := android.AndroidMkEntriesForTest(t, config, "", moduleWithoutTag)
296 withTagEntries := android.AndroidMkEntriesForTest(t, config, "", moduleWithTag)
299 …t.Errorf("two mk entries per module expected, got %d and %d", len(withoutTagEntries), len(withTagE…
307 …t.Errorf("expected foo_with_tag's .jar-tagged DistFiles to contain classes.jar, got %v", distFiles…
310 …t.Errorf("did not expect foo_without_tag's .jar-tagged DistFiles to contain files, but got %v", di…
314 func TestJavaSdkLibrary_RequireXmlPermissionFile(t *testing.T) {
315 ctx, config := testJava(t, `
339 entries := android.AndroidMkEntriesForTest(t, config, "", mod)[0]
342 t.Errorf("Unexpected required modules - expected: %q, actual: %q", tc.expected, actual)