OLD | NEW |
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 for secure_bad_certificate_test, that runs in a subprocess. | 5 // Client for secure_bad_certificate_test, that runs in a subprocess. |
6 // The test verifies that the client bad certificate callback works. | 6 // The test verifies that the client bad certificate callback works. |
7 | 7 |
8 import "dart:async"; | 8 import "dart:async"; |
9 import "dart:io"; | 9 import "dart:io"; |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 expect(error is HandshakeException); | 45 expect(error is HandshakeException); |
46 } else if (result == 'exception') { | 46 } else if (result == 'exception') { |
47 expect(error is ExpectException); | 47 expect(error is ExpectException); |
48 } else { | 48 } else { |
49 expect(error is ArgumentError); | 49 expect(error is ArgumentError); |
50 } | 50 } |
51 }); | 51 }); |
52 } | 52 } |
53 | 53 |
54 | 54 |
55 void main() { | 55 void main(List<String> args) { |
56 final args = new Options().arguments; | |
57 SecureSocket.initialize(); | 56 SecureSocket.initialize(); |
58 runClient(int.parse(args[0]), args[1]); | 57 runClient(int.parse(args[0]), args[1]); |
59 } | 58 } |
OLD | NEW |