OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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:expect/expect.dart"; | 7 import "package:expect/expect.dart"; |
8 import "dart:async"; | 8 import "dart:async"; |
9 import "dart:collection"; | 9 import "dart:collection"; |
10 import "dart:convert"; | 10 import "dart:convert"; |
(...skipping 14 matching lines...) Expand all Loading... |
25 part "../../../sdk/lib/io/http.dart"; | 25 part "../../../sdk/lib/io/http.dart"; |
26 part "../../../sdk/lib/io/http_impl.dart"; | 26 part "../../../sdk/lib/io/http_impl.dart"; |
27 part "../../../sdk/lib/io/http_date.dart"; | 27 part "../../../sdk/lib/io/http_date.dart"; |
28 part "../../../sdk/lib/io/http_parser.dart"; | 28 part "../../../sdk/lib/io/http_parser.dart"; |
29 part "../../../sdk/lib/io/http_headers.dart"; | 29 part "../../../sdk/lib/io/http_headers.dart"; |
30 part "../../../sdk/lib/io/http_session.dart"; | 30 part "../../../sdk/lib/io/http_session.dart"; |
31 part "../../../sdk/lib/io/io_service.dart"; | 31 part "../../../sdk/lib/io/io_service.dart"; |
32 part "../../../sdk/lib/io/io_sink.dart"; | 32 part "../../../sdk/lib/io/io_sink.dart"; |
33 part "../../../sdk/lib/io/platform.dart"; | 33 part "../../../sdk/lib/io/platform.dart"; |
34 part "../../../sdk/lib/io/platform_impl.dart"; | 34 part "../../../sdk/lib/io/platform_impl.dart"; |
| 35 part "../../../sdk/lib/io/service_object.dart"; |
35 part "../../../sdk/lib/io/secure_socket.dart"; | 36 part "../../../sdk/lib/io/secure_socket.dart"; |
36 part "../../../sdk/lib/io/secure_server_socket.dart"; | 37 part "../../../sdk/lib/io/secure_server_socket.dart"; |
37 part "../../../sdk/lib/io/socket.dart"; | 38 part "../../../sdk/lib/io/socket.dart"; |
38 | 39 |
39 class HttpParserTest { | 40 class HttpParserTest { |
40 static void runAllTests() { | 41 static void runAllTests() { |
41 testParseRequest(); | 42 testParseRequest(); |
42 testParseResponse(); | 43 testParseResponse(); |
43 testParseInvalidRequest(); | 44 testParseInvalidRequest(); |
44 testParseInvalidResponse(); | 45 testParseInvalidResponse(); |
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
891 0123456789012345678901234567890\r | 892 0123456789012345678901234567890\r |
892 0\r\n\r\n"""; | 893 0\r\n\r\n"""; |
893 _testParseInvalidResponse(response); | 894 _testParseInvalidResponse(response); |
894 } | 895 } |
895 } | 896 } |
896 | 897 |
897 | 898 |
898 void main() { | 899 void main() { |
899 HttpParserTest.runAllTests(); | 900 HttpParserTest.runAllTests(); |
900 } | 901 } |
OLD | NEW |