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

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

Issue 12213092: Rework Timer interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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_session_resume_test.dart
diff --git a/tests/standalone/io/secure_session_resume_test.dart b/tests/standalone/io/secure_session_resume_test.dart
index fa0edd116a0bb3dcdffc08eb8579aae7bcf54e87..76746eb78f26930062ae7309f160c5e9636ac1cd 100644
--- a/tests/standalone/io/secure_session_resume_test.dart
+++ b/tests/standalone/io/secure_session_resume_test.dart
@@ -123,11 +123,11 @@ void main() {
keepAlive.close();
};
- int delay = 0;
- int delay_between_connections = 300; // Milliseconds.
+ Duration delay = const Duration(milliseconds: 0);
+ Duration delay_between_connections = const Duration(milliseconds: 300);
for (var x in CLIENT_NAMES) {
- new Timer(delay, (_) {
+ new Timer(delay, () {
new SecureTestClient(port, x);
});
delay += delay_between_connections;
« no previous file with comments | « tests/standalone/io/list_output_stream_test.dart ('k') | tests/standalone/io/skipping_dart2js_compilations_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698