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

Issue 10679005: Initial version of mocking support. There is still quite a bit of (Closed)

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

Description

Initial version of mocking support. There is still quite a bit of enhancement possible especially in the verification part, but I think it would be good to get the core in before adding too much, to get early feedback. Committed: https://code.google.com/p/dart/source/detail?r=9183

Patch Set 1 #

Patch Set 2 : #

Total comments: 22

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+453 lines, -11 lines) Patch
M lib/unittest/expect.dart View 1 2 3 4 4 chunks +18 lines, -7 lines 0 comments Download
A lib/unittest/mock.dart View 1 2 3 1 chunk +430 lines, -0 lines 0 comments Download
M lib/unittest/unittest.dart View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/unittest/test_utils.dart View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
gram
8 years, 6 months ago (2012-06-26 21:03:56 UTC) #1
Siggi Cherem (dart-lang)
https://chromiumcodereview.appspot.com/10679005/diff/2001/lib/unittest/expect.dart File lib/unittest/expect.dart (right): https://chromiumcodereview.appspot.com/10679005/diff/2001/lib/unittest/expect.dart#newcode103 lib/unittest/expect.dart:103: FailureHandler getFailureHandler() { please use a getter, or change ...
8 years, 6 months ago (2012-06-26 21:35:44 UTC) #2
gram
PTAL https://chromiumcodereview.appspot.com/10679005/diff/2001/lib/unittest/expect.dart File lib/unittest/expect.dart (right): https://chromiumcodereview.appspot.com/10679005/diff/2001/lib/unittest/expect.dart#newcode103 lib/unittest/expect.dart:103: FailureHandler getFailureHandler() { On 2012/06/26 21:35:44, sigmund wrote: ...
8 years, 6 months ago (2012-06-26 23:39:59 UTC) #3
Siggi Cherem (dart-lang)
lgtm! (see comments below) https://chromiumcodereview.appspot.com/10679005/diff/2001/lib/unittest/mock.dart File lib/unittest/mock.dart (right): https://chromiumcodereview.appspot.com/10679005/diff/2001/lib/unittest/mock.dart#newcode38 lib/unittest/mock.dart:38: On 2012/06/26 23:39:59, gram wrote: ...
8 years, 6 months ago (2012-06-26 23:58:27 UTC) #4
gram
8 years, 5 months ago (2012-06-27 17:58:48 UTC) #5
https://chromiumcodereview.appspot.com/10679005/diff/9001/lib/unittest/mock.dart
File lib/unittest/mock.dart (right):

https://chromiumcodereview.appspot.com/10679005/diff/9001/lib/unittest/mock.d...
lib/unittest/mock.dart:75: final _noArg = const _Sentinel();
On 2012/06/26 23:58:27, sigmund wrote:
> then we can just the value '_sentinel' that is in unittest.dart :). In fact,
you
> should have that _sentinel === _noArg at this point

Yes, they are equivalent but I prefer this separate 'instantiation' in case we
do split the libraries at some point.

Powered by Google App Engine
This is Rietveld 408576698