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

Side by Side Diff: tests/standalone/src/HttpTest.dart

Issue 9488008: Include HTTP library in the standalone VM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor update Created 8 years, 9 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
« no previous file with comments | « tests/standalone/src/HttpParserTest.dart ('k') | tests/standalone/src/UrlEncodingTest.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 //
5 // VMOptions=
6 // VMOptions=--short_socket_read
7 // VMOptions=--short_socket_write
8 // VMOptions=--short_socket_read --short_socket_write
4 9
5 #library("http_test.dart");
6 #import("dart:isolate"); 10 #import("dart:isolate");
7 #import("dart:io"); 11 #import("dart:io");
8 #import("../../../../chat/http.dart");
9 #import("../../../../chat/chat_server_lib.dart");
10
11 12
12 class TestServerMain { 13 class TestServerMain {
13 TestServerMain() 14 TestServerMain()
14 : _statusPort = new ReceivePort(), 15 : _statusPort = new ReceivePort(),
15 _serverPort = null { 16 _serverPort = null {
16 new TestServer().spawn().then((SendPort port) { 17 new TestServer().spawn().then((SendPort port) {
17 _serverPort = port; 18 _serverPort = port;
18 }); 19 });
19 } 20 }
20 21
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 testStartStop(); 376 testStartStop();
376 testGET(); 377 testGET();
377 testPOST(true); 378 testPOST(true);
378 testPOST(false); 379 testPOST(false);
379 testReadInto(true); 380 testReadInto(true);
380 testReadInto(false); 381 testReadInto(false);
381 testReadShort(true); 382 testReadShort(true);
382 testReadShort(false); 383 testReadShort(false);
383 test404(); 384 test404();
384 } 385 }
OLDNEW
« no previous file with comments | « tests/standalone/src/HttpParserTest.dart ('k') | tests/standalone/src/UrlEncodingTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698