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 cce4de07f7663219604496c88573d1d7a76befc1..ac2a8388fae0d98c578cd7ea7f33f3871ec72aba 100644 |
--- a/pkg/analysis_server/test/context_manager_test.dart |
+++ b/pkg/analysis_server/test/context_manager_test.dart |
@@ -2310,7 +2310,11 @@ class TestContextManagerCallbacks extends ContextManagerCallbacks { |
Iterable<String> get currentContextPaths => currentContextTimestamps.keys; |
@override |
- AnalysisContext addContext(Folder folder, FolderDisposition disposition) { |
+ AnalysisOptions get defaultAnalysisOptions => new AnalysisOptionsImpl(); |
+ |
+ @override |
+ AnalysisContext addContext( |
+ Folder folder, AnalysisOptions options, FolderDisposition disposition) { |
String path = folder.path; |
expect(currentContextPaths, isNot(contains(path))); |
currentContextTimestamps[path] = now; |
@@ -2333,6 +2337,7 @@ class TestContextManagerCallbacks extends ContextManagerCallbacks { |
} |
resolvers.addAll(disposition.createPackageUriResolvers(resourceProvider)); |
resolvers.add(new FileUriResolver()); |
+ currentContext.analysisOptions = options; |
currentContext.sourceFactory = |
new SourceFactory(resolvers, disposition.packages); |
return currentContext; |