Merge "Add TestContext parameter to ContentFromFileRuleForTests" into main

This commit is contained in:
Colin Cross
2023-12-05 00:29:10 +00:00
committed by Gerrit Code Review
13 changed files with 53 additions and 45 deletions

View File

@@ -543,7 +543,7 @@ func TestGenruleHashInputs(t *testing.T) {
for _, test := range testcases {
t.Run(test.name, func(t *testing.T) {
gen := result.ModuleForTests(test.name, "")
manifest := android.RuleBuilderSboxProtoForTests(t, gen.Output("genrule.sbox.textproto"))
manifest := android.RuleBuilderSboxProtoForTests(t, result.TestContext, gen.Output("genrule.sbox.textproto"))
hash := manifest.Commands[0].GetInputHash()
android.AssertStringEquals(t, "hash", test.expectedHash, hash)