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

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

Issue 2963743002: Revert "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
« no previous file with comments | « tests/co19/co19-co19.status ('k') | tests/lib/async/future_timeout_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/async_await_zones_test.dart
diff --git a/tests/lib/async/async_await_zones_test.dart b/tests/lib/async/async_await_zones_test.dart
index 9e22029549555a35b96265aa9d19878a480fc3ab..cb7011caf896156b5b440a14b9644682a335bab0 100644
--- a/tests/lib/async/async_await_zones_test.dart
+++ b/tests/lib/async/async_await_zones_test.dart
@@ -94,8 +94,7 @@ increaseDepth() {
Expect.isTrue(depth < 20);
}
-ZoneCallback<R> registerCallback<R>(
- Zone self, ZoneDelegate parent, Zone zone, R f()) {
+registerCallback(Zone self, ZoneDelegate parent, Zone zone, f) {
var oldDepth = depth;
increaseDepth();
return parent.registerCallback(zone, () {
@@ -104,8 +103,7 @@ ZoneCallback<R> registerCallback<R>(
});
}
-ZoneUnaryCallback<R, T> registerUnaryCallback<R, T>(
- Zone self, ZoneDelegate parent, Zone zone, R f(T arg)) {
+registerUnaryCallback(Zone self, ZoneDelegate parent, Zone zone, f) {
var oldDepth = depth;
increaseDepth();
return parent.registerUnaryCallback(zone, (x) {
@@ -114,8 +112,7 @@ ZoneUnaryCallback<R, T> registerUnaryCallback<R, T>(
});
}
-ZoneBinaryCallback<R, T1, T2> registerBinaryCallback<R, T1, T2>(
- Zone self, ZoneDelegate parent, Zone zone, R f(T1 arg1, T2 arg2)) {
+registerBinaryCallback(Zone self, ZoneDelegate parent, Zone zone, f) {
var oldDepth = depth;
increaseDepth();
return parent.registerBinaryCallback(zone, (x, y) {
« no previous file with comments | « tests/co19/co19-co19.status ('k') | tests/lib/async/future_timeout_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698