Home
last modified time | relevance | path

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

/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DManagedChannelImplIdlenessTest.java104 @Mock private LoadBalancer mockLoadBalancer; field in ManagedChannelImplIdlenessTest
116 when(mockLoadBalancerFactory.newLoadBalancer(any(Helper.class))).thenReturn(mockLoadBalancer); in setUp()
187 verify(mockLoadBalancer).handleResolvedAddressGroups(servers, Attributes.EMPTY); in newCallExitsIdleness()
203 verify(mockLoadBalancer, never()).shutdown(); in newCallRefreshesIdlenessTimer()
214 verify(mockLoadBalancer, never()).shutdown(); in newCallRefreshesIdlenessTimer()
219 verify(mockLoadBalancer).shutdown(); in newCallRefreshesIdlenessTimer()
245 verify(mockLoadBalancer, never()).shutdown(); in delayedTransportHoldsOffIdleness()
247 verify(mockLoadBalancer).shutdown(); in delayedTransportHoldsOffIdleness()
292 verify(mockLoadBalancer, never()).shutdown(); in realTransportsHoldsOffIdleness()
294 verify(mockLoadBalancer).shutdown(); in realTransportsHoldsOffIdleness()
[all …]
DManagedChannelImplTest.java183 private LoadBalancer mockLoadBalancer; field in ManagedChannelImplTest
253 when(mockLoadBalancerFactory.newLoadBalancer(any(Helper.class))).thenReturn(mockLoadBalancer); in setUp()
501 verify(mockLoadBalancer).shutdown(); in subtestCallsAndShutdown()
509 verify(mockLoadBalancer, never()).shutdown(); in subtestCallsAndShutdown()
523 verify(mockLoadBalancer).shutdown(); in subtestCallsAndShutdown()
568 verify(mockLoadBalancer).handleResolvedAddressGroups( in noMoreCallbackAfterLoadBalancerShutdown()
582 verify(mockLoadBalancer, times(2)) in noMoreCallbackAfterLoadBalancerShutdown()
587 verify(mockLoadBalancer) in noMoreCallbackAfterLoadBalancerShutdown()
592 verify(mockLoadBalancer).handleNameResolutionError(resolutionError); in noMoreCallbackAfterLoadBalancerShutdown()
594 verifyNoMoreInteractions(mockLoadBalancer); in noMoreCallbackAfterLoadBalancerShutdown()
[all …]