OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 // |
| 5 // OtherResources=certificates/server_chain.pem |
| 6 // OtherResources=certificates/server_key.pem |
| 7 // OtherResources=certificates/trusted_certs.pem |
4 | 8 |
5 import 'dart:io'; | 9 import 'dart:io'; |
6 import 'dart:convert'; | 10 import 'dart:convert'; |
7 | 11 |
8 import 'package:expect/expect.dart'; | 12 import 'package:expect/expect.dart'; |
9 import 'package:async_helper/async_helper.dart'; | 13 import 'package:async_helper/async_helper.dart'; |
10 | 14 |
11 const String NAME_LENGTH_ERROR = | 15 const String NAME_LENGTH_ERROR = |
12 'Length of protocol must be between 1 and 255'; | 16 'Length of protocol must be between 1 and 255'; |
13 | 17 |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 // Issue https://github.com/dart-lang/sdk/issues/23580 | 202 // Issue https://github.com/dart-lang/sdk/issues/23580 |
199 // Chromium issue https://code.google.com/p/chromium/issues/detail?id=497770 | 203 // Chromium issue https://code.google.com/p/chromium/issues/detail?id=497770 |
200 testSuccessfulAlpnNegotiationConnection(['a'], ['b'], null); | 204 testSuccessfulAlpnNegotiationConnection(['a'], ['b'], null); |
201 | 205 |
202 // Test too short / too long protocol names. | 206 // Test too short / too long protocol names. |
203 testInvalidArgument([longname256], NAME_LENGTH_ERROR); | 207 testInvalidArgument([longname256], NAME_LENGTH_ERROR); |
204 testInvalidArgument([strangelongname256], NAME_LENGTH_ERROR); | 208 testInvalidArgument([strangelongname256], NAME_LENGTH_ERROR); |
205 testInvalidArgument([''], NAME_LENGTH_ERROR); | 209 testInvalidArgument([''], NAME_LENGTH_ERROR); |
206 testInvalidArgument(tooManyProtocols, MESSAGE_LENGTH_ERROR); | 210 testInvalidArgument(tooManyProtocols, MESSAGE_LENGTH_ERROR); |
207 } | 211 } |
OLD | NEW |