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

Unified Diff: tests/lib/async/zone_bind_callback_unary_test.dart

Issue 2893893002: Use generic functions in zones. (Closed)
Patch Set: Change synchronous error handling of `runZoned`. 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/async/zone_bind_callback_unary_test.dart
diff --git a/tests/lib/async/zone_bind_callback_unary_test.dart b/tests/lib/async/zone_bind_callback_unary_test.dart
index 3f315e312db6b8dc50abd0c1615412794fc2b8e6..2da33be65a083d6bec448563cc77635b203e0b03 100644
--- a/tests/lib/async/zone_bind_callback_unary_test.dart
+++ b/tests/lib/async/zone_bind_callback_unary_test.dart
@@ -15,7 +15,7 @@ main() {
Expect.identical(Zone.ROOT, Zone.current);
Zone forked = Zone.current.fork(specification: new ZoneSpecification(
registerUnaryCallback:
- (Zone self, ZoneDelegate parent, Zone origin, f(arg)) {
+ <R, T>(Zone self, ZoneDelegate parent, Zone origin, R f(T arg)) {
// The zone is still the same as when origin.run was invoked, which
// is the root zone. (The origin zone hasn't been set yet).
Expect.identical(Zone.current, Zone.ROOT);
@@ -32,7 +32,7 @@ main() {
Expect.identical(forked, Zone.current);
return x + 99;
};
- var bound = forked.bindUnaryCallback(fun, runGuarded: false);
+ var bound = forked.bindUnaryCallback(fun);
Expect.isFalse(identical(fun, bound));
// It is legal to invoke the callback in a different zone. This is, of course,

Powered by Google App Engine
This is Rietveld 408576698