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 #source("../../../../runtime/bin/http_parser.dart"); | 5 #source("../../../runtime/bin/http_parser.dart"); |
6 | 6 |
7 class HttpParserTest { | 7 class HttpParserTest { |
8 static void runAllTests() { | 8 static void runAllTests() { |
9 testParseRequest(); | 9 testParseRequest(); |
10 testParseResponse(); | 10 testParseResponse(); |
11 testParseInvalidRequest(); | 11 testParseInvalidRequest(); |
12 testParseInvalidResponse(); | 12 testParseInvalidResponse(); |
13 } | 13 } |
14 | 14 |
15 static void _testParseRequest(String request, | 15 static void _testParseRequest(String request, |
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
842 0123456789012345678901234567890\r | 842 0123456789012345678901234567890\r |
843 0\r\n\r\n"""; | 843 0\r\n\r\n"""; |
844 _testParseInvalidResponse(response); | 844 _testParseInvalidResponse(response); |
845 } | 845 } |
846 } | 846 } |
847 | 847 |
848 | 848 |
849 void main() { | 849 void main() { |
850 HttpParserTest.runAllTests(); | 850 HttpParserTest.runAllTests(); |
851 } | 851 } |
OLD | NEW |