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

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

Issue 59043011: Make temp directory start with dart_ in file_stream test. Fix DOS line endings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/standalone/io/file_stream_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/http_server_close_response_after_error_test.dart
diff --git a/tests/standalone/io/http_server_close_response_after_error_test.dart b/tests/standalone/io/http_server_close_response_after_error_test.dart
index 3f762829bbcf721d54c345cf300be8a088343076..c5cdcec47a5b4acac6629c4d5e51f90cbedc372a 100644
--- a/tests/standalone/io/http_server_close_response_after_error_test.dart
+++ b/tests/standalone/io/http_server_close_response_after_error_test.dart
@@ -1,36 +1,36 @@
-// 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.
-//
-// VMOptions=
-// VMOptions=--short_socket_read
-// VMOptions=--short_socket_write
-// VMOptions=--short_socket_read --short_socket_write
-
-import 'dart:async';
-import 'dart:io';
-
-const CLIENT_SCRIPT = "http_server_close_response_after_error_client.dart";
-
-void main() {
- HttpServer.bind("127.0.0.1", 0)
- .then((server) {
- server.listen(
- (request) {
- request.listen(
- null,
- onError: (e) {},
- onDone: () {
- request.response.close();
- });
- });
- Process.run(Platform.executable,
- [Platform.script.resolve(CLIENT_SCRIPT).toString(),
- server.port.toString()])
- .then((result) {
- if (result.exitCode != 0) throw "Bad exit code";
- server.close();
- });
- });
-}
-
+// 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.
+//
+// VMOptions=
+// VMOptions=--short_socket_read
+// VMOptions=--short_socket_write
+// VMOptions=--short_socket_read --short_socket_write
+
+import 'dart:async';
+import 'dart:io';
+
+const CLIENT_SCRIPT = "http_server_close_response_after_error_client.dart";
+
+void main() {
+ HttpServer.bind("127.0.0.1", 0)
+ .then((server) {
+ server.listen(
+ (request) {
+ request.listen(
+ null,
+ onError: (e) {},
+ onDone: () {
+ request.response.close();
+ });
+ });
+ Process.run(Platform.executable,
+ [Platform.script.resolve(CLIENT_SCRIPT).toString(),
+ server.port.toString()])
+ .then((result) {
+ if (result.exitCode != 0) throw "Bad exit code";
+ server.close();
+ });
+ });
+}
+
« no previous file with comments | « tests/standalone/io/file_stream_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698