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

Unified Diff: pkg/testing/lib/src/stdio_process.dart

Issue 2743423009: Run dartfmt on remaining unformated pkg packages (Closed)
Patch Set: Run dartfmt on remaining unformated pkg packages Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/testing/lib/src/run_tests.dart ('k') | pkg/testing/lib/src/suite.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/testing/lib/src/stdio_process.dart
diff --git a/pkg/testing/lib/src/stdio_process.dart b/pkg/testing/lib/src/stdio_process.dart
index 35aa4e7794b5e077d0eaf63cf522bc5b1f728af5..8f0f747f85e9660aba637a4b7dd36ecd55c66035 100644
--- a/pkg/testing/lib/src/stdio_process.dart
+++ b/pkg/testing/lib/src/stdio_process.dart
@@ -4,27 +4,15 @@
library testing.stdio_process;
-import 'dart:async' show
- EventSink,
- Future,
- Stream,
- StreamTransformer,
- Timer;
+import 'dart:async' show EventSink, Future, Stream, StreamTransformer, Timer;
-import 'dart:convert' show
- UTF8;
+import 'dart:convert' show UTF8;
-import 'dart:io' show
- Process,
- ProcessSignal,
- Stdout;
+import 'dart:io' show Process, ProcessSignal, Stdout;
-import 'dart:io' as io show
- stderr,
- stdout;
+import 'dart:io' as io show stderr, stdout;
-import 'chain.dart' show
- Result;
+import 'chain.dart' show Result;
class StdioProcess {
final int exitCode;
@@ -44,15 +32,15 @@ class StdioProcess {
static StreamTransformer<String, String> transformToStdio(Stdout stdio) {
return new StreamTransformer<String, String>.fromHandlers(
handleData: (String data, EventSink<String> sink) {
- sink.add(data);
- stdio.write(data);
- });
+ sink.add(data);
+ stdio.write(data);
+ });
}
- static Future<StdioProcess> run(
- String executable, List<String> arguments,
- {String input, Duration timeout: const Duration(seconds: 60),
- bool suppressOutput: true}) async {
+ static Future<StdioProcess> run(String executable, List<String> arguments,
+ {String input,
+ Duration timeout: const Duration(seconds: 60),
+ bool suppressOutput: true}) async {
Process process = await Process.start(executable, arguments);
Timer timer;
StringBuffer sb = new StringBuffer();
« no previous file with comments | « pkg/testing/lib/src/run_tests.dart ('k') | pkg/testing/lib/src/suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698