summaryrefslogtreecommitdiff
path: root/java/java_test.go
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2021-03-17 00:36:35 +0000
committerPaul Duffin <paulduffin@google.com>2021-03-17 17:50:22 +0000
commitafeee22c17ee20ea118d7cfdb8edebfcc7e388a1 (patch)
tree244dc6b50bc004594e8206fda4c3e094c2522f36 /java/java_test.go
parent961543309f4f0f6cd72572651dabe8720a13557a (diff)
Add emptyFixtureFactory in java package
Bug: 182402754 Test: m nothing Change-Id: I6a01b846a8aee5a0ace9e6ac056ee439bf6f12f7
Diffstat (limited to 'java/java_test.go')
-rw-r--r--java/java_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/java_test.go b/java/java_test.go
index 2eb724185..990e0102e 100644
--- a/java/java_test.go
+++ b/java/java_test.go
@@ -48,9 +48,10 @@ func tearDown() {
os.RemoveAll(buildDir)
}
+var emptyFixtureFactory = android.NewFixtureFactory(&buildDir)
+
// Factory to use to create fixtures for tests in this package.
-var javaFixtureFactory = android.NewFixtureFactory(
- &buildDir,
+var javaFixtureFactory = emptyFixtureFactory.Extend(
genrule.PrepareForTestWithGenRuleBuildComponents,
// Get the CC build components but not default modules.
cc.PrepareForTestWithCcBuildComponents,