diff options
author | 2017-03-21 14:42:53 +0000 | |
---|---|---|
committer | 2017-03-22 10:53:14 +0000 | |
commit | ec75531e3a82a5c422e6e11998cf63a404f876fe (patch) | |
tree | 3b86e2dd09af9e05ef921fc761f17bc7ccf1498b /src/test/java/com/google/devtools | |
parent | 5dc44f07e3b1101229032aded5bb4d9bed97cf91 (diff) |
--
PiperOrigin-RevId: 150750972
MOS_MIGRATED_REVID=150750972
Diffstat (limited to 'src/test/java/com/google/devtools')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/actions/util/DummyExecutor.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/actions/util/DummyExecutor.java b/src/test/java/com/google/devtools/build/lib/actions/util/DummyExecutor.java index 2c61ef7192..23248e0aad 100644 --- a/src/test/java/com/google/devtools/build/lib/actions/util/DummyExecutor.java +++ b/src/test/java/com/google/devtools/build/lib/actions/util/DummyExecutor.java @@ -18,6 +18,7 @@ import com.google.devtools.build.lib.actions.Executor; import com.google.devtools.build.lib.actions.Spawn; import com.google.devtools.build.lib.actions.SpawnActionContext; import com.google.devtools.build.lib.events.EventHandler; +import com.google.devtools.build.lib.util.BlazeClock; import com.google.devtools.build.lib.util.Clock; import com.google.devtools.build.lib.vfs.Path; import com.google.devtools.common.options.OptionsClassProvider; @@ -28,7 +29,7 @@ import com.google.devtools.common.options.OptionsClassProvider; public final class DummyExecutor implements Executor { private final Path inputDir; - private final EventHandler eventHandler; + private final EventHandler eventHandler; public DummyExecutor(Path inputDir) { this(inputDir, null); @@ -42,7 +43,7 @@ public final class DummyExecutor implements Executor { this.inputDir = inputDir; this.eventHandler = eventHandler; } - + @Override public Path getExecRoot() { return inputDir; @@ -50,7 +51,7 @@ public final class DummyExecutor implements Executor { @Override public Clock getClock() { - throw new UnsupportedOperationException(); + return BlazeClock.instance(); } @Override |