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

Unified Diff: pkg/analysis_server/test/analysis_abstract.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
Index: pkg/analysis_server/test/analysis_abstract.dart
diff --git a/pkg/analysis_server/test/analysis_abstract.dart b/pkg/analysis_server/test/analysis_abstract.dart
index b76102d8c46b799c98a8afb5066ff6265cb4f481..0db5841cf5dfce262c8af70b482c8beca1777c27 100644
--- a/pkg/analysis_server/test/analysis_abstract.dart
+++ b/pkg/analysis_server/test/analysis_abstract.dart
@@ -125,6 +125,7 @@ class AbstractAnalysisTest {
//
// Create server
//
+ MockSdk sdk = new MockSdk(resourceProvider: resourceProvider);
return new AnalysisServer(
serverChannel,
resourceProvider,
@@ -132,7 +133,7 @@ class AbstractAnalysisTest {
index,
serverPlugin,
new AnalysisServerOptions(),
- new DartSdkManager('', false, (_) => new MockSdk()),
+ new DartSdkManager('/', false, (_) => sdk),
InstrumentationService.NULL_SERVICE);
}
@@ -143,10 +144,10 @@ class AbstractAnalysisTest {
/**
* Creates a project `/project`.
*/
- void createProject() {
+ void createProject({Map<String, String> packageRoots}) {
resourceProvider.newFolder(projectPath);
Request request =
- new AnalysisSetAnalysisRootsParams([projectPath], []).toRequest('0');
+ new AnalysisSetAnalysisRootsParams([projectPath], [], packageRoots: packageRoots).toRequest('0');
handleSuccessfulRequest(request, handler: analysisHandler);
}
« no previous file with comments | « pkg/analysis_server/lib/src/context_manager.dart ('k') | pkg/analysis_server/test/analysis_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698