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

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

Issue 11415027: Refactor the HTTP parser to collect headers (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addessed review comments Created 8 years, 1 month 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
« no previous file with comments | « sdk/lib/io/iolib_sources.gypi ('k') | tests/standalone/io/http_parser_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 6
7 part "../../../sdk/lib/io/input_stream.dart"; 7 part "../../../sdk/lib/io/input_stream.dart";
8 part "../../../sdk/lib/io/output_stream.dart"; 8 part "../../../sdk/lib/io/output_stream.dart";
9 part "../../../sdk/lib/io/chunked_stream.dart"; 9 part "../../../sdk/lib/io/chunked_stream.dart";
10 part "../../../sdk/lib/io/string_stream.dart"; 10 part "../../../sdk/lib/io/string_stream.dart";
11 part "../../../sdk/lib/io/stream_util.dart"; 11 part "../../../sdk/lib/io/stream_util.dart";
12 part "../../../sdk/lib/io/http.dart"; 12 part "../../../sdk/lib/io/http.dart";
13 part "../../../sdk/lib/io/http_headers.dart";
13 part "../../../sdk/lib/io/http_impl.dart"; 14 part "../../../sdk/lib/io/http_impl.dart";
14 part "../../../sdk/lib/io/http_parser.dart"; 15 part "../../../sdk/lib/io/http_parser.dart";
15 part "../../../sdk/lib/io/http_utils.dart"; 16 part "../../../sdk/lib/io/http_utils.dart";
16 17
17 void testMultiValue() { 18 void testMultiValue() {
18 _HttpHeaders headers = new _HttpHeaders(); 19 _HttpHeaders headers = new _HttpHeaders();
19 Expect.isNull(headers[HttpHeaders.PRAGMA]); 20 Expect.isNull(headers[HttpHeaders.PRAGMA]);
20 headers.add(HttpHeaders.PRAGMA, "pragma1"); 21 headers.add(HttpHeaders.PRAGMA, "pragma1");
21 Expect.equals(1, headers[HttpHeaders.PRAGMA].length); 22 Expect.equals(1, headers[HttpHeaders.PRAGMA].length);
22 Expect.equals(1, headers["pragma"].length); 23 Expect.equals(1, headers["pragma"].length);
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 testIfModifiedSince(); 403 testIfModifiedSince();
403 testHost(); 404 testHost();
404 testEnumeration(); 405 testEnumeration();
405 testHeaderValue(); 406 testHeaderValue();
406 testContentType(); 407 testContentType();
407 testContentTypeCache(); 408 testContentTypeCache();
408 testCookie(); 409 testCookie();
409 testInvalidCookie(); 410 testInvalidCookie();
410 testHeaderLists(); 411 testHeaderLists();
411 } 412 }
OLDNEW
« no previous file with comments | « sdk/lib/io/iolib_sources.gypi ('k') | tests/standalone/io/http_parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698