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

Issue 324083005: Add 'resetInteractions' into typed_mock. (Closed)

Created:
6 years, 6 months ago by scheglov
Modified:
6 years, 6 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add 'resetInteractions' into typed_mock. 1. I decided not to change the verifyZeroInteractions(TypedMock) API. There is an advantage in having it typed, such as (potentially) improved code completion. The drawback is that tests have to use MyClassMock type annotatino instead of MyClass. But TypedMock does not have any API, so it should not be a big problem. 2. It is impossible to distinguish 'get:foo' access from taking a reference to a method or property invocation. I guess it is intentional. We could probably distinguish them using mirrors, but typed_mock should work without mirrors. So, resetInteractions() should be used. R=brianwilkerson@google.com, paulberry@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=37191

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -1 line) Patch
M pkg/typed_mock/lib/typed_mock.dart View 1 chunk +8 lines, -0 lines 0 comments Download
M pkg/typed_mock/pubspec.yaml View 1 chunk +1 line, -1 line 0 comments Download
M pkg/typed_mock/test/typed_mock_test.dart View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
scheglov
6 years, 6 months ago (2014-06-10 18:06:15 UTC) #1
Brian Wilkerson
LGTM
6 years, 6 months ago (2014-06-10 18:21:09 UTC) #2
scheglov
6 years, 6 months ago (2014-06-10 18:23:29 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as r37191 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698