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

Unified Diff: pkg/analyzer/test/src/context/builder_test.dart

Issue 2415413003: Remove unused method and field from DartSdkManager (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « pkg/analyzer/test/generated/sdk_test.dart ('k') | pkg/analyzer/test/stress/for_git_repository.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/context/builder_test.dart
diff --git a/pkg/analyzer/test/src/context/builder_test.dart b/pkg/analyzer/test/src/context/builder_test.dart
index 895a7f1619f5a6b804798e6731d48e71891a3634..fe5031cca9d639005634b0428d102f839e305731 100644
--- a/pkg/analyzer/test/src/context/builder_test.dart
+++ b/pkg/analyzer/test/src/context/builder_test.dart
@@ -82,8 +82,7 @@ const Map<String, LibraryInfo> libraries = const {
"core": const LibraryInfo("core/core.dart"),
};
''');
- sdkManager =
- new DartSdkManager(defaultSdkPath, false, (_) => new MockSdk());
+ sdkManager = new DartSdkManager(defaultSdkPath, false);
builder = new ContextBuilder(resourceProvider, sdkManager, contentCache);
}
@@ -97,9 +96,7 @@ const Map<String, LibraryInfo> libraries = const {
pathContext = resourceProvider.pathContext;
new MockSdk(resourceProvider: resourceProvider);
sdkManager =
- new DartSdkManager(resourceProvider.convertPath('/sdk'), false, (_) {
- fail('Should not be used to create an SDK');
- });
+ new DartSdkManager(resourceProvider.convertPath('/sdk'), false);
contentCache = new ContentCache();
builder = new ContextBuilder(resourceProvider, sdkManager, contentCache);
}
« no previous file with comments | « pkg/analyzer/test/generated/sdk_test.dart ('k') | pkg/analyzer/test/stress/for_git_repository.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698