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

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

Issue 284313011: Add IO service object handler, with initial implementation for HTTP server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 months 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; 5 library dart.io;
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 import "dart:async"; 8 import "dart:async";
9 import "dart:collection"; 9 import "dart:collection";
10 import "dart:convert"; 10 import "dart:convert";
(...skipping 14 matching lines...) Expand all
25 part "../../../sdk/lib/io/http.dart"; 25 part "../../../sdk/lib/io/http.dart";
26 part "../../../sdk/lib/io/http_impl.dart"; 26 part "../../../sdk/lib/io/http_impl.dart";
27 part "../../../sdk/lib/io/http_date.dart"; 27 part "../../../sdk/lib/io/http_date.dart";
28 part "../../../sdk/lib/io/http_parser.dart"; 28 part "../../../sdk/lib/io/http_parser.dart";
29 part "../../../sdk/lib/io/http_headers.dart"; 29 part "../../../sdk/lib/io/http_headers.dart";
30 part "../../../sdk/lib/io/http_session.dart"; 30 part "../../../sdk/lib/io/http_session.dart";
31 part "../../../sdk/lib/io/io_service.dart"; 31 part "../../../sdk/lib/io/io_service.dart";
32 part "../../../sdk/lib/io/io_sink.dart"; 32 part "../../../sdk/lib/io/io_sink.dart";
33 part "../../../sdk/lib/io/platform.dart"; 33 part "../../../sdk/lib/io/platform.dart";
34 part "../../../sdk/lib/io/platform_impl.dart"; 34 part "../../../sdk/lib/io/platform_impl.dart";
35 part "../../../sdk/lib/io/service_object.dart";
35 part "../../../sdk/lib/io/secure_socket.dart"; 36 part "../../../sdk/lib/io/secure_socket.dart";
36 part "../../../sdk/lib/io/secure_server_socket.dart"; 37 part "../../../sdk/lib/io/secure_server_socket.dart";
37 part "../../../sdk/lib/io/socket.dart"; 38 part "../../../sdk/lib/io/socket.dart";
38 39
39 void testMultiValue() { 40 void testMultiValue() {
40 _HttpHeaders headers = new _HttpHeaders("1.1"); 41 _HttpHeaders headers = new _HttpHeaders("1.1");
41 Expect.isNull(headers[HttpHeaders.PRAGMA]); 42 Expect.isNull(headers[HttpHeaders.PRAGMA]);
42 headers.add(HttpHeaders.PRAGMA, "pragma1"); 43 headers.add(HttpHeaders.PRAGMA, "pragma1");
43 Expect.equals(1, headers[HttpHeaders.PRAGMA].length); 44 Expect.equals(1, headers[HttpHeaders.PRAGMA].length);
44 Expect.equals(1, headers["pragma"].length); 45 Expect.equals(1, headers["pragma"].length);
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 testIfModifiedSince(); 469 testIfModifiedSince();
469 testHost(); 470 testHost();
470 testEnumeration(); 471 testEnumeration();
471 testHeaderValue(); 472 testHeaderValue();
472 testContentType(); 473 testContentType();
473 testContentTypeCache(); 474 testContentTypeCache();
474 testCookie(); 475 testCookie();
475 testInvalidCookie(); 476 testInvalidCookie();
476 testHeaderLists(); 477 testHeaderLists();
477 } 478 }
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