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

Unified Diff: tests/lib_strong/async/future_timeout_test.dart

Issue 3014593002: Use generic functions in zones. (Closed)
Patch Set: Added changes missing from patch set #2 Created 3 years, 3 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 | « tests/lib_strong/async/async_await_zones_test.dart ('k') | tests/lib_strong/async/run_zoned6_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib_strong/async/future_timeout_test.dart
diff --git a/tests/lib_strong/async/future_timeout_test.dart b/tests/lib_strong/async/future_timeout_test.dart
index 6020a815859bc28b9c381fc5ae3c0aad43300179..ac06377eb628e5f8dc4b9e5743564b1613ad705a 100644
--- a/tests/lib_strong/async/future_timeout_test.dart
+++ b/tests/lib_strong/async/future_timeout_test.dart
@@ -155,7 +155,8 @@ main() {
return 42;
};
forked = Zone.current.fork(specification: new ZoneSpecification(
- registerCallback: (Zone self, ZoneDelegate parent, Zone origin, f()) {
+ registerCallback:
+ <R>(Zone self, ZoneDelegate parent, Zone origin, R f()) {
if (!identical(f, callback)) return f;
registerCallDelta++; // Increment calls to register.
expect(origin, forked);
« no previous file with comments | « tests/lib_strong/async/async_await_zones_test.dart ('k') | tests/lib_strong/async/run_zoned6_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698