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

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

Issue 2286923002: Convert analysis server over to use ContextBuilder (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: address comment, fix bugs, clean-up Created 4 years, 4 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/analysis_server/test/completion_test.dart ('k') | pkg/analysis_server/test/domain_analysis_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « pkg/analysis_server/test/completion_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