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

Unified Diff: pkg/scheduled_test/lib/src/mock_clock.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
« no previous file with comments | « no previous file | pkg/scheduled_test/lib/src/schedule.dart » ('j') | pkg/scheduled_test/test/utils.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/scheduled_test/lib/src/mock_clock.dart
diff --git a/pkg/scheduled_test/lib/src/mock_clock.dart b/pkg/scheduled_test/lib/src/mock_clock.dart
index efcc7eb2481a2dbca6d260857f6743b07ccefe6b..bda216f35d8d092369d7235edf65d9d023dccca5 100644
--- a/pkg/scheduled_test/lib/src/mock_clock.dart
+++ b/pkg/scheduled_test/lib/src/mock_clock.dart
@@ -30,7 +30,7 @@ Clock mock() {
return _clock;
}
-typedef void TimerCallback(Timer timer);
+typedef void TimerCallback();
/// Returns a new (possibly mocked) [Timer]. Works the same as [new Timer].
Timer newTimer(Duration duration, TimerCallback callback) =>
@@ -94,7 +94,7 @@ class _MockTimer implements Timer {
_subscription = _clock.onTick.listen((time) {
if (_cancelled || time < _time) return;
_subscription.cancel();
- _callback(this);
+ _callback();
});
}
« no previous file with comments | « no previous file | pkg/scheduled_test/lib/src/schedule.dart » ('j') | pkg/scheduled_test/test/utils.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698