Skip to content

Commit 869bdd4

Browse files
committed
Fixup: #12690: Add VisibleForTesting
1 parent 04ee79b commit 869bdd4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xds/src/main/java/io/grpc/xds/internal/grpcservice/CachedChannelManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import static com.google.common.base.Preconditions.checkNotNull;
2020

2121
import com.google.auto.value.AutoValue;
22+
import com.google.common.annotations.VisibleForTesting;
2223
import io.grpc.ManagedChannel;
2324
import io.grpc.xds.internal.grpcservice.GrpcServiceConfig.GoogleGrpcConfig;
2425
import java.util.concurrent.atomic.AtomicReference;
@@ -48,6 +49,7 @@ public CachedChannelManager() {
4849
/**
4950
* Constructor for testing to inject a channel creator.
5051
*/
52+
@VisibleForTesting
5153
public CachedChannelManager(Function<GrpcServiceConfig, ManagedChannel> channelCreator) {
5254
this.channelCreator = checkNotNull(channelCreator, "channelCreator");
5355
}

0 commit comments

Comments
 (0)