aboutsummaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorEric Anderson <ejona@google.com>2018-07-02 10:47:40 -0700
committerEric Anderson <ejona@google.com>2018-07-09 13:00:17 -0700
commit9d6241eedce849493b86320a995fd27775f0bd40 (patch)
treede2db959ee7d141e6f330a6f210a1bef6f6d969c /testing
parent2b48210b73879767f4895c67d8c4e7787618b610 (diff)
downloadgrpc-grpc-java-9d6241eedce849493b86320a995fd27775f0bd40.tar.gz
Propagate EquivalentAddressGroup attributes to transports
Most of the changes are changing the signature of newClientTransport. Since this is annoying, I choose to introduce a ClientTransportOptions object to avoid the churn in the future. With ClientTransportOptions in place, there's only a few lines necessary of plumbing for the Attributes: add the field to ClientTransportOptions and populate it in InternalSubchannel. There are no consumers of the field in this commit.
Diffstat (limited to 'testing')
-rw-r--r--testing/src/main/java/io/grpc/internal/testing/AbstractClientTransportFactoryTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/src/main/java/io/grpc/internal/testing/AbstractClientTransportFactoryTest.java b/testing/src/main/java/io/grpc/internal/testing/AbstractClientTransportFactoryTest.java
index b4b8772f5..b2578240b 100644
--- a/testing/src/main/java/io/grpc/internal/testing/AbstractClientTransportFactoryTest.java
+++ b/testing/src/main/java/io/grpc/internal/testing/AbstractClientTransportFactoryTest.java
@@ -40,6 +40,7 @@ public abstract class AbstractClientTransportFactoryTest {
ClientTransportFactory transportFactory = newClientTransportFactory();
transportFactory.close();
transportFactory.newClientTransport(
- new InetSocketAddress("localhost", 12345), "localhost:" + 12345, "agent", null);
+ new InetSocketAddress("localhost", 12345),
+ new ClientTransportFactory.ClientTransportOptions());
}
}