diff options
author | 2021-03-12 12:20:59 +0000 | |
---|---|---|
committer | 2021-03-12 14:26:04 +0000 | |
commit | 3d0ddff8ed44b4165b698567bd79289baf4a9274 (patch) | |
tree | 72fe9fbd9b5d46116e3578cf76441971ae48509a /android/visibility_test.go | |
parent | 9dcf253197886a9c5976fd00e719a9e314f04703 (diff) |
Stop android package depending on testing.T being embedded in TestResult
This change is in preparation for removing testing.T from TestResult.
Bug: 181070625
Test: m nothing
Change-Id: Ib51c7d4e5efdcbe0652df10b66140058a8bfa471
Diffstat (limited to 'android/visibility_test.go')
-rw-r--r-- | android/visibility_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/android/visibility_test.go b/android/visibility_test.go index eb4071eb7..fdf18ce00 100644 --- a/android/visibility_test.go +++ b/android/visibility_test.go @@ -1166,17 +1166,17 @@ func TestVisibility(t *testing.T) { RunTest(t) if test.effectiveVisibility != nil { - checkEffectiveVisibility(result, test.effectiveVisibility) + checkEffectiveVisibility(t, result, test.effectiveVisibility) } }) } } -func checkEffectiveVisibility(result *TestResult, effectiveVisibility map[qualifiedModuleName][]string) { +func checkEffectiveVisibility(t *testing.T, result *TestResult, effectiveVisibility map[qualifiedModuleName][]string) { for moduleName, expectedRules := range effectiveVisibility { rule := effectiveVisibilityRules(result.Config, moduleName) stringRules := rule.Strings() - result.AssertDeepEquals("effective rules mismatch", expectedRules, stringRules) + AssertDeepEquals(t, "effective rules mismatch", expectedRules, stringRules) } } |