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

Unified Diff: pkg/analysis_server/test/context_manager_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
Index: pkg/analysis_server/test/context_manager_test.dart
diff --git a/pkg/analysis_server/test/context_manager_test.dart b/pkg/analysis_server/test/context_manager_test.dart
index 178db278fc6abcaf7eade62fb9625f39dfa5482e..46414f6cc3e4e8eb7cca8cc04601f27fcec18e2c 100644
--- a/pkg/analysis_server/test/context_manager_test.dart
+++ b/pkg/analysis_server/test/context_manager_test.dart
@@ -1791,8 +1791,9 @@ abstract class ContextManagerTest {
processRequiredPlugins();
resourceProvider = new MemoryResourceProvider();
packageMapProvider = new MockPackageMapProvider();
- DartSdk sdk = new MockSdk(resourceProvider: resourceProvider);
- DartSdkManager sdkManager = new DartSdkManager('/', false, (_) => sdk);
+ // Create an SDK in the mock file system.
+ new MockSdk(resourceProvider: resourceProvider);
+ DartSdkManager sdkManager = new DartSdkManager('/', false);
manager = new ContextManagerImpl(
resourceProvider,
sdkManager,
@@ -2705,7 +2706,7 @@ class TestContextManagerCallbacks extends ContextManagerCallbacks {
@override
ContextBuilder createContextBuilder(Folder folder, AnalysisOptions options) {
- DartSdkManager sdkManager = new DartSdkManager('/', false, null);
+ DartSdkManager sdkManager = new DartSdkManager('/', false);
ContextBuilder builder =
new ContextBuilder(resourceProvider, sdkManager, new ContentCache());
builder.defaultOptions = options;
« no previous file with comments | « pkg/analysis_server/test/analysis_server_test.dart ('k') | pkg/analysis_server/test/domain_analysis_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698