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

Side by Side Diff: tests/standalone/io/secure_builtin_roots_test.dart

Issue 37033002: dart:io | Remove uses of Options class from standalone tests. Mark Options deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove commented lines from standalone.status. Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « tests/standalone/io/secure_bad_certificate_test.dart ('k') | tests/standalone/io/secure_socket_renegotiate_client.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698