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

Unified Diff: pkg/analysis_server/test/context_manager_test.dart

Issue 1686613002: Use different SDKs based on option settings (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 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;

Powered by Google App Engine
This is Rietveld 408576698