Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 63) sorted by relevance

123

/build/soong/java/
Djdeps_test.go25 expected := []string{"Foo", "Bar"}
27 module.properties.Libs = append(module.properties.Libs, expected...)
32 if !reflect.DeepEqual(dpInfo.Deps, expected) {
33 t.Errorf("Library.IDEInfo() Deps = %v, want %v", dpInfo.Deps, expected)
38 expected := []string{"Foo", "Bar"}
40 module.properties.Static_libs = append(module.properties.Static_libs, expected...)
45 if !reflect.DeepEqual(dpInfo.Deps, expected) {
46 t.Errorf("Library.IDEInfo() Deps = %v, want %v", dpInfo.Deps, expected)
51 expected := []string{"Foo", "Bar"}
53 module.expandIDEInfoCompiledSrcs = append(module.expandIDEInfoCompiledSrcs, expected...)
[all …]
Dandroidmk_test.go37 expected := []string{"libfoo"}
39 if !reflect.DeepEqual(expected, actual) {
40 t.Errorf("Unexpected required modules - expected: %q, actual: %q", expected, actual)
60 expected := []string{"foo"}
62 if !reflect.DeepEqual(expected, actual) {
63 t.Errorf("Unexpected module name - expected: %q, actual: %q", expected, actual)
67 expected = []string{"foo-hostdex"}
69 if !reflect.DeepEqual(expected, actual) {
70 t.Errorf("Unexpected module name - expected: %q, actual: %q", expected, actual)
91 expected := []string{"libfoo"}
[all …]
Dapp_test.go184 expected map[string]string
191 expected: map[string]string{
205 expected: map[string]string{
226 for k, v := range test.expected {
1585 expected []string
1597 expected: []string{
1612 expected: []string{
1636 for _, e := range test.expected {
1746 for _, expected := range expectedVariants {
1747 variant := ctx.ModuleForTests("foo", expected.variantName)
[all …]
Dsdk_test.go353 expected := ""
355 expected = bc
358 expected = system
361 if got != expected {
362 t.Errorf("bootclasspath expected %q != got %q", expected, got)
366 expected = j8c
369 expected = j9c
373 if got != expected {
374 t.Errorf("classpath expected %q != got %q", expected, got)
/build/soong/android/
Dutil_test.go138 expected string
143 expected: "",
148 expected: "prefix:a",
153 expected: "prefix:a prefix:b",
162 if out != testCase.expected {
166 t.Errorf(" expected: %#v", testCase.expected)
178 expected int
182 expected: 0,
186 expected: 1,
190 expected: 2,
[all …]
/build/soong/scripts/
Dmanifest_fixer_test.py87 expected = self.manifest_tmpl % self.uses_sdk(min='28', target='28')
89 self.assertEqual(output, expected)
95 expected = self.manifest_tmpl % self.uses_sdk(min='28', target='28',
98 self.assertEqual(output, expected)
104 expected = self.manifest_tmpl % self.uses_sdk(min='28', target='28')
106 self.assertEqual(output, expected)
112 expected = self.manifest_tmpl % self.uses_sdk(min='28', target='28')
114 self.assertEqual(output, expected)
120 expected = self.manifest_tmpl % self.uses_sdk(min='28', target='27')
122 self.assertEqual(output, expected)
[all …]
Djar-args.sh34 expected=$(mktemp)
56 if cmp $out $expected; then
65 cat $expected
67 rm -f $in $expected $out
Dtest_config_fixer_test.py66 expected = self.test_config % ("com.android.foo", "com.soong.foo", "com.android.bar")
67 self.assertEqual(expected, output.getvalue())
93 expected = self.test_config % ("bar.apk")
94 self.assertEqual(expected, output.getvalue())
/build/soong/androidmk/androidmk/
Dandroidmk_test.go29 expected string
47 expected: `
67 expected: `
78 expected: `
89 expected: `
105 expected: `
123 expected: `
146 expected: `
171 expected: `
204 expected: `
[all …]
/build/soong/androidmk/parser/
Dmake_strings_test.go24 expected []*MakeString
42 expected: []*MakeString{
77 expected: []*MakeString{
95 expectedString := dumpArray(test.expected)
104 expected string
108 expected: "a b",
112 expected: "a \tb\\",
116 expected: "a\\b\\",
123 if got != test.expected {
124 t.Errorf("\nwith: %q\nwant: %q\n got: %q", test.in.Dump(), test.expected, got)
[all …]
/build/soong/finder/fs/
Dtest.go106 func AssertSameResponse(t *testing.T, actual []string, expected []string) {
109 sort.Strings(expected)
110 if !reflect.DeepEqual(actual, expected) {
112 len(expected), expected, len(actual), actual)
116 func AssertSameStatCalls(t *testing.T, actual []string, expected []string) {
119 sort.Strings(expected)
121 if !reflect.DeepEqual(actual, expected) {
128 actual, expected)
132 func AssertSameReadDirCalls(t *testing.T, actual []string, expected []string) {
135 sort.Strings(expected)
[all …]
/build/soong/symbol_inject/
Dsymbol_inject_test.go28 expected string
33 expected: "Abcdefghijklmnopqrstuvwxyz",
38 expected: "aBcdefghijklmnopqrstuvwxyz",
43 expected: "abcdefghijklmnopqrstuvwxyZ",
53 if out.String() != testCase.expected {
54 t.Errorf("expected %s, got %s", testCase.expected, out.String())
/build/soong/partner/androidmk/
Dandroidmk_test.go32 expected string
42 expected: `
58 expected, err := bpfix.Reformat(test.expected)
69 if got != expected {
70 …s'\ninput:\n%s\n\nexpected:\n%s\ngot:\n%s\n", test.desc, strings.TrimSpace(test.in), expected, got)
/build/blueprint/bootstrap/bpdoc/
Dproperties_test.go31 expected := []string{"c"}
36 if !reflect.DeepEqual(expected, actual) {
37 t.Errorf("unexpected ExcludeByTag result, expected: %q, actual: %q", expected, actual)
50 expected := []string{"b", "c"}
55 if !reflect.DeepEqual(expected, actual) {
56 t.Errorf("unexpected IncludeByTag result, expected: %q, actual: %q", expected, actual)
Dbpdoc_test.go36 expected := []string{"child", "child.child"}
37 if len(allStructs) != len(expected) {
39 len(expected), len(allStructs), allStructs)
41 for _, e := range expected {
/build/soong/sdk/
Dtesting.go172 func ensureListContains(t *testing.T, result []string, expected string) {
174 if !android.InList(expected, result) {
175 t.Errorf("%q is not found in %v", expected, result)
192 func (h *TestHelper) AssertStringEquals(message string, expected string, actual string) {
194 if actual != expected {
195 h.t.Errorf("%s: expected %s, actual %s", message, expected, actual)
199 func (h *TestHelper) AssertErrorMessageEquals(message string, expected string, actual error) {
203 } else if actual.Error() != expected {
204 h.t.Errorf("%s: expected %s, actual %s", message, expected, actual.Error())
208 func (h *TestHelper) AssertTrimmedStringEquals(message string, expected string, actual string) {
[all …]
/build/soong/cc/
Dgenrule_test.go68 expected := []string{"foo"}
69 if !reflect.DeepEqual(expected, gen.Inputs.Strings()) {
70 t.Errorf(`want arm inputs %v, got %v`, expected, gen.Inputs.Strings())
74 expected = []string{"bar"}
75 if !reflect.DeepEqual(expected, gen.Inputs.Strings()) {
76 t.Errorf(`want arm64 inputs %v, got %v`, expected, gen.Inputs.Strings())
/build/make/tools/releasetools/
Dtest_add_img_to_target_files.py161 def _verifyCareMap(self, expected, file_name): argument
171 self.assertEqual('\n'.join(expected), plain_text)
180 expected = ['system', RangeSet("0-5 10-15").to_string_raw(),
187 self._verifyCareMap(expected, care_map_file)
198 expected = ['system', RangeSet("0-5 10-15").to_string_raw(),
205 self._verifyCareMap(expected, care_map_file)
232 expected = ['system', RangeSet("0-5 10-15").to_string_raw(),
239 self._verifyCareMap(expected, care_map_file)
256 expected = ['system', RangeSet("0-5 10-15").to_string_raw(), "unknown",
260 self._verifyCareMap(expected, care_map_file)
[all …]
/build/soong/etc/
Dprebuilt_etc_test.go190 expected := map[string][]string{
202 for k, expectedValue := range expected {
223 expected := buildDir + "/target/product/test_device/system/etc/bar"
224 if p.installDirPath.String() != expected {
225 t.Errorf("expected %q, got %q", expected, p.installDirPath.String())
265 expected := buildDir + "/target/product/test_device/system/usr/share/bar"
266 if p.installDirPath.String() != expected {
267 t.Errorf("expected %q, got %q", expected, p.installDirPath.String())
282 expected := filepath.Join(buildDir, "host", config.PrebuiltOS(), "usr", "share", "bar")
283 if p.installDirPath.String() != expected {
[all …]
/build/soong/cmd/extract_apks/
Dmain_test.go31 expected SelectionResult member
134 expected: SelectionResult{
153 expected: SelectionResult{
170 expected: SelectionResult{
187 expected: SelectionResult{
222 expected: SelectionResult{
246 expected: SelectionResult{
261 if !reflect.DeepEqual(config.expected, actual) {
262 t.Errorf("%s: expected %v, got %v", config.name, config.expected, actual)
341 expected: SelectionResult{
[all …]
/build/soong/cc/config/
Dtidy_test.go24 expected string
36 if output != testCase.expected {
37 t.Error("Output doesn't match expected", output, testCase.expected)
/build/blueprint/
Dglob_test.go33 t.Error(`expected ["a/a", "a/b"], got`, matches)
44 t.Error(`expected ["a/a", "a/b"], got`, matches)
53 t.Error(`expected ["a/a"], got`, matches)
Dninja_strings_test.go125 var expected ninjaString
128 expected = literalNinjaString(testCase.strs[0])
130 expected = &varNinjaString{
139 if !reflect.DeepEqual(output, expected) {
142 t.Errorf(" expected: %#v", expected)
/build/blueprint/parser/
Dmodify_test.go60 expected := "ABCdefghijklMNO_pqrstuvwxZ"
62 if got != expected {
63 t.Errorf("expected %q, got %q", expected, got)
/build/soong/ui/logger/
Dlogger_test.go70 expected := []string{".lock_build.log", "build.1.log", "build.2.log", "build.3.log", "build.log"}
71 if !reflect.DeepEqual(names, expected) {
74 t.Errorf("expected: %v", expected)
78 expectFileContents := func(name, expected string) {
85 if str != expected {
88 t.Errorf("expected: %v", expected)

123