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

Issue 1838453002: Use shared MockSdk instances in resynthesize tests. (Closed)

Created:
4 years, 9 months ago by scheglov
Modified:
4 years, 8 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Use shared MockSdk instances in resynthesize tests. This restores tests performance mostly to where it was before, modulo additional time for a new UnlinkedSummarizeAstTest set of tests. R=paulberry@google.com, brianwilkerson@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/0dfa93772effe91809651d930e070ea015fc6aca

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -10 lines) Patch
M pkg/analyzer/test/src/context/abstract_context.dart View 3 chunks +7 lines, -1 line 2 comments Download
M pkg/analyzer/test/src/summary/resynthesize_strong_test.dart View 2 chunks +4 lines, -0 lines 0 comments Download
M pkg/analyzer/test/src/summary/resynthesize_test.dart View 5 chunks +8 lines, -4 lines 0 comments Download
M pkg/analyzer/test/src/task/dart_test.dart View 1 chunk +2 lines, -5 lines 1 comment Download

Messages

Total messages: 6 (1 generated)
scheglov
4 years, 9 months ago (2016-03-25 16:17:19 UTC) #1
Paul Berry
lgtm
4 years, 9 months ago (2016-03-25 16:42:33 UTC) #2
scheglov
Committed patchset #1 (id:1) manually as 0dfa93772effe91809651d930e070ea015fc6aca (presubmit successful).
4 years, 9 months ago (2016-03-25 17:22:30 UTC) #4
Brian Wilkerson
https://codereview.chromium.org/1838453002/diff/1/pkg/analyzer/test/src/context/abstract_context.dart File pkg/analyzer/test/src/context/abstract_context.dart (right): https://codereview.chromium.org/1838453002/diff/1/pkg/analyzer/test/src/context/abstract_context.dart#newcode126 pkg/analyzer/test/src/context/abstract_context.dart:126: DartSdk createDartSdk() => new MockSdk(); It seems strange to ...
4 years, 8 months ago (2016-03-28 16:58:03 UTC) #5
scheglov
4 years, 8 months ago (2016-03-28 17:03:35 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/1838453002/diff/1/pkg/analyzer/test/src/conte...
File pkg/analyzer/test/src/context/abstract_context.dart (right):

https://codereview.chromium.org/1838453002/diff/1/pkg/analyzer/test/src/conte...
pkg/analyzer/test/src/context/abstract_context.dart:126: DartSdk createDartSdk()
=> new MockSdk();
On 2016/03/28 16:58:03, Brian Wilkerson wrote:
> It seems strange to create a new SDK when we have two created above.

My intention is to test SDK analysis from scratch in every Dart analysis task
test.
OTOH when we're outside of dart.dart tests, we can opt-in to using a shared SDK.

Powered by Google App Engine
This is Rietveld 408576698