Home
last modified time | relevance | path

Searched refs:mockArgs (Results 1 – 2 of 2) sorted by relevance

/external/grpc-grpc-java/core/src/test/java/io/grpc/util/
DRoundRobinLoadBalancerTest.java108 private PickSubchannelArgs mockArgs; field in RoundRobinLoadBalancerTest
140 verifyNoMoreInteractions(mockArgs); in tearDown()
248 assertEquals(PickResult.withNoResult(), pickerCaptor.getValue().pickSubchannel(mockArgs)); in pickAfterResolvedUpdatedHosts()
306 assertEquals(subchannel, picker.pickSubchannel(mockArgs).getSubchannel()); in pickerRoundRobin()
307 assertEquals(subchannel1, picker.pickSubchannel(mockArgs).getSubchannel()); in pickerRoundRobin()
308 assertEquals(subchannel2, picker.pickSubchannel(mockArgs).getSubchannel()); in pickerRoundRobin()
309 assertEquals(subchannel, picker.pickSubchannel(mockArgs).getSubchannel()); in pickerRoundRobin()
316 assertEquals(null, picker.pickSubchannel(mockArgs).getSubchannel()); in pickerEmptyList()
318 picker.pickSubchannel(mockArgs).getStatus()); in pickerEmptyList()
326 LoadBalancer.PickResult pickResult = pickerCaptor.getValue().pickSubchannel(mockArgs); in nameResolutionErrorWithNoChannels()
[all …]
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DPickFirstLoadBalancerTest.java76 private PickSubchannelArgs mockArgs; field in PickFirstLoadBalancerTest
98 verifyNoMoreInteractions(mockArgs); in tearDown()
109 assertEquals(pickerCaptor.getValue().pickSubchannel(mockArgs), in pickAfterResolved()
110 pickerCaptor.getValue().pickSubchannel(mockArgs)); in pickAfterResolved()
145 assertEquals(mockSubchannel, pickerCaptor.getValue().pickSubchannel(mockArgs).getSubchannel()); in pickAfterResolvedAndChanged()
165 Subchannel subchannel = pickerCaptor.getValue().pickSubchannel(mockArgs).getSubchannel(); in pickAfterStateChangeAfterResolution()
174 assertEquals(error, pickerCaptor.getValue().pickSubchannel(mockArgs).getStatus()); in pickAfterStateChangeAfterResolution()
178 assertEquals(Status.OK, pickerCaptor.getValue().pickSubchannel(mockArgs).getStatus()); in pickAfterStateChangeAfterResolution()
182 assertEquals(subchannel, pickerCaptor.getValue().pickSubchannel(mockArgs).getSubchannel()); in pickAfterStateChangeAfterResolution()
192 PickResult pickResult = pickerCaptor.getValue().pickSubchannel(mockArgs); in nameResolutionError()
[all …]