From b4a149ced93c61f33618901d5a65622a6ffa8035 Mon Sep 17 00:00:00 2001 From: Carmi Grushko Date: Tue, 29 Mar 2016 12:50:30 +0000 Subject: Add getGenfilesArtifact() that takes an explicit AspectParameters, for looking up actions registered from Aspects that use a non-empty AspectParameters. -- MOS_MIGRATED_REVID=118455180 --- .../devtools/build/lib/analysis/util/BuildViewTestCase.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/test/java/com/google/devtools/build') diff --git a/src/test/java/com/google/devtools/build/lib/analysis/util/BuildViewTestCase.java b/src/test/java/com/google/devtools/build/lib/analysis/util/BuildViewTestCase.java index e4ad7ba386..3d23adca31 100644 --- a/src/test/java/com/google/devtools/build/lib/analysis/util/BuildViewTestCase.java +++ b/src/test/java/com/google/devtools/build/lib/analysis/util/BuildViewTestCase.java @@ -985,6 +985,15 @@ public abstract class BuildViewTestCase extends FoundationTestCase { */ protected Artifact getGenfilesArtifact(String packageRelativePath, ConfiguredTarget owner, Class creatingAspectFactory) { + return getGenfilesArtifact( + packageRelativePath, owner, creatingAspectFactory, AspectParameters.EMPTY); + } + + protected Artifact getGenfilesArtifact( + String packageRelativePath, + ConfiguredTarget owner, + Class creatingAspectFactory, + AspectParameters params) { return getPackageRelativeDerivedArtifact( packageRelativePath, owner.getConfiguration().getGenfilesDirectory(), @@ -994,7 +1003,7 @@ public abstract class BuildViewTestCase extends FoundationTestCase { owner.getConfiguration(), owner.getConfiguration(), new NativeAspectClass(creatingAspectFactory), - AspectParameters.EMPTY) + params) .argument()); } -- cgit v1.2.3