diff options
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/analysis/AspectTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/analysis/AspectTest.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/analysis/AspectTest.java b/src/test/java/com/google/devtools/build/lib/analysis/AspectTest.java index af00a7ee76..37abaafb46 100644 --- a/src/test/java/com/google/devtools/build/lib/analysis/AspectTest.java +++ b/src/test/java/com/google/devtools/build/lib/analysis/AspectTest.java @@ -321,7 +321,7 @@ public class AspectTest extends AnalysisTestCase { implements ConfiguredAspectFactory { @Override public AspectDefinition getDefinition(AspectParameters params) { - return new AspectDefinition.Builder("testaspect") + return new AspectDefinition.Builder(this) .add(attr(":late", LABEL).value(EMPTY_LATE_BOUND_LABEL)).build(); } @@ -330,7 +330,7 @@ public class AspectTest extends AnalysisTestCase { ConfiguredTarget base, RuleContext ruleContext, AspectParameters parameters) throws InterruptedException { Object lateBoundPrereq = ruleContext.getPrerequisite(":late", TARGET); - return new ConfiguredAspect.Builder("testaspect", ruleContext) + return new ConfiguredAspect.Builder(this, parameters, ruleContext) .addProvider( AspectInfo.class, new AspectInfo( @@ -385,15 +385,17 @@ public class AspectTest extends AnalysisTestCase { implements ConfiguredAspectFactory { @Override public AspectDefinition getDefinition(AspectParameters params) { - return new AspectDefinition.Builder("testaspect").build(); + return new AspectDefinition.Builder(this).build(); } + + @Override public ConfiguredAspect create( ConfiguredTarget base, RuleContext ruleContext, AspectParameters parameters) throws InterruptedException { ruleContext.registerAction(new NullAction(ruleContext.createOutputArtifact())); - return new ConfiguredAspect.Builder("testaspect", ruleContext).build(); + return new ConfiguredAspect.Builder(this, parameters, ruleContext).build(); } } private static final AspectThatRegistersAction ASPECT_THAT_REGISTERS_ACTION = |