summaryrefslogtreecommitdiff
path: root/bpf/bpf_test.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2021-03-20 00:36:55 +0000
committer Paul Duffin <paulduffin@google.com> 2021-03-22 18:31:53 +0000
commit89648f98faf46f4c9ae2b084167a79f7da2df567 (patch)
tree38c2561883b220b1ee671748d17c1657c42a77c9 /bpf/bpf_test.go
parent30ac3e7ca75106d7f883558c46501296d4bffcfc (diff)
Remove usages of FixtureFactory from misc packages
These packages have already been migrated to use per test build directory so have no need for a FixtureFactory. Bug: 183235980 Test: m nothing Change-Id: I667d1d992caaf0f615de91f89efdae11c44986c2
Diffstat (limited to 'bpf/bpf_test.go')
-rw-r--r--bpf/bpf_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/bpf/bpf_test.go b/bpf/bpf_test.go
index 0bf15db75..51fbc15e1 100644
--- a/bpf/bpf_test.go
+++ b/bpf/bpf_test.go
@@ -26,8 +26,7 @@ func TestMain(m *testing.M) {
os.Exit(m.Run())
}
-var bpfFactory = android.NewFixtureFactory(
- nil,
+var prepareForBpfTest = android.GroupFixturePreparers(
cc.PrepareForTestWithCcDefaultModules,
android.FixtureMergeMockFs(
map[string][]byte{
@@ -53,7 +52,7 @@ func TestBpfDataDependency(t *testing.T) {
}
`
- bpfFactory.RunTestWithBp(t, bp)
+ prepareForBpfTest.RunTestWithBp(t, bp)
// We only verify the above BP configuration is processed successfully since the data property
// value is not available for testing from this package.