summaryrefslogtreecommitdiff
path: root/rust/project_json_test.go
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2021-03-29 02:16:14 +0100
committerPaul Duffin <paulduffin@google.com>2021-04-01 10:33:20 +0100
commit79abe57f534771027ca77ea01a274d306a82f394 (patch)
treeb0da7e491abcce753965221956083dab86913d5a /rust/project_json_test.go
parent4814bb814a15ce7cb23df06e2e573a4e23c9cce0 (diff)
Remove FixturePreparer.Extend()
Use GroupFixturePreparers instead. Bug: 182885307 Test: m nothing Change-Id: Idc01d3cc5a57576a4cf417e9105d1ab851126e10
Diffstat (limited to 'rust/project_json_test.go')
-rw-r--r--rust/project_json_test.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/rust/project_json_test.go b/rust/project_json_test.go
index 7af463528..09d30dbde 100644
--- a/rust/project_json_test.go
+++ b/rust/project_json_test.go
@@ -28,9 +28,10 @@ import (
// testProjectJson run the generation of rust-project.json. It returns the raw
// content of the generated file.
func testProjectJson(t *testing.T, bp string) []byte {
- result := prepareForRustTest.
- Extend(android.FixtureMergeEnv(map[string]string{"SOONG_GEN_RUST_PROJECT": "1"})).
- RunTestWithBp(t, bp)
+ result := android.GroupFixturePreparers(
+ prepareForRustTest,
+ android.FixtureMergeEnv(map[string]string{"SOONG_GEN_RUST_PROJECT": "1"}),
+ ).RunTestWithBp(t, bp)
// The JSON file is generated via WriteFileToOutputDir. Therefore, it
// won't appear in the Output of the TestingSingleton. Manually verify