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

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

Issue 2423593002: Add test directive to include other files used by a test in its compiled output directory. (Closed)
Patch Set: Created 4 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
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 // This test tests TLS session resume, by making multiple client connections 5 // This test tests TLS session resume, by making multiple client connections
6 // on the same port to the same server, with a delay of 200 ms between them. 6 // on the same port to the same server, with a delay of 200 ms between them.
7 // The unmodified secure_server_test creates all sessions simultaneously, 7 // The unmodified secure_server_test creates all sessions simultaneously,
8 // which means that no handshake completes and caches its keys in the session 8 // which means that no handshake completes and caches its keys in the session
9 // cache in time for other connections to use it. 9 // cache in time for other connections to use it.
10 // 10 //
11 // Session resume is currently disabled - see issue 11 // Session resume is currently disabled - see issue
12 // https://code.google.com/p/dart/issues/detail?id=7230 12 // https://code.google.com/p/dart/issues/detail?id=7230
13 // 13 //
14 // VMOptions= 14 // VMOptions=
15 // VMOptions=--short_socket_read 15 // VMOptions=--short_socket_read
16 // VMOptions=--short_socket_write 16 // VMOptions=--short_socket_write
17 // VMOptions=--short_socket_read --short_socket_write 17 // VMOptions=--short_socket_read --short_socket_write
18 // OtherResources=certificates/server_chain.pem
19 // OtherResources=certificates/server_key.pem
20 // OtherResources=certificates/trusted_certs.pem
18 21
19 import "dart:async"; 22 import "dart:async";
20 import "dart:io"; 23 import "dart:io";
21 import "dart:isolate"; 24 import "dart:isolate";
22 25
23 import "package:expect/expect.dart"; 26 import "package:expect/expect.dart";
24 import "package:async_helper/async_helper.dart"; 27 import "package:async_helper/async_helper.dart";
25 28
26 InternetAddress HOST; 29 InternetAddress HOST;
27 30
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 return startServer() 83 return startServer()
81 .then((server) => Future.wait( 84 .then((server) => Future.wait(
82 ['able', 'baker', 'charlie', 'dozen', 'elapse'] 85 ['able', 'baker', 'charlie', 'dozen', 'elapse']
83 .map((name) { 86 .map((name) {
84 delay += delay_between_connections; 87 delay += delay_between_connections;
85 return new Future.delayed(delay, () => server) 88 return new Future.delayed(delay, () => server)
86 .then((server) => testClient(server, name)); 89 .then((server) => testClient(server, name));
87 }))) 90 })))
88 .then((servers) => servers.first.close()); 91 .then((servers) => servers.first.close());
89 } 92 }
OLDNEW
« no previous file with comments | « tests/standalone/io/secure_server_socket_test.dart ('k') | tests/standalone/io/secure_socket_alpn_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698