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

Side by Side Diff: pkg/unittest/lib/src/spread_args_helper.dart

Issue 208273009: pkg/unittest: Removed references to expectAsync[Until]X in docs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/unittest/lib/src/simple_configuration.dart ('k') | pkg/unittest/lib/src/test_case.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 part of unittest; 1 part of unittest;
2 2
3 const _PLACE_HOLDER = const _ArgPlaceHolder(); 3 const _PLACE_HOLDER = const _ArgPlaceHolder();
4 4
5 /// Used to track unused positional args. 5 /// Used to track unused positional args.
6 class _ArgPlaceHolder { 6 class _ArgPlaceHolder {
7 const _ArgPlaceHolder(); 7 const _ArgPlaceHolder();
8 } 8 }
9 9
10 /** Simulates spread arguments using named arguments. */ 10 /// Simulates spread arguments using named arguments.
11 // TODO(sigmund): remove this class and simply use a closure with named 11 // TODO(sigmund): remove this class and simply use a closure with named
12 // arguments (if still applicable). 12 // arguments (if still applicable).
13 class _SpreadArgsHelper { 13 class _SpreadArgsHelper {
14 final Function callback; 14 final Function callback;
15 final int minExpectedCalls; 15 final int minExpectedCalls;
16 final int maxExpectedCalls; 16 final int maxExpectedCalls;
17 final Function isDone; 17 final Function isDone;
18 final String id; 18 final String id;
19 int actualCalls = 0; 19 int actualCalls = 0;
20 final TestCase testCase; 20 final TestCase testCase;
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 } 157 }
158 } 158 }
159 159
160 typedef _Func0(); 160 typedef _Func0();
161 typedef _Func1(a); 161 typedef _Func1(a);
162 typedef _Func2(a, b); 162 typedef _Func2(a, b);
163 typedef _Func3(a, b, c); 163 typedef _Func3(a, b, c);
164 typedef _Func4(a, b, c, d); 164 typedef _Func4(a, b, c, d);
165 typedef _Func5(a, b, c, d, e); 165 typedef _Func5(a, b, c, d, e);
166 typedef _Func6(a, b, c, d, e, f); 166 typedef _Func6(a, b, c, d, e, f);
OLDNEW
« no previous file with comments | « pkg/unittest/lib/src/simple_configuration.dart ('k') | pkg/unittest/lib/src/test_case.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698