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

Unified Diff: pkg/unittest/mock.dart

Issue 10919024: - Change "static final" to "static const" in the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/unittest/interactive_html_config.dart ('k') | pkg/unittest/numeric_matchers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/mock.dart
===================================================================
--- pkg/unittest/mock.dart (revision 11633)
+++ pkg/unittest/mock.dart (working copy)
@@ -41,21 +41,21 @@
/**
* [_noArg] is a sentinel value representing no argument.
*/
-final _noArg = const _Sentinel();
+const _noArg = const _Sentinel();
/** The ways in which a call to a mock method can be handled. */
class Action {
/** Do nothing (void method) */
- static final IGNORE = const Action._('IGNORE');
+ static const IGNORE = const Action._('IGNORE');
/** Return a supplied value. */
- static final RETURN = const Action._('RETURN');
+ static const RETURN = const Action._('RETURN');
/** Throw a supplied value. */
- static final THROW = const Action._('THROW');
+ static const THROW = const Action._('THROW');
/** Call a supplied function. */
- static final PROXY = const Action._('PROXY');
+ static const PROXY = const Action._('PROXY');
const Action._(this.name);
@@ -901,16 +901,16 @@
}
/** [neverHappened] matches zero calls. */
-final Matcher neverHappened = const _TimesMatcher(0, 0);
+const Matcher neverHappened = const _TimesMatcher(0, 0);
/** [happenedOnce] matches exactly one call. */
-final Matcher happenedOnce = const _TimesMatcher(1, 1);
+const Matcher happenedOnce = const _TimesMatcher(1, 1);
/** [happenedAtLeastOnce] matches one or more calls. */
-final Matcher happenedAtLeastOnce = const _TimesMatcher(1);
+const Matcher happenedAtLeastOnce = const _TimesMatcher(1);
/** [happenedAtMostOnce] matches zero or one call. */
-final Matcher happenedAtMostOnce = const _TimesMatcher(0, 1);
+const Matcher happenedAtMostOnce = const _TimesMatcher(0, 1);
/**
* [_ResultMatcher]s are used to make assertions about the results
@@ -972,13 +972,13 @@
/** Special values for use with [_ResultSetMatcher] [frequency]. */
class _Frequency {
/** Every call/throw must match */
- static final ALL = const _Frequency._('ALL');
+ static const ALL = const _Frequency._('ALL');
/** At least one call/throw must match. */
- static final SOME = const _Frequency._('SOME');
+ static const SOME = const _Frequency._('SOME');
/** No calls/throws should match. */
- static final NONE = const _Frequency._('NONE');
+ static const NONE = const _Frequency._('NONE');
const _Frequency._(this.name);
« no previous file with comments | « pkg/unittest/interactive_html_config.dart ('k') | pkg/unittest/numeric_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698