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

Side by Side Diff: tests/standalone/io/http_headers_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:collection'; 10 import "dart:convert";
11 import "dart:math";
12 import "dart:typed_data";
13 import "dart:isolate";
9 14
10 part '../../../sdk/lib/io/common.dart'; 15 part "../../../sdk/lib/io/bytes_builder.dart";
16 part "../../../sdk/lib/io/common.dart";
17 part "../../../sdk/lib/io/crypto.dart";
18 part "../../../sdk/lib/io/data_transformer.dart";
19 part "../../../sdk/lib/io/directory.dart";
20 part "../../../sdk/lib/io/directory_impl.dart";
21 part "../../../sdk/lib/io/file.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";
11 part "../../../sdk/lib/io/io_sink.dart"; 32 part "../../../sdk/lib/io/io_sink.dart";
12 part "../../../sdk/lib/io/http.dart"; 33 part "../../../sdk/lib/io/platform.dart";
13 part "../../../sdk/lib/io/http_date.dart"; 34 part "../../../sdk/lib/io/platform_impl.dart";
14 part "../../../sdk/lib/io/http_headers.dart"; 35 part "../../../sdk/lib/io/secure_socket.dart";
15 part "../../../sdk/lib/io/http_impl.dart"; 36 part "../../../sdk/lib/io/secure_server_socket.dart";
16 part "../../../sdk/lib/io/http_parser.dart";
17 part "../../../sdk/lib/io/socket.dart"; 37 part "../../../sdk/lib/io/socket.dart";
18 38
19 void testMultiValue() { 39 void testMultiValue() {
20 _HttpHeaders headers = new _HttpHeaders("1.1"); 40 _HttpHeaders headers = new _HttpHeaders("1.1");
21 Expect.isNull(headers[HttpHeaders.PRAGMA]); 41 Expect.isNull(headers[HttpHeaders.PRAGMA]);
22 headers.add(HttpHeaders.PRAGMA, "pragma1"); 42 headers.add(HttpHeaders.PRAGMA, "pragma1");
23 Expect.equals(1, headers[HttpHeaders.PRAGMA].length); 43 Expect.equals(1, headers[HttpHeaders.PRAGMA].length);
24 Expect.equals(1, headers["pragma"].length); 44 Expect.equals(1, headers["pragma"].length);
25 Expect.equals(1, headers["Pragma"].length); 45 Expect.equals(1, headers["Pragma"].length);
26 Expect.equals(1, headers["PRAGMA"].length); 46 Expect.equals(1, headers["PRAGMA"].length);
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 testIfModifiedSince(); 452 testIfModifiedSince();
433 testHost(); 453 testHost();
434 testEnumeration(); 454 testEnumeration();
435 testHeaderValue(); 455 testHeaderValue();
436 testContentType(); 456 testContentType();
437 testContentTypeCache(); 457 testContentTypeCache();
438 testCookie(); 458 testCookie();
439 testInvalidCookie(); 459 testInvalidCookie();
440 testHeaderLists(); 460 testHeaderLists();
441 } 461 }
OLDNEW
« no previous file with comments | « tests/standalone/io/http_cookie_date_test.dart ('k') | tests/standalone/io/http_parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698