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

Unified Diff: utils/tests/pub/validator/size_test.dart

Issue 14070010: Refactor Future constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added co19 issue number. Created 7 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 | « utils/tests/pub/validator/dependency_test.dart ('k') | utils/tests/pub/version_solver_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/validator/size_test.dart
diff --git a/utils/tests/pub/validator/size_test.dart b/utils/tests/pub/validator/size_test.dart
index 47c7d1e686f10bb9b65261e286ee7c50e8e59c71..3dd1e2148f7b79d2a062b6982371ce5bad97bc69 100644
--- a/utils/tests/pub/validator/size_test.dart
+++ b/utils/tests/pub/validator/size_test.dart
@@ -16,7 +16,7 @@ import 'utils.dart';
Function size(int size) {
return (entrypoint) =>
- new SizeValidator(entrypoint, new Future.immediate(size));
+ new SizeValidator(entrypoint, new Future.value(size));
}
main() {
« no previous file with comments | « utils/tests/pub/validator/dependency_test.dart ('k') | utils/tests/pub/version_solver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698