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

Unified Diff: pkg/scheduled_test/test/utils.dart

Issue 229633002: Fix an analyzer warning in scheduled_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 | « pkg/scheduled_test/lib/scheduled_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/scheduled_test/test/utils.dart
diff --git a/pkg/scheduled_test/test/utils.dart b/pkg/scheduled_test/test/utils.dart
index e2b6fcd7921d899c98b679259282c587f251a60d..2d27b2df86e3fcd72155c1189524cc6f258f2269 100644
--- a/pkg/scheduled_test/test/utils.dart
+++ b/pkg/scheduled_test/test/utils.dart
@@ -62,7 +62,7 @@ void setUpTimeout() {
/// Creates a metatest with [body] and asserts that it passes.
///
/// This is like [expectTestsPass], but the [test] is set up automatically.
-void expectTestPasses(String description, void body()) =>
+void expectTestPasses(String description, Future body()) =>
expectTestsPass(description, () => test('test', body));
/// Creates a metatest that runs [testBody], captures its schedule errors, and
@@ -70,7 +70,7 @@ void expectTestPasses(String description, void body()) =>
///
/// [testBody] is expected to produce an error, while [validator] is expected to
/// produce none.
-void expectTestFails(String description, void testBody(),
+void expectTestFails(String description, Future testBody(),
void validator(List<ScheduleError> errors)) {
expectTestsPass(description, () {
var errors;
« no previous file with comments | « pkg/scheduled_test/lib/scheduled_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698