Home
last modified time | relevance | path

Searched refs:serverHandshaker (Results 1 – 5 of 5) sorted by relevance

/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/
DNettyTsiHandshakerTest.java46 private final NettyTsiHandshaker serverHandshaker = field in NettyTsiHandshakerTest
72 if (serverHandshaker.processBytesFromPeer(clientData)) { in processPeerHandshakeShouldAcceptPartialFrames()
89 assertTrue(serverHandshaker.isInProgress()); in isInProgress()
94 assertFalse(serverHandshaker.isInProgress()); in isInProgress()
101 assertNotNull(serverHandshaker.extractPeer()); in extractPeer_notNull()
119 assertNotNull(serverHandshaker.extractPeerObject()); in extractPeerObject_notNull()
154 NettyTsiHandshaker serverHandshaker, in doHandshake() argument
160 if (!(clientHandshaker.isInProgress() || serverHandshaker.isInProgress())) { in doHandshake()
167 serverHandshaker.processBytesFromPeer(clientData); in doHandshake()
171 serverHandshaker.getBytesToSendToPeer(serverData); in doHandshake()
[all …]
DFakeTsiTest.java61 TsiHandshaker serverHandshaker = FakeTsiHandshaker.newFakeHandshakerServer(); in newHandshakers() local
62 return new Handshakers(clientHandshaker, serverHandshaker); in newHandshakers()
85 TsiHandshaker serverHandshaker = handshakers.getServer(); in handshakeStateOrderTest() local
98 serverHandshaker.processBytesFromPeer(transportBuffer); in handshakeStateOrderTest()
108 serverHandshaker.getBytesToSendToPeer(transportBuffer); in handshakeStateOrderTest()
119 serverHandshaker.getBytesToSendToPeer(transportBuffer); in handshakeStateOrderTest()
130 serverHandshaker.processBytesFromPeer(transportBuffer); in handshakeStateOrderTest()
140 serverHandshaker.getBytesToSendToPeer(transportBuffer); in handshakeStateOrderTest()
151 serverHandshaker.getBytesToSendToPeer(transportBuffer); in handshakeStateOrderTest()
DAltsProtocolNegotiatorTest.java109 private final NettyTsiHandshaker serverHandshaker = new NettyTsiHandshaker(mockHandshaker); field in AltsProtocolNegotiatorTest
208 TsiFrameProtector serverProtector = serverHandshaker.createFrameProtector(channel.alloc()); in protectShouldRoundtrip()
255 serverHandshaker.createFrameProtector(serverFrameSize, channel.alloc()); in unprotectLargeIncomingFrame()
360 assertTrue(serverHandshaker.processBytesFromPeer(clientFrame)); in doHandshake()
364 serverHandshaker.getBytesToSendToPeer(serverFrame); in doHandshake()
370 assertTrue(serverHandshaker.processBytesFromPeer(clientFrame)); in doHandshake()
374 serverHandshaker.getBytesToSendToPeer(serverFrame); in doHandshake()
378 assertFalse(serverHandshaker.isInProgress()); in doHandshake()
DTsiTest.java82 TsiHandshaker serverHandshaker = handshakers.getServer(); in performHandshake() local
88 while (clientHandshaker.isInProgress() || serverHandshaker.isInProgress()) { in performHandshake()
89 for (TsiHandshaker handshaker : new TsiHandshaker[] {clientHandshaker, serverHandshaker}) { in performHandshake()
105 serverHandshaker.extractPeer(); in performHandshake()
DAltsTsiTest.java83 TsiHandshaker serverHandshaker = new AltsTsiHandshaker(false, server); in newHandshakers() local
84 return new Handshakers(clientHandshaker, serverHandshaker); in newHandshakers()