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

Unified Diff: tests/standalone/http_launch_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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/http_launch_test.dart
diff --git a/tests/standalone/http_launch_test.dart b/tests/standalone/http_launch_test.dart
index 40fd509a93fde1bcd787a27fe6bdb34608d8f210..657ca585d9fe1ec5691355f7407bcfd29fea4d75 100644
--- a/tests/standalone/http_launch_test.dart
+++ b/tests/standalone/http_launch_test.dart
@@ -37,9 +37,9 @@ handleRequest(HttpRequest request) {
final File file = new File(requestPath.toFilePath());
file.exists().then((bool found) {
if (found) {
- file.openRead()
- .pipe(request.response)
- .catchError((e) { _sendNotFound(request.response); });
+ file.openRead().pipe(request.response).catchError((e) {
+ _sendNotFound(request.response);
+ });
} else {
_sendNotFound(request.response);
}
@@ -49,22 +49,18 @@ handleRequest(HttpRequest request) {
serverRunning(HttpServer server) {
port = server.port;
server.listen(handleRequest);
- Future<ProcessResult> no_http_run =
- Process.run(pathToExecutable,
- [pathOfData.resolve('http_launch_main.dart').toFilePath()]);
- Future<ProcessResult> http_run =
- Process.run(pathToExecutable,
- ['http://127.0.0.1:$port/http_launch_main.dart']);
- Future<ProcessResult> http_pkg_root_run =
- Process.run(pathToExecutable,
- ['--package-root=http://127.0.0.1:$port/packages/',
- 'http://127.0.0.1:$port/http_launch_main.dart']);
- Future<ProcessResult> isolate_run =
- Process.run(pathToExecutable,
- ['http://127.0.0.1:$port/http_spawn_main.dart', '$port']);
- Future<List<ProcessResult>> results = Future.wait([no_http_run, http_run,
- http_pkg_root_run,
- isolate_run]);
+ Future<ProcessResult> no_http_run = Process.run(pathToExecutable,
+ [pathOfData.resolve('http_launch_main.dart').toFilePath()]);
+ Future<ProcessResult> http_run = Process
+ .run(pathToExecutable, ['http://127.0.0.1:$port/http_launch_main.dart']);
+ Future<ProcessResult> http_pkg_root_run = Process.run(pathToExecutable, [
+ '--package-root=http://127.0.0.1:$port/packages/',
+ 'http://127.0.0.1:$port/http_launch_main.dart'
+ ]);
+ Future<ProcessResult> isolate_run = Process.run(pathToExecutable,
+ ['http://127.0.0.1:$port/http_spawn_main.dart', '$port']);
+ Future<List<ProcessResult>> results =
+ Future.wait([no_http_run, http_run, http_pkg_root_run, isolate_run]);
results.then((results) {
// Close server.
server.close();

Powered by Google App Engine
This is Rietveld 408576698