diff options
author | 2023-11-02 16:56:39 -0700 | |
---|---|---|
committer | 2023-12-03 17:22:56 -0800 | |
commit | f61d03d241334e355216e46fecb06a84e8626f8a (patch) | |
tree | b0cb060a6bf37e655bd8362adc9bd8b94e4feb55 /android/defs.go | |
parent | 5c1d5fb21b19d6bcc8b0f83bc68124c21b31fabc (diff) |
Add TestContext parameter to ContentFromFileRuleForTests
The next CL will need a TestContext parameter in
ContentFromFileRuleForTests in order to retrieve the file rule contents
from the Config. Add it and update all the tests that use it in order
to simply review of the next CL.
Bug: 306029038
Test: go test ./...
Change-Id: Ia4b4c9854017ea3472fa2f8ba42cf7f72720496e
Diffstat (limited to 'android/defs.go')
-rw-r--r-- | android/defs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/defs.go b/android/defs.go index b28d2fa3d..03968c10d 100644 --- a/android/defs.go +++ b/android/defs.go @@ -232,7 +232,7 @@ func shellUnescape(s string) string { // ContentFromFileRuleForTests returns the content that was passed to a WriteFileRule for use // in tests. -func ContentFromFileRuleForTests(t *testing.T, params TestingBuildParams) string { +func ContentFromFileRuleForTests(t *testing.T, ctx *TestContext, params TestingBuildParams) string { t.Helper() if g, w := params.Rule, writeFile; g != w { t.Errorf("expected params.Rule to be %q, was %q", w, g) |