Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: tests/standalone/io/http_parser_test.dart

Issue 87743002: Make dart:io unit-tests pass the analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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;
6
5 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
6 import 'dart:async'; 8 import "dart:async";
7 import 'dart:math'; 9 import "dart:collection";
8 import 'dart:typed_data'; 10 import "dart:convert";
9 import 'dart:isolate'; 11 import "dart:math";
10 import 'dart:collection'; 12 import "dart:typed_data";
13 import "dart:isolate";
11 14
12 part '../../../sdk/lib/io/common.dart'; 15 part "../../../sdk/lib/io/bytes_builder.dart";
13 part '../../../sdk/lib/io/io_sink.dart'; 16 part "../../../sdk/lib/io/common.dart";
14 part '../../../sdk/lib/io/http.dart'; 17 part "../../../sdk/lib/io/crypto.dart";
15 part '../../../sdk/lib/io/http_date.dart'; 18 part "../../../sdk/lib/io/data_transformer.dart";
16 part '../../../sdk/lib/io/http_impl.dart'; 19 part "../../../sdk/lib/io/directory.dart";
17 part '../../../sdk/lib/io/http_headers.dart'; 20 part "../../../sdk/lib/io/directory_impl.dart";
18 part '../../../sdk/lib/io/http_parser.dart'; 21 part "../../../sdk/lib/io/file.dart";
19 part '../../../sdk/lib/io/socket.dart'; 22 part "../../../sdk/lib/io/file_impl.dart";
23 part "../../../sdk/lib/io/file_system_entity.dart";
24 part "../../../sdk/lib/io/link.dart";
25 part "../../../sdk/lib/io/http.dart";
26 part "../../../sdk/lib/io/http_impl.dart";
27 part "../../../sdk/lib/io/http_date.dart";
28 part "../../../sdk/lib/io/http_parser.dart";
29 part "../../../sdk/lib/io/http_headers.dart";
30 part "../../../sdk/lib/io/http_session.dart";
31 part "../../../sdk/lib/io/io_service.dart";
32 part "../../../sdk/lib/io/io_sink.dart";
33 part "../../../sdk/lib/io/platform.dart";
34 part "../../../sdk/lib/io/platform_impl.dart";
35 part "../../../sdk/lib/io/secure_socket.dart";
36 part "../../../sdk/lib/io/secure_server_socket.dart";
37 part "../../../sdk/lib/io/socket.dart";
20 38
21 class HttpParserTest { 39 class HttpParserTest {
22 static void runAllTests() { 40 static void runAllTests() {
23 testParseRequest(); 41 testParseRequest();
24 testParseResponse(); 42 testParseResponse();
25 testParseInvalidRequest(); 43 testParseInvalidRequest();
26 testParseInvalidResponse(); 44 testParseInvalidResponse();
27 } 45 }
28 46
29 static void _testParseRequest(String request, 47 static void _testParseRequest(String request,
(...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 0123456789012345678901234567890\r 891 0123456789012345678901234567890\r
874 0\r\n\r\n"""; 892 0\r\n\r\n""";
875 _testParseInvalidResponse(response); 893 _testParseInvalidResponse(response);
876 } 894 }
877 } 895 }
878 896
879 897
880 void main() { 898 void main() {
881 HttpParserTest.runAllTests(); 899 HttpParserTest.runAllTests();
882 } 900 }
OLDNEW
« no previous file with comments | « tests/standalone/io/http_headers_test.dart ('k') | tests/standalone/io/web_socket_protocol_processor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698