Home
last modified time | relevance | path

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

12345678910

/build/soong/android/
Dsdk_version_test.go24 expected string
28 expected: "private_current",
32 expected: "none_(no version)",
36 expected: "core_platform_current",
40 expected: "invalid__",
44 expected: "invalid__31",
48 expected: "system_30",
52 expected: "test_31",
56 expected: "module-lib_current",
60 expected: "public_31",
[all …]
Dtest_asserts.go29 func AssertSame(t *testing.T, message string, expected interface{}, actual interface{}) {
31 if actual != expected {
32 t.Errorf("%s: expected:\n%#v\nactual:\n%#v", message, expected, actual)
38 func AssertBoolEquals(t *testing.T, message string, expected bool, actual bool) {
40 if actual != expected {
41 t.Errorf("%s: expected %t, actual %t", message, expected, actual)
47 func AssertIntEquals(t *testing.T, message string, expected int, actual int) {
49 if actual != expected {
50 t.Errorf("%s: expected %d, actual %d", message, expected, actual)
56 func AssertStringEquals(t *testing.T, message string, expected string, actual string) {
[all …]
Dutil_test.go141 expected string
146 expected: "",
151 expected: "prefix:a",
156 expected: "prefix:a prefix:b",
165 if out != testCase.expected {
169 t.Errorf(" expected: %#v", testCase.expected)
181 expected int
185 expected: 0,
189 expected: 1,
193 expected: 2,
[all …]
/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 …]
/build/soong/androidmk/parser/
Dmake_strings_test.go24 expected []*MakeString
33 expected: []*MakeString{
49 expected: []*MakeString{
60 expected: []*MakeString{
70 expected: []*MakeString{
83 expected: []*MakeString{
94 expectedString := dumpArray(test.expected)
103 expected string
107 expected: "a b",
111 expected: "a \tb\\",
[all …]
/build/soong/scripts/hiddenapi/
Dsignature_patterns_test.py56 expected = [
59 self.assertEqual(expected, patterns)
66 expected = [
71 self.assertEqual(expected, patterns)
78 expected = [
83 self.assertEqual(expected, patterns)
90 expected = [
93 self.assertEqual(expected, patterns)
100 expected = [
103 self.assertEqual(expected, patterns)
[all …]
Dverify_overlaps_test.py59 expected = {
65 self.assertEqual(expected, subset)
75 expected = {
85 self.assertEqual(expected, subset)
95 expected = {
107 self.assertEqual(expected, subset)
117 expected = {
125 self.assertEqual(expected, subset)
135 expected = {
159 self.assertEqual(expected, subset)
[all …]
/build/bazel/scripts/incremental_build/
Dutil_test.py41 for pattern, expected in examples:
42 with self.subTest(msg=pattern, pattern=pattern, expected=expected):
45 self.assertEqual(n, Path(expected))
56 for ts, expected in decimal_precision_examples:
57 with self.subTest(ts=ts, expected=expected):
58 self.assertEqual(hhmmss(ts, decimal_precision=True), expected)
59 for ts, expected in non_decimal_precision_examples:
60 with self.subTest(ts=ts, expected=expected):
61 self.assertEqual(hhmmss(ts, decimal_precision=False), expected)
74 for ts, expected in examples:
[all …]
/build/make/tools/compliance/
Dconditionset_test.go29 expected []string
40 expected: []string{},
51 expected: []string{},
62 expected: []string{},
72 expected: []string{"notice"},
83 expected: []string{"notice"},
94 expected: []string{"notice"},
112 expected: []string{
145 expected: []string{
173 expected: []string{
[all …]
Dresolutionset_test.go86 expected := []string{"bin1", "bin2", "image"}
89 t.Logf("expected rsShare: %v", expected)
91 if len(actual) != len(expected) {
92 t.Errorf("rsShare: wrong number of targets: got %d, want %d", len(actual), len(expected))
96 if actual[i] != expected[i] {
97 t.Errorf("rsShare: unexpected target at index %d: got %s, want %s", i, actual[i], expected[i])
103 expected = []string{}
106 t.Logf("expected rsPrivate: %v", expected)
108 if len(actual) != len(expected) {
109 t.Errorf("rsPrivate: wrong number of targets: got %d, want %d", len(actual), len(expected))
[all …]
/build/soong/ui/build/
Dstaging_snapshot_test.go24 func assertDeepEqual(t *testing.T, expected interface{}, actual interface{}) {
25 if !reflect.DeepEqual(actual, expected) {
26 t.Fatalf("expected:\n %#v\n actual:\n %#v", expected, actual)
61 expected := []fileEntry{}
63 assertDeepEqual(t, expected, actual)
75 expected := []fileEntry{
81 assertDeepEqual(t, expected, actual)
88 expected := snapshotDiff{
94 assertDeepEqual(t, expected, actual)
106 expected := snapshotDiff{
[all …]
/build/soong/scripts/
Dmanifest_fixer_test.py83 def assert_xml_equal(self, output, expected): argument
84 self.assertEqual(ET.canonicalize(output), ET.canonicalize(expected))
90 expected = self.manifest_tmpl % self.uses_sdk(min='28', target='28')
92 self.assert_xml_equal(output, expected)
98 expected = self.manifest_tmpl % self.uses_sdk(min='28', target='28',
101 self.assert_xml_equal(output, expected)
107 expected = self.manifest_tmpl % self.uses_sdk(min='28', target='28')
109 self.assert_xml_equal(output, expected)
115 expected = self.manifest_tmpl % self.uses_sdk(min='28', target='28')
117 self.assert_xml_equal(output, expected)
[all …]
Dconstruct_context_test.py142 expected = (
174 self.assertEqual(actual, expected)
178 expected = (
208 self.assertEqual(actual, expected)
212 expected = (
238 self.assertEqual(actual, expected)
242 expected = (
268 self.assertEqual(actual, expected)
Djsonmodify_test.py32 expected = json.loads('{"field1": 222, "field2": 333}')
33 self.assertEqual(obj, expected)
41 expected = json.loads('{"field1": 222}')
42 self.assertEqual(obj, expected)
52 expected = json.loads('{"field1": 333, "field2": 222}')
53 self.assertEqual(obj, expected)
61 expected = json.loads('{"field1": 111}')
62 self.assertEqual(obj, expected)
70 expected = json.loads('{"field1": [111, 222, 333], "field2": [444, 555, 666]}')
71 self.assertEqual(obj, expected)
Dtest_config_fixer_test.py68 expected = self.test_config % ("com.android.foo", "com.soong.foo", "com.android.bar")
69 self.assertEqual(expected, output.getvalue())
107 expected = self.test_config_test_app_install_setup % ("bar.apk")
108 self.assertEqual(expected, output.getvalue())
118 expected = self.test_config_suite_apk_installer % ("bar.apk")
119 self.assertEqual(expected, output.getvalue())
150 expected = io.StringIO()
151 write_xml(expected, minidom.parseString(self.test_config % ("com.android.new.package.name")))
153 self.assertEqual(expected.getvalue(), output.getvalue())
/build/soong/cmd/release_config/release_config_lib/
Dflag_value_test.go31 expected rc_proto.FlagValue member
35 func (tc testCaseFlagValueFactory) assertProtoEqual(t *testing.T, expected, actual proto.Message) {
36 if !proto.Equal(expected, actual) {
37 t.Errorf("Expected %q found %q", expected, actual)
47 expected: rc_proto.FlagValue{
65 tc.assertProtoEqual(t, &tc.expected, &actual.proto)
72 expected string member
80 expected: "",
85 expected: "",
90 expected: "",
[all …]
/build/blueprint/bootstrap/bpdoc/
Dproperties_test.go32 expected := []string{"c", "d", "g"}
34 if !reflect.DeepEqual(expected, actual) {
35 t.Errorf("unexpected ExcludeByTag result, expected: %q, actual: %q", expected, actual)
48 expected := []string{"b", "c", "d", "f", "g"}
50 if !reflect.DeepEqual(expected, actual) {
51 t.Errorf("unexpected IncludeByTag result, expected: %q, actual: %q", expected, actual)
105 expected []Property
111 expected: []Property{},
117 expected: []Property{*createProperty("a", "string", ""), *createProperty("b", "string", "")},
123expected: []Property{*createProperty("a", "string", ""), *createProperty("b", "string", ""), *c…
[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/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/make/tools/check-flagged-apis/src/com/android/checkflaggedapis/
DCheckFlaggedApisTest.kt98 val expected = in testParseApiSignature() constant
120 assertEquals(expected, actual) in testParseApiSignature()
134 val expected = in testParseApiSignatureInterfacesInheritFromJavaLangObject() constant
140 assertEquals(expected, actual) in testParseApiSignatureInterfacesInheritFromJavaLangObject()
145 val expected: Map<Flag, Boolean> = in testParseFlagValues() constant
148 assertEquals(expected, actual) in testParseFlagValues()
153 val expected: Set<Symbol> = in testParseApiVersions() constant
165 assertEquals(expected, actual) in testParseApiVersions()
181 val expected: Set<Symbol> = in testParseApiVersionsNestedClasses() constant
187 assertEquals(expected, actual) in testParseApiVersionsNestedClasses()
[all …]
/build/make/tools/aconfig/aconfig/src/
Ddump.rs128 fn enum_from_str<T>(expected: &[T], s: &str) -> Result<T> in create_filter_predicate_single()
132 for candidate in expected.iter() { in create_filter_predicate_single()
137 let expected = in create_filter_predicate_single() localVariable
138 expected.iter().map(|state| format!("{:?}", state)).collect::<Vec<_>>().join(", "); in create_filter_predicate_single()
146 let expected = arg.to_owned(); in create_filter_predicate_single() localVariable
147 Ok(Box::new(move |flag: &ProtoParsedFlag| flag.package() == expected)) in create_filter_predicate_single()
150 let expected = arg.to_owned(); in create_filter_predicate_single() localVariable
151 Ok(Box::new(move |flag: &ProtoParsedFlag| flag.name() == expected)) in create_filter_predicate_single()
154 let expected = arg.to_owned(); in create_filter_predicate_single() localVariable
155 Ok(Box::new(move |flag: &ProtoParsedFlag| flag.namespace() == expected)) in create_filter_predicate_single()
[all …]
/build/soong/sdk/
Dbuild_release_test.go45 …android.FailIfNoMatchingErrors(t, `unknown release "A", expected one of \[S,Tiramisu,UpsideDownCak…
65 invalidAReleaseMessage := `unknown release "A", expected one of ` + allBuildReleaseSet.String()
171 assertJsonEquals := func(t *testing.T, expected, actual interface{}) {
173 expectedJson := marshal(expected)
185 expected := inputFactory()
186 expected.T_later = ""
187 expected.Nested.F1_only = ""
188 expected.Mapped["one"].T_only = ""
189 expected.Mapped["two"].T_only = ""
190 assertJsonEquals(t, expected, testStruct)
[all …]
/build/make/tools/compliance/projectmetadata/
Dprojectmetadata_test.go123 expected []pmeta
131 expected: []pmeta{{
145 expected: []pmeta{{
159 expected: []pmeta{{
173 expected: []pmeta{{
187 expected: []pmeta{{
201 expected: []pmeta{{
215 expected: []pmeta{{
229 expected: []pmeta{{
243 expected: []pmeta{{
[all …]
/build/soong/partner/androidmk/
Dandroidmk_test.go32 expected string
42 expected: `
61 expected, err := bpfix.Reformat(test.expected)
72 if got != expected {
73 …s'\ninput:\n%s\n\nexpected:\n%s\ngot:\n%s\n", test.desc, strings.TrimSpace(test.in), expected, got)

12345678910