/build/soong/android/ |
D | test_asserts.go | 28 func AssertSame(t *testing.T, message string, expected interface{}, actual interface{}) { 30 if actual != expected { 31 t.Errorf("%s: expected:\n%#v\nactual:\n%#v", message, expected, actual) 37 func AssertBoolEquals(t *testing.T, message string, expected bool, actual bool) { 39 if actual != expected { 40 t.Errorf("%s: expected %t, actual %t", message, expected, actual) 46 func AssertIntEquals(t *testing.T, message string, expected int, actual int) { 48 if actual != expected { 49 t.Errorf("%s: expected %d, actual %d", message, expected, actual) 55 func AssertStringEquals(t *testing.T, message string, expected string, actual string) { [all …]
|
D | util_test.go | 139 expected string 144 expected: "", 149 expected: "prefix:a", 154 expected: "prefix:a prefix:b", 163 if out != testCase.expected { 167 t.Errorf(" expected: %#v", testCase.expected) 179 expected int 183 expected: 0, 187 expected: 1, 191 expected: 2, [all …]
|
/build/soong/java/ |
D | jdeps_test.go | 25 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 …]
|
D | androidmk_test.go | 36 expected := []string{"libfoo"} 38 if !reflect.DeepEqual(expected, actual) { 39 t.Errorf("Unexpected required modules - expected: %q, actual: %q", expected, actual) 59 expected := []string{"foo"} 61 if !reflect.DeepEqual(expected, actual) { 62 t.Errorf("Unexpected module name - expected: %q, actual: %q", expected, actual) 66 expected = []string{"foo-hostdex"} 68 if !reflect.DeepEqual(expected, actual) { 69 t.Errorf("Unexpected module name - expected: %q, actual: %q", expected, actual) 90 expected := []string{"libfoo"} [all …]
|
D | app_import_test.go | 51 …expected := "build/make/target/product/security/platform.x509.pem build/make/target/product/securi… 52 if expected != signingFlag { 53 t.Errorf("Incorrect signing flags, expected: %q, got: %q", expected, signingFlag) 127 expected := "build/make/target/product/security/platform.x509.pem " + 130 if expected != certificatesFlag { 131 t.Errorf("Incorrect certificates flags, expected: %q, got: %q", expected, certificatesFlag) 135 expected = "--lineage lineage.bin" 136 if expected != signingFlag { 137 t.Errorf("Incorrect signing flags, expected: %q, got: %q", expected, signingFlag) 161 expected := "--lineage lineage.bin" [all …]
|
D | testing.go | 344 func CheckModuleDependencies(t *testing.T, ctx *android.TestContext, name, variant string, expected… 353 if actual := deps; !reflect.DeepEqual(expected, actual) { 354 t.Errorf("expected %#q, found %#q", expected, actual) 360 …ormBootclasspathModules(t *testing.T, result *android.TestResult, name string, expected []string) { 364 android.AssertDeepEquals(t, fmt.Sprintf("%s modules", "platform-bootclasspath"), expected, pairs) 391 …mBootclasspathFragments(t *testing.T, result *android.TestResult, name string, expected []string) { 395 android.AssertDeepEquals(t, fmt.Sprintf("%s fragments", "platform-bootclasspath"), expected, pairs) 398 func CheckHiddenAPIRuleInputs(t *testing.T, message string, expected string, hiddenAPIRule android.… 409 expected = strings.TrimSpace(re.ReplaceAllString(expected, "\n")) 410 if actual != expected { [all …]
|
D | rro_test.go | 99 …expected := "build/make/target/product/security/platform.x509.pem build/make/target/product/securi… 100 if expected != signingFlag { 101 t.Errorf("Incorrect signing flags, expected: %q, got: %q", expected, signingFlag) 227 for _, expected := range expectedVariants { 228 variant := ctx.ModuleForTests("foo_overlay", expected.variantName) 231 variant.Output(expected.apkPath) 235 if !reflect.DeepEqual(expected.overrides, mod.properties.Overrides) { 237 expected.overrides, mod.properties.Overrides) 243 checkAapt2LinkFlag(t, aapt2Flags, "rename-manifest-package", expected.packageFlag) 245 checkAapt2LinkFlag(t, aapt2Flags, "rename-overlay-target-package", expected.targetPackageFlag)
|
/build/soong/androidmk/parser/ |
D | make_strings_test.go | 24 expected []*MakeString 33 expected: []*MakeString{ 49 expected: []*MakeString{ 60 expected: []*MakeString{ 70 expected: []*MakeString{ 84 expectedString := dumpArray(test.expected) 93 expected string 97 expected: "a b", 101 expected: "a \tb\\", 105 expected: "a\\b\\", [all …]
|
/build/soong/scripts/ |
D | manifest_fixer_test.py | 87 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 …]
|
D | jar-args.sh | 34 expected=$(mktemp) 56 if cmp $out $expected; then 65 cat $expected 67 rm -f $in $expected $out
|
D | test_config_fixer_test.py | 66 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/ |
D | androidmk_test.go | 29 expected string 47 expected: ` 67 expected: ` 78 expected: ` 89 expected: ` 105 expected: ` 123 expected: ` 146 expected: ` 171 expected: ` 204 expected: ` [all …]
|
/build/soong/symbol_inject/ |
D | symbol_inject_test.go | 28 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/bazel/ |
D | aquery_test.go | 438 if expected := 1; len(actual) != expected { 439 t.Fatalf("Expected %d build statements, got %d", expected, len(actual)) 721 func assertError(t *testing.T, err error, expected string) { 723 t.Errorf("expected error '%s', but got no error", expected) 724 } else if err.Error() != expected { 725 t.Errorf("expected error '%s', but got: %s", expected, err.Error()) 731 func assertBuildStatements(t *testing.T, expected []BuildStatement, actual []BuildStatement) { 732 if len(expected) != len(actual) { 734 len(expected), len(actual), expected, actual) 739 for _, expectedStatement := range expected { [all …]
|
/build/soong/finder/fs/ |
D | test.go | 106 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/partner/androidmk/ |
D | androidmk_test.go | 32 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/soong/kernel/ |
D | prebuilt_kernel_modules_test.go | 42 expected := []string{ 56 expected = android.SortedUniqueStrings(expected) 57 android.AssertDeepEquals(t, "foo packaging specs", expected, actual)
|
/build/make/tools/releasetools/ |
D | test_add_img_to_target_files.py | 162 def _verifyCareMap(self, expected, file_name): argument 172 self.assertEqual('\n'.join(expected), plain_text) 181 expected = ['system', RangeSet("0-5 10-15").to_string_raw(), 188 self._verifyCareMap(expected, care_map_file) 199 expected = ['system', RangeSet("0-5 10-15").to_string_raw(), 206 self._verifyCareMap(expected, care_map_file) 233 expected = ['system', RangeSet("0-5 10-15").to_string_raw(), 240 self._verifyCareMap(expected, care_map_file) 257 expected = ['system', RangeSet("0-5 10-15").to_string_raw(), "unknown", 261 self._verifyCareMap(expected, care_map_file) [all …]
|
/build/soong/shared/ |
D | paths_test.go | 21 func assertEqual(t *testing.T, expected, actual string) { argument 23 if expected != actual { 24 t.Errorf("expected %q != got %q", expected, actual)
|
/build/soong/sdk/ |
D | testing.go | 111 func ensureListContains(t *testing.T, result []string, expected string) { 113 if !android.InList(expected, result) { 114 t.Errorf("%q is not found in %v", expected, result) 313 func checkAndroidBpContents(expected string) snapshotBuildInfoChecker { 316 …android.AssertTrimmedStringEquals(info.t, "Android.bp contents do not match", expected, info.andro… 325 func checkUnversionedAndroidBpContents(expected string) snapshotBuildInfoChecker { 328 …medStringEquals(info.t, "unversioned Android.bp contents do not match", expected, info.androidUnve… 340 func checkVersionedAndroidBpContents(expected string) snapshotBuildInfoChecker { 343 …android.AssertTrimmedStringEquals(info.t, "versioned Android.bp contents do not match", expected, … 352 func checkAllCopyRules(expected string) snapshotBuildInfoChecker { [all …]
|
/build/soong/cc/config/ |
D | tidy_test.go | 24 expected string 36 if output != testCase.expected { 37 t.Error("Output doesn't match expected", output, testCase.expected)
|
/build/soong/etc/ |
D | prebuilt_etc_test.go | 119 expected := map[string][]string{ 131 for k, expectedValue := range expected { 150 expected := "out/soong/target/product/test_device/system/etc/bar" 151 android.AssertPathRelativeToTopEquals(t, "install dir", expected, p.installDirPath) 192 expected := "out/soong/target/product/test_device/system" 193 android.AssertPathRelativeToTopEquals(t, "install dir", expected, p.installDirPath) 216 expected := "out/soong/target/product/test_device/system/usr/share/bar" 217 android.AssertPathRelativeToTopEquals(t, "install dir", expected, p.installDirPath) 231 expected := filepath.Join("out/soong/host", result.Config.PrebuiltOS(), "usr", "share", "bar") 232 android.AssertPathRelativeToTopEquals(t, "install dir", expected, p.installDirPath) [all …]
|
/build/soong/cmd/extract_apks/ |
D | main_test.go | 31 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/blueprint/ |
D | glob_test.go | 33 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)
|
/build/soong/linkerconfig/ |
D | linkerconfig_test.go | 43 expected := map[string][]string{ 56 for k, expectedValue := range expected { 80 expected := []string{"true"} 85 if !reflect.DeepEqual(value, expected) {
|