@@ -156,14 +156,14 @@ TEST_P(CiliumWebSocketIntegrationTest, AcceptedWebSocket) {
156
156
response->waitForHeaders ();
157
157
EXPECT_EQ (" 101" , response->headers ().getStatusValue ());
158
158
159
- auto clientConn = codec_client_->connection ();
159
+ auto client_conn = codec_client_->connection ();
160
160
161
161
// Create websocket framed data & write it on the client connection
162
162
Buffer::OwnedImpl buf{" \x82\x5 "
163
163
" hello" };
164
- clientConn ->write (buf, false );
164
+ client_conn ->write (buf, false );
165
165
// Run the dispatcher so that the write event is handled
166
- clientConn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
166
+ client_conn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
167
167
168
168
std::string data;
169
169
ASSERT_TRUE (fake_upstream_connection->waitForData (5 , &data));
@@ -187,9 +187,9 @@ TEST_P(CiliumWebSocketIntegrationTest, AcceptedWebSocket) {
187
187
" hello21"
188
188
" \x82\x3 "
189
189
" foo" );
190
- clientConn ->write (buf, false );
190
+ client_conn ->write (buf, false );
191
191
// Run the dispatcher so that the write event is handled
192
- clientConn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
192
+ client_conn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
193
193
194
194
ASSERT_TRUE (fake_upstream_connection->waitForData (seen_data_len + 16 , &data));
195
195
ASSERT_EQ (data.substr (seen_data_len), " hello2hello21foo" );
@@ -211,9 +211,9 @@ TEST_P(CiliumWebSocketIntegrationTest, AcceptedWebSocket) {
211
211
" len16" ,
212
212
9 };
213
213
buf.add (frame16);
214
- clientConn ->write (buf, false );
214
+ client_conn ->write (buf, false );
215
215
// Run the dispatcher so that the write event is handled
216
- clientConn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
216
+ client_conn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
217
217
218
218
ASSERT_TRUE (fake_upstream_connection->waitForData (seen_data_len + 5 , &data));
219
219
ASSERT_EQ (data.substr (seen_data_len), " len16" );
@@ -238,9 +238,9 @@ TEST_P(CiliumWebSocketIntegrationTest, AcceptedWebSocket) {
238
238
" len64" ,
239
239
15 };
240
240
buf.add (frame64);
241
- clientConn ->write (buf, false );
241
+ client_conn ->write (buf, false );
242
242
// Run the dispatcher so that the write event is handled
243
- clientConn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
243
+ client_conn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
244
244
245
245
ASSERT_TRUE (fake_upstream_connection->waitForData (seen_data_len + 5 , &data));
246
246
ASSERT_EQ (data.substr (seen_data_len), " len64" );
@@ -259,9 +259,9 @@ TEST_P(CiliumWebSocketIntegrationTest, AcceptedWebSocket) {
259
259
" hello"
260
260
" \x82\xe "
261
261
" gap " );
262
- clientConn ->write (buf, false );
262
+ client_conn ->write (buf, false );
263
263
// Run the dispatcher so that the write event is handled
264
- clientConn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
264
+ client_conn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
265
265
266
266
ASSERT_TRUE (fake_upstream_connection->waitForData (seen_data_len + 9 , &data));
267
267
ASSERT_EQ (data.substr (seen_data_len), " hellogap " );
@@ -273,9 +273,9 @@ TEST_P(CiliumWebSocketIntegrationTest, AcceptedWebSocket) {
273
273
buf.add (" in between"
274
274
" \x82\x3 "
275
275
" foo" );
276
- clientConn ->write (buf, false );
276
+ client_conn ->write (buf, false );
277
277
// Run the dispatcher so that the write event is handled
278
- clientConn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
278
+ client_conn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
279
279
280
280
ASSERT_TRUE (fake_upstream_connection->waitForData (seen_data_len + 13 , &data));
281
281
ASSERT_EQ (data.substr (seen_data_len), " in betweenfoo" );
@@ -298,9 +298,9 @@ TEST_P(CiliumWebSocketIntegrationTest, AcceptedWebSocket) {
298
298
buf.add (" \x82\x8e " );
299
299
buf.add (mask, 4 );
300
300
buf.add (masked.data (), masked.length ());
301
- clientConn ->write (buf, false );
301
+ client_conn ->write (buf, false );
302
302
// Run the dispatcher so that the write event is handled
303
- clientConn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
303
+ client_conn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
304
304
305
305
ASSERT_TRUE (fake_upstream_connection->waitForData (seen_data_len + 14 , &data));
306
306
ASSERT_EQ (data.substr (seen_data_len), msg);
@@ -326,25 +326,25 @@ TEST_P(CiliumWebSocketIntegrationTest, AcceptedWebSocket) {
326
326
// Write frame header
327
327
buf.add (" \x82\x8d " );
328
328
buf.add (mask2, 4 );
329
- clientConn ->write (buf, false );
329
+ client_conn ->write (buf, false );
330
330
// Run the dispatcher so that the write event is handled
331
- clientConn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
331
+ client_conn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
332
332
333
333
// Write 5 first bytes
334
334
buf.add (masked2.data (), 5 );
335
- clientConn ->write (buf, false );
335
+ client_conn ->write (buf, false );
336
336
// Run the dispatcher so that the write event is handled
337
- clientConn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
337
+ client_conn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
338
338
339
339
ASSERT_TRUE (fake_upstream_connection->waitForData (seen_data_len + 5 , &data));
340
340
ASSERT_EQ (data.substr (seen_data_len), absl::string_view (msg2.data (), 5 ));
341
341
seen_data_len = data.length ();
342
342
343
343
// Write remaining bytes
344
344
buf.add (masked2.data () + 5 , masked2.length () - 5 );
345
- clientConn ->write (buf, false );
345
+ client_conn ->write (buf, false );
346
346
// Run the dispatcher so that the write event is handled
347
- clientConn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
347
+ client_conn ->dispatcher ().run (Event::Dispatcher::RunType::NonBlock);
348
348
349
349
ASSERT_TRUE (fake_upstream_connection->waitForData (seen_data_len + 13 - 5 , &data));
350
350
ASSERT_EQ (data.substr (seen_data_len), msg2.data () + 5 );
0 commit comments