|
39 | 39 | import io.grpc.ConnectivityStateInfo; |
40 | 40 | import io.grpc.EquivalentAddressGroup; |
41 | 41 | import io.grpc.InsecureChannelCredentials; |
| 42 | +import io.grpc.InternalEquivalentAddressGroup; |
42 | 43 | import io.grpc.LoadBalancer; |
43 | 44 | import io.grpc.LoadBalancer.CreateSubchannelArgs; |
44 | 45 | import io.grpc.LoadBalancer.FixedResultPicker; |
|
81 | 82 | import io.grpc.xds.client.Stats.ClusterStats; |
82 | 83 | import io.grpc.xds.client.Stats.UpstreamLocalityStats; |
83 | 84 | import io.grpc.xds.client.XdsClient; |
84 | | -import io.grpc.xds.internal.XdsInternalAttributes; |
85 | 85 | import io.grpc.xds.internal.security.CommonTlsContextTestsUtil; |
86 | 86 | import io.grpc.xds.internal.security.SecurityProtocolNegotiators; |
87 | 87 | import io.grpc.xds.internal.security.SslContextProvider; |
@@ -917,7 +917,7 @@ public void endpointAddressesAttachedWithClusterName() { |
917 | 917 | assertThat(subchannel.getAttributes().get(ATTR_SUBCHANNEL_ADDRESS_NAME)).isEqualTo( |
918 | 918 | "authority-host-name"); |
919 | 919 | for (EquivalentAddressGroup eag : subchannel.getAllAddresses()) { |
920 | | - assertThat(eag.getAttributes().get(XdsInternalAttributes.ATTR_ADDRESS_NAME)) |
| 920 | + assertThat(eag.getAttributes().get(InternalEquivalentAddressGroup.ATTR_ADDRESS_NAME)) |
921 | 921 | .isEqualTo("authority-host-name"); |
922 | 922 | } |
923 | 923 |
|
@@ -968,7 +968,7 @@ public void endpointAddressesAttachedWithClusterName() { |
968 | 968 | // Sub Channel wrapper args won't have the address name although addresses will. |
969 | 969 | assertThat(subchannel.getAttributes().get(ATTR_SUBCHANNEL_ADDRESS_NAME)).isNull(); |
970 | 970 | for (EquivalentAddressGroup eag : subchannel.getAllAddresses()) { |
971 | | - assertThat(eag.getAttributes().get(XdsInternalAttributes.ATTR_ADDRESS_NAME)) |
| 971 | + assertThat(eag.getAttributes().get(InternalEquivalentAddressGroup.ATTR_ADDRESS_NAME)) |
972 | 972 | .isEqualTo("authority-host-name"); |
973 | 973 | } |
974 | 974 |
|
@@ -1123,7 +1123,7 @@ public String toString() { |
1123 | 1123 | // Unique but arbitrary string |
1124 | 1124 | .set(EquivalentAddressGroup.ATTR_LOCALITY_NAME, locality.toString()); |
1125 | 1125 | if (authorityHostname != null) { |
1126 | | - attributes.set(XdsInternalAttributes.ATTR_ADDRESS_NAME, authorityHostname); |
| 1126 | + attributes.set(InternalEquivalentAddressGroup.ATTR_ADDRESS_NAME, authorityHostname); |
1127 | 1127 | } |
1128 | 1128 | EquivalentAddressGroup eag = new EquivalentAddressGroup(new FakeSocketAddress(name), |
1129 | 1129 | attributes.build()); |
|
0 commit comments