Lines Matching refs:expected
172 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) {
210 h.AssertStringEquals(message, strings.TrimSpace(expected), strings.TrimSpace(actual))
213 func (h *TestHelper) AssertDeepEquals(message string, expected interface{}, actual interface{}) {
215 if !reflect.DeepEqual(actual, expected) {
216 h.t.Errorf("%s: expected %#v, actual %#v", message, expected, actual)
348 func checkAndroidBpContents(expected string) snapshotBuildInfoChecker {
351 …info.r.AssertTrimmedStringEquals("Android.bp contents do not match", expected, info.androidBpConte…
360 func checkAllCopyRules(expected string) snapshotBuildInfoChecker {
363 info.r.AssertTrimmedStringEquals("Incorrect copy rules", expected, info.copyRules)
367 func checkAllOtherCopyRules(expected string) snapshotBuildInfoChecker {
370 info.r.AssertTrimmedStringEquals("Incorrect copy rules", expected, info.otherCopyRules)
375 func checkMergeZips(expected ...string) snapshotBuildInfoChecker {
382 info.r.AssertDeepEquals("mismatching merge zip files", expected, info.mergeZips)