Home
last modified time | relevance | path

Searched refs:attrsCaptor (Results 1 – 3 of 3) sorted by relevance

/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DCallCredentialsApplyingTest.java128 ArgumentCaptor<Attributes> attrsCaptor = ArgumentCaptor.forClass(null); in parameterPropagation_base() local
129 verify(mockCreds).applyRequestMetadata(same(method), attrsCaptor.capture(), same(mockExecutor), in parameterPropagation_base()
131 Attributes attrs = attrsCaptor.getValue(); in parameterPropagation_base()
148 ArgumentCaptor<Attributes> attrsCaptor = ArgumentCaptor.forClass(null); in parameterPropagation_overrideByTransport() local
149 verify(mockCreds).applyRequestMetadata(same(method), attrsCaptor.capture(), same(mockExecutor), in parameterPropagation_overrideByTransport()
151 Attributes attrs = attrsCaptor.getValue(); in parameterPropagation_overrideByTransport()
170 ArgumentCaptor<Attributes> attrsCaptor = ArgumentCaptor.forClass(null); in parameterPropagation_overrideByCallOptions() local
171 verify(mockCreds).applyRequestMetadata(same(method), attrsCaptor.capture(), in parameterPropagation_overrideByCallOptions()
173 Attributes attrs = attrsCaptor.getValue(); in parameterPropagation_overrideByCallOptions()
DManagedChannelImplTest.java1446 ArgumentCaptor<Attributes> attrsCaptor = ArgumentCaptor.forClass(Attributes.class); in informationPropagatedToNewStreamAndCallCredentials() local
1448 verify(creds).applyRequestMetadata(same(method), attrsCaptor.capture(), in informationPropagatedToNewStreamAndCallCredentials()
1451 assertEquals(AUTHORITY, attrsCaptor.getValue().get(CallCredentials.ATTR_AUTHORITY)); in informationPropagatedToNewStreamAndCallCredentials()
1453 attrsCaptor.getValue().get(CallCredentials.ATTR_SECURITY_LEVEL)); in informationPropagatedToNewStreamAndCallCredentials()
1471 verify(creds, times(2)).applyRequestMetadata(same(method), attrsCaptor.capture(), in informationPropagatedToNewStreamAndCallCredentials()
1474 assertEquals(AUTHORITY, attrsCaptor.getValue().get(CallCredentials.ATTR_AUTHORITY)); in informationPropagatedToNewStreamAndCallCredentials()
1476 attrsCaptor.getValue().get(CallCredentials.ATTR_SECURITY_LEVEL)); in informationPropagatedToNewStreamAndCallCredentials()
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DPickFirstLoadBalancerTest.java70 private ArgumentCaptor<Attributes> attrsCaptor; field in PickFirstLoadBalancerTest
105 verify(mockHelper).createSubchannel(eq(servers), attrsCaptor.capture()); in pickAfterResolved()