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 41b0983502c4e5aeb96eacd1e7e929566e9a8748..1aa02fef7ad9ee6fa3e671afd19293061e77fd2f 100644 |
--- a/pkg/analysis_server/test/context_manager_test.dart |
+++ b/pkg/analysis_server/test/context_manager_test.dart |
@@ -1820,8 +1820,8 @@ abstract class ContextManagerTest { |
processRequiredPlugins(); |
resourceProvider = new MemoryResourceProvider(); |
packageMapProvider = new MockPackageMapProvider(); |
- DartSdkManager sdkManager = |
- new DartSdkManager('', false, (_) => new MockSdk()); |
+ DartSdk sdk = new MockSdk(resourceProvider: resourceProvider); |
+ DartSdkManager sdkManager = new DartSdkManager('/', false, (_) => sdk); |
manager = new ContextManagerImpl( |
resourceProvider, |
sdkManager, |
@@ -2705,6 +2705,15 @@ class TestContextManagerCallbacks extends ContextManagerCallbacks { |
} |
@override |
+ ContextBuilder createContextBuilder(Folder folder, AnalysisOptions options) { |
+ DartSdkManager sdkManager = new DartSdkManager('/', false, null); |
+ ContextBuilder builder = |
+ new ContextBuilder(resourceProvider, sdkManager, new ContentCache()); |
+ builder.defaultOptions = options; |
+ return builder; |
+ } |
+ |
+ @override |
void moveContext(Folder from, Folder to) { |
String path = from.path; |
String path2 = to.path; |