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 import 'dart:async'; |
5 import 'dart:math'; | 6 import 'dart:math'; |
6 import 'dart:scalarlist'; | 7 import 'dart:scalarlist'; |
7 | 8 |
8 part '../../../sdk/lib/io/http.dart'; | 9 part '../../../sdk/lib/io/http.dart'; |
9 part '../../../sdk/lib/io/http_headers.dart'; | 10 part '../../../sdk/lib/io/http_headers.dart'; |
10 part '../../../sdk/lib/io/http_parser.dart'; | 11 part '../../../sdk/lib/io/http_parser.dart'; |
11 | 12 |
12 class HttpParserTest { | 13 class HttpParserTest { |
13 static void runAllTests() { | 14 static void runAllTests() { |
14 testParseRequest(); | 15 testParseRequest(); |
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 0123456789012345678901234567890\r | 858 0123456789012345678901234567890\r |
858 0\r\n\r\n"""; | 859 0\r\n\r\n"""; |
859 _testParseInvalidResponse(response); | 860 _testParseInvalidResponse(response); |
860 } | 861 } |
861 } | 862 } |
862 | 863 |
863 | 864 |
864 void main() { | 865 void main() { |
865 HttpParserTest.runAllTests(); | 866 HttpParserTest.runAllTests(); |
866 } | 867 } |
OLD | NEW |