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

Unified Diff: tests/standalone/io/secure_multiple_client_server_test.dart

Issue 12328037: Add missing files from previous commit (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: tests/standalone/io/secure_multiple_client_server_test.dart
diff --git a/tests/standalone/io/secure_session_resume_test.dart b/tests/standalone/io/secure_multiple_client_server_test.dart
similarity index 71%
copy from tests/standalone/io/secure_session_resume_test.dart
copy to tests/standalone/io/secure_multiple_client_server_test.dart
index b1cf5ebf4d7cbf47d10f84d7e5fec555f53312af..52e0b56966e7b1526e45cd9e82135c2ef172b49a 100644
--- a/tests/standalone/io/secure_session_resume_test.dart
+++ b/tests/standalone/io/secure_multiple_client_server_test.dart
@@ -2,15 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
-// This test tests TLS session resume, by making multiple client connections
-// on the same port to the same server, with a delay of 200 ms between them.
-// The unmodified secure_server_test creates all sessions simultaneously,
-// which means that no handshake completes and caches its keys in the session
-// cache in time for other connections to use it.
-//
-// Session resume is currently disabled - see issue
-// https://code.google.com/p/dart/issues/detail?id=7230
-//
// VMOptions=
// VMOptions=--short_socket_read
// VMOptions=--short_socket_write
@@ -60,16 +51,9 @@ void main() {
SecureSocket.initialize(database: certificateDatabase.toNativePath(),
password: 'dartdart');
- Duration delay = const Duration(milliseconds: 0);
- Duration delay_between_connections = const Duration(milliseconds: 300);
-
startServer()
.then((server) => Future.wait(
['able', 'baker', 'charlie', 'dozen', 'elapse']
- .map((name) {
- delay += delay_between_connections;
- return new Future.delayed(delay, () => server)
- .then((server) => testClient(server, name));
- })))
+ .map((name) => testClient(server, name))))
.then((servers) => servers.first.close());
}
« no previous file with comments | « tests/standalone/io/secure_client_server_test.dart ('k') | tests/standalone/io/secure_server_closing_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698