| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library dart.io; | 5 library dart.io; |
| 6 | 6 |
| 7 import "package:async_helper/async_helper.dart"; | 7 import "package:async_helper/async_helper.dart"; |
| 8 import "package:expect/expect.dart"; | 8 import "package:expect/expect.dart"; |
| 9 import "dart:async"; | 9 import "dart:async"; |
| 10 import "dart:collection"; | 10 import "dart:collection"; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 part "../../../sdk/lib/io/http_parser.dart"; | 29 part "../../../sdk/lib/io/http_parser.dart"; |
| 30 part "../../../sdk/lib/io/http_headers.dart"; | 30 part "../../../sdk/lib/io/http_headers.dart"; |
| 31 part "../../../sdk/lib/io/http_session.dart"; | 31 part "../../../sdk/lib/io/http_session.dart"; |
| 32 part "../../../sdk/lib/io/io_service.dart"; | 32 part "../../../sdk/lib/io/io_service.dart"; |
| 33 part "../../../sdk/lib/io/io_sink.dart"; | 33 part "../../../sdk/lib/io/io_sink.dart"; |
| 34 part "../../../sdk/lib/io/platform.dart"; | 34 part "../../../sdk/lib/io/platform.dart"; |
| 35 part "../../../sdk/lib/io/platform_impl.dart"; | 35 part "../../../sdk/lib/io/platform_impl.dart"; |
| 36 part "../../../sdk/lib/io/service_object.dart"; | 36 part "../../../sdk/lib/io/service_object.dart"; |
| 37 part "../../../sdk/lib/io/secure_socket.dart"; | 37 part "../../../sdk/lib/io/secure_socket.dart"; |
| 38 part "../../../sdk/lib/io/secure_server_socket.dart"; | 38 part "../../../sdk/lib/io/secure_server_socket.dart"; |
| 39 part "../../../sdk/lib/io/security_context.dart"; |
| 39 part "../../../sdk/lib/io/socket.dart"; | 40 part "../../../sdk/lib/io/socket.dart"; |
| 40 part "../../../sdk/lib/io/websocket.dart"; | 41 part "../../../sdk/lib/io/websocket.dart"; |
| 41 part "../../../sdk/lib/io/websocket_impl.dart"; | 42 part "../../../sdk/lib/io/websocket_impl.dart"; |
| 42 | 43 |
| 43 class WebSocketFrame { | 44 class WebSocketFrame { |
| 44 WebSocketFrame(int opcode, List<int> data); | 45 WebSocketFrame(int opcode, List<int> data); |
| 45 } | 46 } |
| 46 | 47 |
| 47 // Class that when hooked up to the web socket protocol transformer will | 48 // Class that when hooked up to the web socket protocol transformer will |
| 48 // collect the message and expect it to be equal to the | 49 // collect the message and expect it to be equal to the |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 true, FRAME_OPCODE_BINARY, null, message, 0, message.length); | 263 true, FRAME_OPCODE_BINARY, null, message, 0, message.length); |
| 263 controller.add(frame); | 264 controller.add(frame); |
| 264 } | 265 } |
| 265 | 266 |
| 266 | 267 |
| 267 void main() { | 268 void main() { |
| 268 testFullMessages(); | 269 testFullMessages(); |
| 269 testFragmentedMessages(); | 270 testFragmentedMessages(); |
| 270 testUnmaskedMessage(); | 271 testUnmaskedMessage(); |
| 271 } | 272 } |
| OLD | NEW |