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

Issue 10694146: Added ability to disable logging in mocks, to avoid the memory overhead if you don't need behavior … (Closed)

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

Description

Added ability to disable logging in mocks, to avoid the memory overhead if you don't need behavior verification of the mock itself. Changed exceptions to end with periods - seems more Darty. Committed: https://code.google.com/p/dart/source/detail?r=9575

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -118 lines) Patch
M lib/unittest/core_matchers.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/unittest/expect.dart View 1 chunk +2 lines, -1 line 0 comments Download
M lib/unittest/mock.dart View 1 10 chunks +64 lines, -29 lines 0 comments Download
M lib/unittest/unittest.dart View 4 chunks +5 lines, -4 lines 0 comments Download
M tests/lib/unittest/instance_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/lib/unittest/matchers_test.dart View 31 chunks +68 lines, -68 lines 0 comments Download
M tests/lib/unittest/unittest_test.dart View 1 5 chunks +23 lines, -13 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
gram
8 years, 5 months ago (2012-07-11 22:25:19 UTC) #1
Siggi Cherem (dart-lang)
lgtm http://chromiumcodereview.appspot.com/10694146/diff/1/lib/unittest/mock.dart File lib/unittest/mock.dart (right): http://chromiumcodereview.appspot.com/10694146/diff/1/lib/unittest/mock.dart#newcode826 lib/unittest/mock.dart:826: if (log != null) { why not continbue ...
8 years, 5 months ago (2012-07-11 22:46:04 UTC) #2
gram
PTAL. I made it possible to turn logging on/off on the fly. The main questionable ...
8 years, 5 months ago (2012-07-11 23:24:07 UTC) #3
Siggi Cherem (dart-lang)
8 years, 5 months ago (2012-07-11 23:29:37 UTC) #4
lgtm

Powered by Google App Engine
This is Rietveld 408576698