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

Unified Diff: test/test_util.dart

Issue 837193005: pkg/shelf: formatted code (Closed) Base URL: https://github.com/dart-lang/shelf.git@master
Patch Set: nits Created 5 years, 11 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
« no previous file with comments | « test/shelf_io_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/test_util.dart
diff --git a/test/test_util.dart b/test/test_util.dart
index 281989b364cc0e11cc7cc6a5e3ddd0b174f28296..193e3221a5f12adc3b79298dc667bd8fdffd0807 100644
--- a/test/test_util.dart
+++ b/test/test_util.dart
@@ -19,11 +19,11 @@ const WORLD_BYTES = const [32, 119, 111, 114, 108, 100];
///
/// By default, replies with a status code 200, empty headers, and
/// `Hello from ${request.url.path}`.
-Response syncHandler(Request request, {int statusCode,
- Map<String, String> headers}) {
+Response syncHandler(Request request,
+ {int statusCode, Map<String, String> headers}) {
if (statusCode == null) statusCode = 200;
- return new Response(statusCode, headers: headers,
- body: 'Hello from ${request.url.path}');
+ return new Response(statusCode,
+ headers: headers, body: 'Hello from ${request.url.path}');
}
/// Calls [syncHandler] and wraps the response in a [Future].
« no previous file with comments | « test/shelf_io_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698