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

Unified Diff: LayoutTests/http/tests/websocket/tests/hybi/reserved-opcodes_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/reserved-opcodes_wsh.py
diff --git a/LayoutTests/http/tests/websocket/tests/hybi/reserved-opcodes_wsh.py b/LayoutTests/http/tests/websocket/tests/hybi/reserved-opcodes_wsh.py
deleted file mode 100644
index 96495c88a9803972e1ef50e71d73c92aab710822..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/websocket/tests/hybi/reserved-opcodes_wsh.py
+++ /dev/null
@@ -1,19 +0,0 @@
-import re
-from mod_pywebsocket import common
-from mod_pywebsocket import stream
-from mod_pywebsocket import msgutil
-
-
-def web_socket_do_extra_handshake(request):
- pass
-
-
-def web_socket_transfer_data(request):
- match = re.search(r'\?opcode=(\d+)$', request.ws_resource)
- if match is None:
- msgutil.send_message(request, 'FAIL: Query value is incorrect or missing')
- return
-
- opcode = int(match.group(1))
- payload = 'This text should be ignored. (opcode = %d)' % opcode
- request.connection.write(stream.create_header(opcode, len(payload), 1, 0, 0, 0, 0) + payload)

Powered by Google App Engine
This is Rietveld 408576698