| 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:math'); | 5 import 'dart:math'; | 
| 6 #import('dart:scalarlist'); | 6 import 'dart:scalarlist'; | 
| 7 | 7 | 
| 8 #source("../../../lib/io/http_parser.dart"); | 8 part '../../../sdk/lib/io/http_parser.dart'; | 
| 9 | 9 | 
| 10 class HttpParserTest { | 10 class HttpParserTest { | 
| 11   static void runAllTests() { | 11   static void runAllTests() { | 
| 12     testParseRequest(); | 12     testParseRequest(); | 
| 13     testParseResponse(); | 13     testParseResponse(); | 
| 14     testParseInvalidRequest(); | 14     testParseInvalidRequest(); | 
| 15     testParseInvalidResponse(); | 15     testParseInvalidResponse(); | 
| 16   } | 16   } | 
| 17 | 17 | 
| 18   static void _testParseRequest(String request, | 18   static void _testParseRequest(String request, | 
| (...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 837 0123456789012345678901234567890\r | 837 0123456789012345678901234567890\r | 
| 838 0\r\n\r\n"""; | 838 0\r\n\r\n"""; | 
| 839     _testParseInvalidResponse(response); | 839     _testParseInvalidResponse(response); | 
| 840   } | 840   } | 
| 841 } | 841 } | 
| 842 | 842 | 
| 843 | 843 | 
| 844 void main() { | 844 void main() { | 
| 845   HttpParserTest.runAllTests(); | 845   HttpParserTest.runAllTests(); | 
| 846 } | 846 } | 
| OLD | NEW | 
|---|