diff options
author | 2018-05-17 08:42:13 -0700 | |
---|---|---|
committer | 2018-05-17 08:44:15 -0700 | |
commit | 26e586d798f36faff23ae46cf120fd4bbeb36846 (patch) | |
tree | 4532c4859818a66607da3abd2e98a9653ddba423 /src/test/java/com/google/devtools/build/lib/runtime | |
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/runtime')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/runtime/BuildEventStreamerTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/runtime/BuildEventStreamerTest.java b/src/test/java/com/google/devtools/build/lib/runtime/BuildEventStreamerTest.java index 0235a3aca6..5a0ea34e55 100644 --- a/src/test/java/com/google/devtools/build/lib/runtime/BuildEventStreamerTest.java +++ b/src/test/java/com/google/devtools/build/lib/runtime/BuildEventStreamerTest.java @@ -41,7 +41,7 @@ import com.google.devtools.build.lib.analysis.config.FragmentOptions; import com.google.devtools.build.lib.buildeventstream.AnnounceBuildEventTransportsEvent; 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.BuildEventId; import com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos; import com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.BuildEventId.NamedSetOfFilesId; @@ -103,7 +103,7 @@ public class BuildEventStreamerTest extends FoundationTestCase { events.add(event); eventsAsProtos.add( event.asStreamProto( - new BuildEventConverters() { + new BuildEventContext() { @Override public ArtifactGroupNamer artifactGroupNamer() { return namer; @@ -166,7 +166,7 @@ public class BuildEventStreamerTest extends FoundationTestCase { } @Override - public BuildEventStreamProtos.BuildEvent asStreamProto(BuildEventConverters converters) { + public BuildEventStreamProtos.BuildEvent asStreamProto(BuildEventContext converters) { return GenericBuildEvent.protoChaining(this).build(); } @@ -210,7 +210,7 @@ public class BuildEventStreamerTest extends FoundationTestCase { } @Override - public BuildEventStreamProtos.BuildEvent asStreamProto(BuildEventConverters converters) { + public BuildEventStreamProtos.BuildEvent asStreamProto(BuildEventContext converters) { BuildEventStreamProtos.NamedSetOfFiles.Builder builder = BuildEventStreamProtos.NamedSetOfFiles.newBuilder(); for (NestedSet<Artifact> artifactset : artifacts) { @@ -255,7 +255,7 @@ public class BuildEventStreamerTest extends FoundationTestCase { } @Override - public BuildEventStreamProtos.BuildEvent asStreamProto(BuildEventConverters converters) { + public BuildEventStreamProtos.BuildEvent asStreamProto(BuildEventContext converters) { return GenericBuildEvent.protoChaining(this).build(); } } |