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

Unified Diff: LayoutTests/http/tests/websocket/tests/hybi/send-file-blob_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/send-file-blob_wsh.py
diff --git a/LayoutTests/http/tests/websocket/tests/hybi/send-file-blob_wsh.py b/LayoutTests/http/tests/websocket/tests/hybi/send-file-blob_wsh.py
deleted file mode 100644
index 17d0cdcc04a13ec50fcf9f290830dcdbf55901a4..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/websocket/tests/hybi/send-file-blob_wsh.py
+++ /dev/null
@@ -1,31 +0,0 @@
-from mod_pywebsocket import common
-from mod_pywebsocket import msgutil
-
-
-def _retrieve_frame(stream):
- # FIXME: Use better API.
- frame = stream._receive_frame_as_frame_object()
- for frame_filter in stream._options.incoming_frame_filters:
- frame_filter.filter(frame)
- return frame
-
-
-def web_socket_do_extra_handshake(request):
- # Disable compression extensions because we handle frame directly
- # in this test.
- request.ws_extension_processors = []
-
-
-def web_socket_transfer_data(request):
- expected_messages = ['Hello, world!']
-
- for test_number, expected_message in enumerate(expected_messages):
- frame = _retrieve_frame(request.ws_stream)
- if frame.opcode == common.OPCODE_BINARY and frame.payload == expected_message and frame.fin:
- msgutil.send_message(request, 'PASS: Message #%d.' % test_number)
- else:
- msgutil.send_message(request, 'FAIL: Message #%d: Received unexpected frame: opcode = %r, payload = %r, final = %r' % (test_number, frame.opcode, frame.payload, frame.fin))
-
-
-def all_distinct_bytes():
- return ''.join([chr(i) for i in xrange(256)])

Powered by Google App Engine
This is Rietveld 408576698