diff options
author | ulfjack <ulfjack@google.com> | 2018-05-17 08:42:13 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-05-17 08:44:15 -0700 |
commit | 26e586d798f36faff23ae46cf120fd4bbeb36846 (patch) | |
tree | 4532c4859818a66607da3abd2e98a9653ddba423 /src/test/java/com/google/devtools/build/lib/buildeventstream/transports/BinaryFormatFileTransportTest.java | |
parent | 10adeaa300c80fdf58ac10cd398540ec6507d05b (diff) |
Rename BuildEventConverters to BuildEventContext
This is in preparation for adding options to the class, which can be used
to modify the behavior of build events posted to the BEP.
PiperOrigin-RevId: 196997573
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/buildeventstream/transports/BinaryFormatFileTransportTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/buildeventstream/transports/BinaryFormatFileTransportTest.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/buildeventstream/transports/BinaryFormatFileTransportTest.java b/src/test/java/com/google/devtools/build/lib/buildeventstream/transports/BinaryFormatFileTransportTest.java index fb3aea441b..0940ab3fb6 100644 --- a/src/test/java/com/google/devtools/build/lib/buildeventstream/transports/BinaryFormatFileTransportTest.java +++ b/src/test/java/com/google/devtools/build/lib/buildeventstream/transports/BinaryFormatFileTransportTest.java @@ -19,7 +19,7 @@ import static org.mockito.Mockito.when; import com.google.devtools.build.lib.buildeventstream.ArtifactGroupNamer; import com.google.devtools.build.lib.buildeventstream.BuildEvent; -import com.google.devtools.build.lib.buildeventstream.BuildEventConverters; +import com.google.devtools.build.lib.buildeventstream.BuildEventContext; import com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos; import com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.BuildStarted; import com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.Progress; @@ -70,21 +70,21 @@ public class BinaryFormatFileTransportTest { BuildEventStreamProtos.BuildEvent.newBuilder() .setStarted(BuildStarted.newBuilder().setCommand("build")) .build(); - when(buildEvent.asStreamProto(Matchers.<BuildEventConverters>any())).thenReturn(started); + when(buildEvent.asStreamProto(Matchers.<BuildEventContext>any())).thenReturn(started); BinaryFormatFileTransport transport = new BinaryFormatFileTransport(output.getAbsolutePath(), pathConverter); transport.sendBuildEvent(buildEvent, artifactGroupNamer); BuildEventStreamProtos.BuildEvent progress = BuildEventStreamProtos.BuildEvent.newBuilder().setProgress(Progress.newBuilder()).build(); - when(buildEvent.asStreamProto(Matchers.<BuildEventConverters>any())).thenReturn(progress); + when(buildEvent.asStreamProto(Matchers.<BuildEventContext>any())).thenReturn(progress); transport.sendBuildEvent(buildEvent, artifactGroupNamer); BuildEventStreamProtos.BuildEvent completed = BuildEventStreamProtos.BuildEvent.newBuilder() .setCompleted(TargetComplete.newBuilder().setSuccess(true)) .build(); - when(buildEvent.asStreamProto(Matchers.<BuildEventConverters>any())).thenReturn(completed); + when(buildEvent.asStreamProto(Matchers.<BuildEventContext>any())).thenReturn(completed); transport.sendBuildEvent(buildEvent, artifactGroupNamer); transport.close().get(); @@ -107,7 +107,7 @@ public class BinaryFormatFileTransportTest { BuildEventStreamProtos.BuildEvent.newBuilder() .setStarted(BuildStarted.newBuilder().setCommand("build")) .build(); - when(buildEvent.asStreamProto(Matchers.<BuildEventConverters>any())).thenReturn(started); + when(buildEvent.asStreamProto(Matchers.<BuildEventContext>any())).thenReturn(started); BinaryFormatFileTransport transport = new BinaryFormatFileTransport(path, pathConverter); transport.sendBuildEvent(buildEvent, artifactGroupNamer); @@ -126,7 +126,7 @@ public class BinaryFormatFileTransportTest { BuildEventStreamProtos.BuildEvent.newBuilder() .setStarted(BuildStarted.newBuilder().setCommand("build")) .build(); - when(buildEvent.asStreamProto(Matchers.<BuildEventConverters>any())).thenReturn(started); + when(buildEvent.asStreamProto(Matchers.<BuildEventContext>any())).thenReturn(started); BinaryFormatFileTransport transport = new BinaryFormatFileTransport(output.getAbsolutePath(), pathConverter); @@ -153,7 +153,7 @@ public class BinaryFormatFileTransportTest { BuildEventStreamProtos.BuildEvent.newBuilder() .setStarted(BuildStarted.newBuilder().setCommand("build")) .build(); - when(buildEvent.asStreamProto(Matchers.<BuildEventConverters>any())).thenReturn(started); + when(buildEvent.asStreamProto(Matchers.<BuildEventContext>any())).thenReturn(started); BinaryFormatFileTransport transport = new BinaryFormatFileTransport(output.getAbsolutePath(), pathConverter); |