| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 | 4 |
| 5 import "dart:io"; | 5 import "dart:io"; |
| 6 import "dart:async"; | 6 import "dart:async"; |
| 7 | 7 |
| 8 import "package:async_helper/async_helper.dart"; | 8 import "package:async_helper/async_helper.dart"; |
| 9 import "package:expect/expect.dart"; | 9 import "package:expect/expect.dart"; |
| 10 import "package:path/path.dart"; | 10 import "package:path/path.dart"; |
| 11 | 11 |
| 12 void main() { | 12 void main(List<String> args) { |
| 13 var args = new Options().arguments; | |
| 14 if (!args.contains('--child')) { | 13 if (!args.contains('--child')) { |
| 15 runAllTestsInChildProcesses(); | 14 runAllTestsInChildProcesses(); |
| 16 } else { | 15 } else { |
| 17 InitializeSSL(useDatabase: args.contains('--database'), | 16 InitializeSSL(useDatabase: args.contains('--database'), |
| 18 useBuiltinRoots: args.contains('--builtin-roots')); | 17 useBuiltinRoots: args.contains('--builtin-roots')); |
| 19 testGoogleUrl(args.contains('--builtin-roots')); | 18 testGoogleUrl(args.contains('--builtin-roots')); |
| 20 } | 19 } |
| 21 } | 20 } |
| 22 | 21 |
| 23 void InitializeSSL({bool useDatabase, bool useBuiltinRoots}) { | 22 void InitializeSSL({bool useDatabase, bool useBuiltinRoots}) { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 }); | 80 }); |
| 82 } | 81 } |
| 83 | 82 |
| 84 asyncStart(); | 83 asyncStart(); |
| 85 Future.wait([runChild(['--child']), | 84 Future.wait([runChild(['--child']), |
| 86 runChild(['--child', '--database']), | 85 runChild(['--child', '--database']), |
| 87 runChild(['--child', '--builtin-roots']), | 86 runChild(['--child', '--builtin-roots']), |
| 88 runChild(['--child', '--builtin-roots', '--database'])]) | 87 runChild(['--child', '--builtin-roots', '--database'])]) |
| 89 .then((_) => asyncEnd()); | 88 .then((_) => asyncEnd()); |
| 90 } | 89 } |
| OLD | NEW |