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

Unified Diff: tests/standalone/io/http_server_close_response_after_error_client.dart

Issue 37033002: dart:io | Remove uses of Options class from standalone tests. Mark Options deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove commented lines from standalone.status. Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: tests/standalone/io/http_server_close_response_after_error_client.dart
diff --git a/tests/standalone/io/http_server_close_response_after_error_client.dart b/tests/standalone/io/http_server_close_response_after_error_client.dart
index 990d34a44e04a2439a577901d1c74889b1e94cb0..cd739993bb533778af9c5dcb5b1974012ede4938 100644
--- a/tests/standalone/io/http_server_close_response_after_error_client.dart
+++ b/tests/standalone/io/http_server_close_response_after_error_client.dart
@@ -1,26 +1,25 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-import 'dart:async';
-import 'dart:io';
-
-void main() {
- int port = int.parse(new Options().arguments.first);
- var client = new HttpClient();
- const MAX = 64;
- int count = 0;
- void run() {
- if (count++ == MAX) exit(0);
- Socket.connect('127.0.0.1', port).then((socket) {
- socket.write("POST / HTTP/1.1\r\n");
- socket.write("Content-Length: 10\r\n");
- socket.write("\r\n");
- socket.write("LALALA");
- socket.destroy();
- socket.listen(null, onDone: run);
- });
- }
- for (int i = 0; i < 4; i++) run();
-}
-
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+import 'dart:async';
+import 'dart:io';
+
+void main(List<String> arguments) {
+ int port = int.parse(arguments.first);
+ var client = new HttpClient();
+ const MAX = 64;
+ int count = 0;
+ void run() {
+ if (count++ == MAX) exit(0);
+ Socket.connect('127.0.0.1', port).then((socket) {
+ socket.write("POST / HTTP/1.1\r\n");
+ socket.write("Content-Length: 10\r\n");
+ socket.write("\r\n");
+ socket.write("LALALA");
+ socket.destroy();
+ socket.listen(null, onDone: run);
+ });
+ }
+ for (int i = 0; i < 4; i++) run();
+}
« no previous file with comments | « tests/standalone/io/http_cross_process_test.dart ('k') | tests/standalone/io/https_bad_certificate_client.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698