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/lib_strong/async/future_timeout_test.dart

Issue 2959163002: Make Zone API strong mode clean. (Closed)
Patch Set: Created 3 years, 6 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/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/stream_listen_zone_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698