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

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

Issue 12342014: Remove deprecated ms arguments for Timer and Future. (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/raw_secure_socket_pause_test.dart
diff --git a/tests/standalone/io/raw_secure_socket_pause_test.dart b/tests/standalone/io/raw_secure_socket_pause_test.dart
index a223e81d5bb21457b5f3662070fa8b7d3930c34a..2b3f63f9eca0b9391bf92cdd7861501730ba286f 100644
--- a/tests/standalone/io/raw_secure_socket_pause_test.dart
+++ b/tests/standalone/io/raw_secure_socket_pause_test.dart
@@ -31,7 +31,7 @@ void main() {
void runPauseTest() {
subscription.pause();
paused = true;
- new Timer(500, (_) {
+ new Timer(const Duration(milliseconds: 500), () {
paused = false;
subscription.resume();
});
@@ -42,7 +42,7 @@ void main() {
readEventsTested = true;
socket.readEventsEnabled = false;
readEventsPaused = true;
- new Timer(500, (_) {
+ new Timer(const Duration(milliseconds: 500), () {
readEventsPaused = false;
socket.readEventsEnabled = true;
});

Powered by Google App Engine
This is Rietveld 408576698