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

Side by Side Diff: tests/standalone/io/https_unauthorized_client.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, 1 month 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Client that makes HttpClient secure gets from a server that replies with 5 // Client that makes HttpClient secure gets from a server that replies with
6 // a certificate that can't be authenticated. This checks that all the 6 // a certificate that can't be authenticated. This checks that all the
7 // futures returned from these connection attempts complete (with errors). 7 // futures returned from these connection attempts complete (with errors).
8 8
9 import "dart:async"; 9 import "dart:async";
10 import "dart:io"; 10 import "dart:io";
(...skipping 21 matching lines...) Expand all
32 client.getUrl(Uri.parse('https://$HOST_NAME:$port/')) 32 client.getUrl(Uri.parse('https://$HOST_NAME:$port/'))
33 .then((HttpClientRequest request) { 33 .then((HttpClientRequest request) {
34 expect(false); 34 expect(false);
35 }, onError: (e) { 35 }, onError: (e) {
36 expect(e is HandshakeException || e is SocketException); 36 expect(e is HandshakeException || e is SocketException);
37 })); 37 }));
38 } 38 }
39 return Future.wait(testFutures); 39 return Future.wait(testFutures);
40 } 40 }
41 41
42 void main() { 42 void main(List<String> args) {
43 final args = new Options().arguments;
44 SecureSocket.initialize(); 43 SecureSocket.initialize();
45 runClients(int.parse(args[0])) 44 runClients(int.parse(args[0]))
46 .then((_) => print('SUCCESS')); 45 .then((_) => print('SUCCESS'));
47 } 46 }
OLDNEW
« no previous file with comments | « tests/standalone/io/https_bad_certificate_test.dart ('k') | tests/standalone/io/https_unauthorized_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698