Skip to content

Commit c84946a

Browse files
committed
Delete invasive test inspection methods
1 parent 09f18f1 commit c84946a

3 files changed

Lines changed: 2 additions & 12 deletions

File tree

xds/src/main/java/io/grpc/xds/client/ControlPlaneClient.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,6 @@ boolean isReady() {
206206
return adsStream != null && adsStream.call != null && adsStream.call.isReady();
207207
}
208208

209-
@Nullable
210-
@VisibleForTesting
211-
Map<XdsResourceType<?>, String> getNonce() {
212-
if (adsStream == null) {
213-
return null;
214-
}
215-
return adsStream.respNonces;
216-
}
217-
218209
/**
219210
* Starts a timer for each requested resource that hasn't been responded to and
220211
* has been waiting for the channel to get ready.

xds/src/main/java/io/grpc/xds/client/XdsClientImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public void uncaughtException(Thread t, Throwable e) {
8484
final Map<ServerInfo, LoadReportClient> serverLrsClientMap =
8585
new HashMap<>();
8686

87-
final Map<ServerInfo, ControlPlaneClient> serverCpClientMap = new HashMap<>();
87+
private final Map<ServerInfo, ControlPlaneClient> serverCpClientMap = new HashMap<>();
8888
private final Map<XdsResourceType<? extends ResourceUpdate>,
8989
Map<String, ResourceSubscriber<? extends ResourceUpdate>>>
9090
resourceSubscribers = new HashMap<>();

xds/src/test/java/io/grpc/xds/GrpcXdsClientImplTestBase.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
import io.grpc.xds.client.Bootstrapper.BootstrapInfo;
8888
import io.grpc.xds.client.Bootstrapper.CertificateProviderInfo;
8989
import io.grpc.xds.client.Bootstrapper.ServerInfo;
90-
import io.grpc.xds.client.ControlPlaneClientTestBase;
9190
import io.grpc.xds.client.EnvoyProtoData.Node;
9291
import io.grpc.xds.client.LoadStatsManager2.ClusterDropStats;
9392
import io.grpc.xds.client.Locality;
@@ -142,7 +141,7 @@
142141
@RunWith(JUnit4.class)
143142
// The base class was used to test both xds v2 and v3. V2 is dropped now so the base class is not
144143
// necessary. Still keep it for future version usage. Remove if too much trouble to maintain.
145-
public abstract class GrpcXdsClientImplTestBase extends ControlPlaneClientTestBase {
144+
public abstract class GrpcXdsClientImplTestBase {
146145
private static final String SERVER_URI = "trafficdirector.googleapis.com";
147146
private static final String SERVER_URI_CUSTOME_AUTHORITY = "trafficdirector2.googleapis.com";
148147
private static final String SERVER_URI_EMPTY_AUTHORITY = "trafficdirector3.googleapis.com";

0 commit comments

Comments
 (0)