aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java
diff options
context:
space:
mode:
authorGravatar Carmi Grushko <carmi@google.com>2016-11-09 21:51:27 +0000
committerGravatar Klaus Aehlig <aehlig@google.com>2016-11-10 09:21:53 +0000
commit4665e709054dcfe34d1e246caefb8847a560e22a (patch)
tree7166c1f550c6b299f314f2d4cc366ca7381431f1 /src/test/java
parentf83f70ed3921b5ed347f063b593eae36f6d950f3 (diff)
Migrate ActionOwner to @AutoValue.
-- MOS_MIGRATED_REVID=138680612
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/actions/util/ActionsTestUtil.java2
-rw-r--r--src/test/java/com/google/devtools/build/lib/runtime/ExperimentalStateTrackerTest.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/actions/util/ActionsTestUtil.java b/src/test/java/com/google/devtools/build/lib/actions/util/ActionsTestUtil.java
index fed3d9d05c..53b83c682e 100644
--- a/src/test/java/com/google/devtools/build/lib/actions/util/ActionsTestUtil.java
+++ b/src/test/java/com/google/devtools/build/lib/actions/util/ActionsTestUtil.java
@@ -189,7 +189,7 @@ public final class ActionsTestUtil {
Root.asSourceRoot(new InMemoryFileSystem().getRootDirectory()));
public static final ActionOwner NULL_ACTION_OWNER =
- new ActionOwner(
+ ActionOwner.create(
NULL_LABEL, null, "dummy-configuration-mnemonic", null, "dummy-configuration", null);
public static final ArtifactOwner NULL_ARTIFACT_OWNER =
diff --git a/src/test/java/com/google/devtools/build/lib/runtime/ExperimentalStateTrackerTest.java b/src/test/java/com/google/devtools/build/lib/runtime/ExperimentalStateTrackerTest.java
index a0f41d523d..5594a32734 100644
--- a/src/test/java/com/google/devtools/build/lib/runtime/ExperimentalStateTrackerTest.java
+++ b/src/test/java/com/google/devtools/build/lib/runtime/ExperimentalStateTrackerTest.java
@@ -390,7 +390,7 @@ public class ExperimentalStateTrackerTest extends FoundationTestCase {
"/home/user/bazel/out/abcdef/some/very/very/long/path/for/some/library/directory/foo.jar");
Label label =
Label.parseAbsolute("//some/very/very/long/path/for/some/library/directory:libfoo");
- ActionOwner owner = new ActionOwner(label, null, null, null, "fedcba", null);
+ ActionOwner owner = ActionOwner.create(label, null, null, null, "fedcba", null);
when(action.getOwner()).thenReturn(owner);
clock.advanceMillis(TimeUnit.SECONDS.toMillis(3));
@@ -517,7 +517,7 @@ public class ExperimentalStateTrackerTest extends FoundationTestCase {
Label labelFooTest = Label.parseAbsolute("//foo/bar:footest");
ConfiguredTarget targetFooTest = Mockito.mock(ConfiguredTarget.class);
when(targetFooTest.getLabel()).thenReturn(labelFooTest);
- ActionOwner fooOwner = new ActionOwner(labelFooTest, null, null, null, "abcdef", null);
+ ActionOwner fooOwner = ActionOwner.create(labelFooTest, null, null, null, "abcdef", null);
Label labelBarTest = Label.parseAbsolute("//baz:bartest");
ConfiguredTarget targetBarTest = Mockito.mock(ConfiguredTarget.class);
@@ -525,7 +525,7 @@ public class ExperimentalStateTrackerTest extends FoundationTestCase {
TestFilteringCompleteEvent filteringComplete = Mockito.mock(TestFilteringCompleteEvent.class);
when(filteringComplete.getTestTargets())
.thenReturn(ImmutableSet.of(targetFooTest, targetBarTest));
- ActionOwner barOwner = new ActionOwner(labelBarTest, null, null, null, "fedcba", null);
+ ActionOwner barOwner = ActionOwner.create(labelBarTest, null, null, null, "fedcba", null);
stateTracker.testFilteringComplete(filteringComplete);