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

Unified Diff: pkg/mock/lib/src/action.dart

Issue 233243007: pkg/mock: restructure library layout (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/mock/lib/mock.dart ('k') | pkg/mock/lib/src/behavior.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/mock/lib/src/action.dart
diff --git a/pkg/mock/lib/src/action.dart b/pkg/mock/lib/src/action.dart
new file mode 100644
index 0000000000000000000000000000000000000000..1712b2c5d0c34a3473675e599f7975c1f2fec15d
--- /dev/null
+++ b/pkg/mock/lib/src/action.dart
@@ -0,0 +1,26 @@
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+library mock.action;
+
+/** The ways in which a call to a mock method can be handled. */
+class Action {
+ /** Do nothing (void method) */
+ static const IGNORE = const Action._('IGNORE');
+
+ /** Return a supplied value. */
+ static const RETURN = const Action._('RETURN');
+
+ /** Throw a supplied value. */
+ static const THROW = const Action._('THROW');
+
+ /** Call a supplied function. */
+ static const PROXY = const Action._('PROXY');
+
+ const Action._(this.name);
+
+ final String name;
+
+ String toString() => 'Action: $name';
+}
« no previous file with comments | « pkg/mock/lib/mock.dart ('k') | pkg/mock/lib/src/behavior.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698