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

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

Issue 2795743002: Add context information to driver and add hooks for plugin management (Closed)
Patch Set: Created 3 years, 9 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 878d4392d9195467f5d89ea5a26adcc01650fb83..43026ebf223d5fc001bb0e420fc52077bbdfc387 100644
--- a/pkg/analysis_server/test/context_manager_test.dart
+++ b/pkg/analysis_server/test/context_manager_test.dart
@@ -8,6 +8,7 @@ import 'dart:collection';
import 'package:analysis_server/src/context_manager.dart';
import 'package:analysis_server/src/utilities/null_string_sink.dart';
+import 'package:analyzer/context/context_root.dart';
import 'package:analyzer/error/error.dart';
import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/file_system/memory_file_system.dart';
@@ -2706,9 +2707,12 @@ class TestContextManagerCallbacks extends ContextManagerCallbacks {
: currentDriver.sourceFactory;
@override
- AnalysisDriver addAnalysisDriver(Folder folder, AnalysisOptions options) {
+ AnalysisDriver addAnalysisDriver(
+ Folder folder, ContextRoot contextRoot, AnalysisOptions options) {
String path = folder.path;
expect(currentContextRoots, isNot(contains(path)));
+ expect(contextRoot, isNotNull);
+ expect(contextRoot.root, path);
currentContextTimestamps[path] = now;
ContextBuilder builder =
@@ -2724,7 +2728,7 @@ class TestContextManagerCallbacks extends ContextManagerCallbacks {
resourceProvider,
new MemoryByteStore(),
new FileContentOverlay(),
- path,
+ contextRoot,
sourceFactory,
analysisOptions);
driverMap[path] = currentDriver;
« no previous file with comments | « pkg/analysis_server/test/abstract_context.dart ('k') | pkg/analysis_server/test/services/search/search_engine2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698