Home
last modified time | relevance | path

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

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DServiceTest.java118 RpcChannel mockChannel = control.createMock(RpcChannel.class); in testStub() local
119 TestService stub = TestService.newStub(mockChannel); in testStub()
121 mockChannel.callMethod( in testStub()
127 mockChannel.callMethod( in testStub()
144 BlockingRpcChannel mockChannel = in testBlockingStub() local
147 TestService.newBlockingStub(mockChannel); in testBlockingStub()
152 EasyMock.expect(mockChannel.callBlockingMethod( in testBlockingStub()
157 EasyMock.expect(mockChannel.callBlockingMethod( in testBlockingStub()
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DForwardingChannelBuilderTest.java79 ManagedChannel mockChannel = mock(ManagedChannel.class); in buildReturnsDelegateBuildByDefualt() local
80 doReturn(mockChannel).when(mockDelegate).build(); in buildReturnsDelegateBuildByDefualt()
82 assertThat(testChannelBuilder.build()).isSameAs(mockChannel); in buildReturnsDelegateBuildByDefualt()