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

Unified Diff: pkg/analyzer/test/src/task/dart_test.dart

Issue 1838453002: Use shared MockSdk instances in resynthesize tests. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/test/src/task/dart_test.dart
diff --git a/pkg/analyzer/test/src/task/dart_test.dart b/pkg/analyzer/test/src/task/dart_test.dart
index 205dc9055343dc66155dcf049f36c3c2d1568da3..c07689b09a01e81f099f6f991fcce682fe2c99c4 100644
--- a/pkg/analyzer/test/src/task/dart_test.dart
+++ b/pkg/analyzer/test/src/task/dart_test.dart
@@ -1076,17 +1076,14 @@ class BuildTypeProviderTaskTest extends _AbstractDartTaskTest {
@reflectiveTest
class BuildTypeProviderTaskTest_noAsync extends _AbstractDartTaskTest {
+ DartSdk createDartSdk() => new MockSdk(dartAsync: false);
Brian Wilkerson 2016/03/28 16:58:03 Should this be a constant?
+
void prepareAnalysisContext([AnalysisOptions options]) {
AnalysisOptionsImpl newOptions = new AnalysisOptionsImpl();
newOptions.enableAsync = false;
super.prepareAnalysisContext(newOptions);
}
- void setUp() {
- sdk = new MockSdk(dartAsync: false);
- super.setUp();
- }
-
test_perform_noAsync() {
expect(context, isNotNull);
computeResult(AnalysisContextTarget.request, TYPE_PROVIDER,

Powered by Google App Engine
This is Rietveld 408576698