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

Side by Side Diff: pkg/kernel/bin/batch_util.dart

Issue 2561723003: Merge kernel closure conversion into the Dart SDK (Closed)
Patch Set: Remove path constraint Created 4 years 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 unified diff | Download patch
« no previous file with comments | « DEPS ('k') | pkg/kernel/bin/transform.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 library kernel.batch_util; 4 library kernel.batch_util;
5 5
6 import 'dart:async'; 6 import 'dart:async';
7 import 'dart:convert'; 7 import 'dart:convert';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 enum CompilerOutcome { Ok, Fail, } 10 enum CompilerOutcome {
11 Ok,
12 Fail,
13 }
11 14
12 typedef Future<CompilerOutcome> BatchCallback(List<String> arguments); 15 typedef Future<CompilerOutcome> BatchCallback(List<String> arguments);
13 16
14 /// Runs the given [callback] in the batch mode for use by the test framework in 17 /// Runs the given [callback] in the batch mode for use by the test framework in
15 /// `dart-lang/sdk`. 18 /// `dart-lang/sdk`.
16 /// 19 ///
17 /// The [callback] should behave as a main method, except it should return a 20 /// The [callback] should behave as a main method, except it should return a
18 /// [CompilerOutcome] for reporting its outcome to the testing framework. 21 /// [CompilerOutcome] for reporting its outcome to the testing framework.
19 Future runBatch(BatchCallback callback) async { 22 Future runBatch(BatchCallback callback) async {
20 int totalTests = 0; 23 int totalTests = 0;
(...skipping 19 matching lines...) Expand all
40 print('>>> TEST FAIL ${watch.elapsedMilliseconds}ms'); 43 print('>>> TEST FAIL ${watch.elapsedMilliseconds}ms');
41 } 44 }
42 } catch (e, stackTrace) { 45 } catch (e, stackTrace) {
43 stderr.writeln(e); 46 stderr.writeln(e);
44 stderr.writeln(stackTrace); 47 stderr.writeln(stackTrace);
45 stderr.writeln('>>> EOF STDERR'); 48 stderr.writeln('>>> EOF STDERR');
46 print('>>> TEST CRASH'); 49 print('>>> TEST CRASH');
47 } 50 }
48 } 51 }
49 } 52 }
OLDNEW
« no previous file with comments | « DEPS ('k') | pkg/kernel/bin/transform.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698