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

Issue 10689148: CallMatchers can now be null, or take null for a method name. This might be (Closed)

Created:
8 years, 5 months ago by gram
Modified:
8 years, 5 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

CallMatchers can now be null, or take null for a method name. This might be useful if we want to do things like find all method calls that returned a certain value. Committed: https://code.google.com/p/dart/source/detail?r=9570

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -46 lines) Patch
M lib/unittest/mock.dart View 1 10 chunks +60 lines, -29 lines 0 comments Download
M tests/lib/unittest/unittest_test.dart View 1 2 8 chunks +54 lines, -17 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
gram
Small change; there seems no good reason not to allow this and there may be ...
8 years, 5 months ago (2012-07-10 23:22:30 UTC) #1
Siggi Cherem (dart-lang)
http://codereview.chromium.org/10689148/diff/1/tests/lib/unittest/unittest_test.dart File tests/lib/unittest/unittest_test.dart (right): http://codereview.chromium.org/10689148/diff/1/tests/lib/unittest/unittest_test.dart#newcode244 tests/lib/unittest/unittest_test.dart:244: m.when(callsTo(null, 1)).alwaysReturn(2); another option is to pass a regex, ...
8 years, 5 months ago (2012-07-10 23:38:28 UTC) #2
gram
PTAL. The mock name and call matcher can both use matchers now. This does lead ...
8 years, 5 months ago (2012-07-11 18:56:08 UTC) #3
Siggi Cherem (dart-lang)
lgtm (with small comments below) http://chromiumcodereview.appspot.com/10689148/diff/5001/tests/lib/unittest/unittest_test.dart File tests/lib/unittest/unittest_test.dart (right): http://chromiumcodereview.appspot.com/10689148/diff/5001/tests/lib/unittest/unittest_test.dart#newcode340 tests/lib/unittest/unittest_test.dart:340: 'mock test 10 (RegExp ...
8 years, 5 months ago (2012-07-11 19:21:38 UTC) #4
Siggi Cherem (dart-lang)
http://chromiumcodereview.appspot.com/10689148/diff/5001/tests/lib/unittest/unittest_test.dart File tests/lib/unittest/unittest_test.dart (right): http://chromiumcodereview.appspot.com/10689148/diff/5001/tests/lib/unittest/unittest_test.dart#newcode340 tests/lib/unittest/unittest_test.dart:340: 'mock test 10 (RegExp CallMatcher)Good::' On 2012/07/11 19:21:38, sigmund ...
8 years, 5 months ago (2012-07-11 19:22:16 UTC) #5
gram
I split the last test into two to make it clearer. http://chromiumcodereview.appspot.com/10689148/diff/5001/tests/lib/unittest/unittest_test.dart File tests/lib/unittest/unittest_test.dart (right): ...
8 years, 5 months ago (2012-07-11 19:40:10 UTC) #6
Siggi Cherem (dart-lang)
On 2012/07/11 19:40:10, gram wrote: > I split the last test into two to make ...
8 years, 5 months ago (2012-07-11 19:47:24 UTC) #7
Siggi Cherem (dart-lang)
8 years, 5 months ago (2012-07-11 19:47:34 UTC) #8
lgtm

Powered by Google App Engine
This is Rietveld 408576698