Searched refs:MockAltsHandshakerResp (Results 1 – 3 of 3) sorted by relevance
73 .thenReturn(MockAltsHandshakerResp.getErrorResponse()); in startClientHandshakeFailure()79 assertThat(ex).hasMessageThat().contains(MockAltsHandshakerResp.getTestErrorDetails()); in startClientHandshakeFailure()86 .thenReturn(MockAltsHandshakerResp.getOkResponse(0)); in startClientHandshakeSuccess()90 assertEquals(ByteString.copyFrom(outFrame), MockAltsHandshakerResp.getOutFrame()); in startClientHandshakeSuccess()99 .thenReturn(MockAltsHandshakerResp.getOkResponse(0)); in startClientHandshakeWithOptions()102 assertEquals(ByteString.copyFrom(outFrame), MockAltsHandshakerResp.getOutFrame()); in startClientHandshakeWithOptions()122 .thenReturn(MockAltsHandshakerResp.getErrorResponse()); in startServerHandshakeFailure()129 assertThat(ex).hasMessageThat().contains(MockAltsHandshakerResp.getTestErrorDetails()); in startServerHandshakeFailure()136 .thenReturn(MockAltsHandshakerResp.getOkResponse(BYTES_CONSUMED)); in startServerHandshakeSuccess()141 assertEquals(ByteString.copyFrom(outFrame), MockAltsHandshakerResp.getOutFrame()); in startServerHandshakeSuccess()[all …]
94 MockAltsHandshakerResp.getTestPeerAccount(), in verifyHandshakePeer()99 MockAltsHandshakerResp.getTestPeerAccount(), in verifyHandshakePeer()166 return MockAltsHandshakerResp.getErrorResponse(); in send()168 return MockAltsHandshakerResp.getFinishedResponse(req.getNext().getInBytes().size()); in send()185 return MockAltsHandshakerResp.getErrorResponse(); in send()188 return MockAltsHandshakerResp.getErrorResponse(); in send()191 return MockAltsHandshakerResp.getOkResponse(bytesConsumed); in send()
33 class MockAltsHandshakerResp { class