aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/google')
-rw-r--r--src/test/java/com/google/devtools/build/lib/exec/SpawnInputExpanderTest.java3
-rw-r--r--src/test/java/com/google/devtools/build/lib/skyframe/FilesetEntryFunctionTest.java12
2 files changed, 10 insertions, 5 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/exec/SpawnInputExpanderTest.java b/src/test/java/com/google/devtools/build/lib/exec/SpawnInputExpanderTest.java
index 67be7faaf4..e21fdbb4e8 100644
--- a/src/test/java/com/google/devtools/build/lib/exec/SpawnInputExpanderTest.java
+++ b/src/test/java/com/google/devtools/build/lib/exec/SpawnInputExpanderTest.java
@@ -271,7 +271,8 @@ public class SpawnInputExpanderTest {
}
private FilesetOutputSymlink filesetSymlink(String from, String to) {
- return new FilesetOutputSymlink(PathFragment.create(from), PathFragment.create(to));
+ return FilesetOutputSymlink.createForTesting(
+ PathFragment.create(from), PathFragment.create(to));
}
private ImmutableMap<PathFragment, ImmutableList<FilesetOutputSymlink>> simpleFilesetManifest() {
diff --git a/src/test/java/com/google/devtools/build/lib/skyframe/FilesetEntryFunctionTest.java b/src/test/java/com/google/devtools/build/lib/skyframe/FilesetEntryFunctionTest.java
index fafe4b7717..247b4dca5a 100644
--- a/src/test/java/com/google/devtools/build/lib/skyframe/FilesetEntryFunctionTest.java
+++ b/src/test/java/com/google/devtools/build/lib/skyframe/FilesetEntryFunctionTest.java
@@ -192,15 +192,18 @@ public final class FilesetEntryFunctionTest extends FoundationTestCase {
}
private static FilesetOutputSymlink symlink(String from, Artifact to) {
- return new FilesetOutputSymlink(PathFragment.create(from), to.getPath().asFragment());
+ return FilesetOutputSymlink.createForTesting(
+ PathFragment.create(from), to.getPath().asFragment());
}
private static FilesetOutputSymlink symlink(String from, String to) {
- return new FilesetOutputSymlink(PathFragment.create(from), PathFragment.create(to));
+ return FilesetOutputSymlink.createForTesting(
+ PathFragment.create(from), PathFragment.create(to));
}
private static FilesetOutputSymlink symlink(String from, RootedPath to) {
- return new FilesetOutputSymlink(PathFragment.create(from), to.asPath().asFragment());
+ return FilesetOutputSymlink.createForTesting(
+ PathFragment.create(from), to.asPath().asFragment());
}
private void assertSymlinksCreatedInOrder(
@@ -210,7 +213,8 @@ public final class FilesetEntryFunctionTest extends FoundationTestCase {
Collections2.transform(
evalFilesetTraversal(request).getSymlinks(),
// Strip the metadata from the actual results.
- (input) -> new FilesetOutputSymlink(input.name, input.target));
+ (input) ->
+ FilesetOutputSymlink.createForTesting(input.getName(), input.getTargetPath()));
assertThat(actual).containsExactlyElementsIn(expected).inOrder();
}