File tree 2 files changed +4
-2
lines changed
src/test/java/com/google/devtools/build/lib/actions/util 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ java_library(
49
49
"//src/main/java/com/google/devtools/common/options" ,
50
50
"//src/main/java/net/starlark/java/syntax" ,
51
51
"//src/main/protobuf:action_cache_java_proto" ,
52
+ "//src/test/java/com/google/devtools/build/lib/testutil" ,
52
53
"//third_party:guava" ,
53
54
"//third_party:jsr305" ,
54
55
"//third_party:truth" ,
Original file line number Diff line number Diff line change 16
16
import com .google .devtools .build .lib .actions .ActionContext ;
17
17
import com .google .devtools .build .lib .actions .ActionExecutionContext .ShowSubcommands ;
18
18
import com .google .devtools .build .lib .actions .Executor ;
19
- import com .google .devtools .build .lib .clock .BlazeClock ;
20
19
import com .google .devtools .build .lib .clock .Clock ;
20
+ import com .google .devtools .build .lib .testutil .ManualClock ;
21
21
import com .google .devtools .build .lib .vfs .FileSystem ;
22
22
import com .google .devtools .build .lib .vfs .Path ;
23
23
import com .google .devtools .common .options .OptionsProvider ;
@@ -27,6 +27,7 @@ public class DummyExecutor implements Executor {
27
27
28
28
private final FileSystem fileSystem ;
29
29
private final Path inputDir ;
30
+ private final ManualClock clock = new ManualClock ();
30
31
31
32
public DummyExecutor (FileSystem fileSystem , Path inputDir ) {
32
33
this .fileSystem = fileSystem ;
@@ -49,7 +50,7 @@ public Path getExecRoot() {
49
50
50
51
@ Override
51
52
public Clock getClock () {
52
- return BlazeClock . instance () ;
53
+ return clock ;
53
54
}
54
55
55
56
@ Override
You can’t perform that action at this time.
0 commit comments