Ping pong test.
(Handshakers handshakers, RegisterRef ref)
| 158 | |
| 159 | /** Ping pong test. */ |
| 160 | public static void pingPongTest(Handshakers handshakers, RegisterRef ref) |
| 161 | throws GeneralSecurityException { |
| 162 | performHandshake(DEFAULT_TRANSPORT_BUFFER_SIZE, handshakers); |
| 163 | |
| 164 | TsiFrameProtector clientProtector = handshakers.getClient().createFrameProtector(alloc); |
| 165 | TsiFrameProtector serverProtector = handshakers.getServer().createFrameProtector(alloc); |
| 166 | |
| 167 | sendMessage(clientProtector, serverProtector, -1, EXAMPLE_MESSAGE1, ref); |
| 168 | sendMessage(serverProtector, clientProtector, -1, EXAMPLE_MESSAGE2, ref); |
| 169 | |
| 170 | clientProtector.destroy(); |
| 171 | serverProtector.destroy(); |
| 172 | } |
| 173 | |
| 174 | /** Ping pong test with exact frame size. */ |
| 175 | public static void pingPongExactFrameSizeTest(Handshakers handshakers, RegisterRef ref) |
no test coverage detected