aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/analysis
diff options
context:
space:
mode:
authorGravatar shahan <shahan@google.com>2018-04-15 12:57:54 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-04-15 12:59:07 -0700
commit5d7ce65e712a8c110a9039e00e7d4d080f07d82d (patch)
tree04c85eabdee08052a92ed79bf0e2ae796f20d9c7 /src/test/java/com/google/devtools/build/lib/analysis
parent09bd54ed357f3538a2fb1af63b6d0a01b16c81e9 (diff)
Plumbs ActionExecutionContext through GenSignatureAction.
PiperOrigin-RevId: 192964032
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/analysis')
-rw-r--r--src/test/java/com/google/devtools/build/lib/analysis/util/BuildViewTestCase.java10
1 files changed, 9 insertions, 1 deletions
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 5ade0d4d3e..6a2d37d3db 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
@@ -33,6 +33,7 @@ import com.google.devtools.build.lib.actions.ActionAnalysisMetadata;
import com.google.devtools.build.lib.actions.ActionExecutionContext;
import com.google.devtools.build.lib.actions.ActionGraph;
import com.google.devtools.build.lib.actions.ActionInput;
+import com.google.devtools.build.lib.actions.ActionInputFileCache;
import com.google.devtools.build.lib.actions.ActionKeyContext;
import com.google.devtools.build.lib.actions.ActionLogBufferPathGenerator;
import com.google.devtools.build.lib.actions.Artifact;
@@ -2001,9 +2002,16 @@ public abstract class BuildViewTestCase extends FoundationTestCase {
/** Creates instances of {@link ActionExecutionContext} consistent with test case. */
public class ActionExecutionContextBuilder {
+ private ActionInputFileCache actionInputFileCache = null;
private TreeMap<String, String> clientEnv = new TreeMap<>();
private ArtifactExpander artifactExpander = null;
+ public ActionExecutionContextBuilder setActionInputFileCache(
+ ActionInputFileCache actionInputFileCache) {
+ this.actionInputFileCache = actionInputFileCache;
+ return this;
+ }
+
public ActionExecutionContextBuilder setArtifactExpander(ArtifactExpander artifactExpander) {
this.artifactExpander = artifactExpander;
return this;
@@ -2012,7 +2020,7 @@ public abstract class BuildViewTestCase extends FoundationTestCase {
public ActionExecutionContext build() {
return new ActionExecutionContext(
new DummyExecutor(fileSystem, getExecRoot(), reporter),
- /*actionInputFileCache=*/ null,
+ actionInputFileCache,
/*actionInputPrefetcher=*/ null,
actionKeyContext,
/*metadataHandler=*/ null,