Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Unified Diff: LayoutTests/http/tests/websocket/tests/hybi/pong_wsh.py

Issue 101143002: Remove hybi sub directory for WebSocket layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/websocket/tests/hybi/pong_wsh.py
diff --git a/LayoutTests/http/tests/websocket/tests/hybi/pong_wsh.py b/LayoutTests/http/tests/websocket/tests/hybi/pong_wsh.py
deleted file mode 100644
index 612aac5f83f607e23896280a1507acb73b90159d..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/websocket/tests/hybi/pong_wsh.py
+++ /dev/null
@@ -1,19 +0,0 @@
-from mod_pywebsocket import common
-from mod_pywebsocket import msgutil
-
-
-def web_socket_do_extra_handshake(request):
- pass
-
-
-def web_socket_transfer_data(request):
- msgutil.send_ping(request, 'Hello, world!')
-
- # We need to use an internal function to detect a pong frame from the client.
- opcode, payload, final, reserved1, reserved2, reserved3 = request.ws_stream._receive_frame()
- if opcode == common.OPCODE_PONG and payload == 'Hello, world!' and final and not reserved1 and not reserved2 and not reserved3:
- msgutil.send_message(request, 'PASS')
- else:
- msgutil.send_message(request,
- 'FAIL: Received unexpected frame: opcode = %r, payload = %r, final = %r, reserved1 = %r, reserved2 = %r, reserved3 = %r' %
- (opcode, payload, final, reserved1, reserved2, reserved3))

Powered by Google App Engine
This is Rietveld 408576698