| OLD | NEW |
| 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 Loading... |
| 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); |
| OLD | NEW |