Searched refs:mockHelper (Results 1 – 2 of 2) sorted by relevance
/external/grpc-grpc-java/core/src/test/java/io/grpc/ |
D | PickFirstLoadBalancerTest.java | 72 private Helper mockHelper; field in PickFirstLoadBalancerTest 88 when(mockHelper.createSubchannel( in setUp() 93 mockHelper); in setUp() 105 verify(mockHelper).createSubchannel(eq(servers), attrsCaptor.capture()); in pickAfterResolved() 106 verify(mockHelper).updateBalancingState(eq(CONNECTING), pickerCaptor.capture()); in pickAfterResolved() 112 verifyNoMoreInteractions(mockHelper); in pickAfterResolved() 122 verify(mockHelper).createSubchannel(anyListOf(EquivalentAddressGroup.class), in pickAfterResolvedAndUnchanged() 124 verify(mockHelper) in pickAfterResolvedAndUnchanged() 127 verify(mockHelper).updateSubchannelAddresses( in pickAfterResolvedAndUnchanged() 130 verifyNoMoreInteractions(mockHelper); in pickAfterResolvedAndUnchanged() [all …]
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/util/ |
D | RoundRobinLoadBalancerTest.java | 105 private Helper mockHelper; field in RoundRobinLoadBalancerTest 123 when(mockHelper.createSubchannel(any(EquivalentAddressGroup.class), any(Attributes.class))) in setUp() 135 .newLoadBalancer(mockHelper); in setUp() 149 verify(mockHelper, times(3)).createSubchannel(eagCaptor.capture(), in pickAfterResolved() 158 verify(mockHelper, times(2)) in pickAfterResolved() 165 verifyNoMoreInteractions(mockHelper); in pickAfterResolved() 200 }).when(mockHelper).createSubchannel(any(EquivalentAddressGroup.class), any(Attributes.class)); in pickAfterResolvedUpdatedHosts() 204 InOrder inOrder = inOrder(mockHelper); in pickAfterResolvedUpdatedHosts() 206 inOrder.verify(mockHelper).updateBalancingState(eq(READY), pickerCaptor.capture()); in pickAfterResolvedUpdatedHosts() 236 verify(mockHelper, times(3)).createSubchannel(any(EquivalentAddressGroup.class), in pickAfterResolvedUpdatedHosts() [all …]
|