| Index: pkg/analysis_server/test/context_directory_manager_test.dart
|
| diff --git a/pkg/analysis_server/test/context_directory_manager_test.dart b/pkg/analysis_server/test/context_directory_manager_test.dart
|
| index 283dd63d277d55679afcd3b0b7f54d97db76c123..0bebce08a6586ddfba987b4922b0a4744c26639e 100644
|
| --- a/pkg/analysis_server/test/context_directory_manager_test.dart
|
| +++ b/pkg/analysis_server/test/context_directory_manager_test.dart
|
| @@ -21,9 +21,10 @@ class TestContextDirectoryManager extends ContextDirectoryManager {
|
|
|
| @override
|
| void addContext(Folder folder, File pubspecFile) {
|
| - currentContextPaths.add(folder.path);
|
| - currentContextPubspecPaths[folder.path] = pubspecFile != null ? pubspecFile.path : null;
|
| - currentContextFilePaths[folder.path] = new Set<String>();
|
| + String path = folder.path;
|
| + currentContextPaths.add(path);
|
| + currentContextPubspecPaths[path] = pubspecFile != null ? pubspecFile.path : null;
|
| + currentContextFilePaths[path] = new Set<String>();
|
| }
|
|
|
| @override
|
| @@ -39,6 +40,14 @@ class TestContextDirectoryManager extends ContextDirectoryManager {
|
| }
|
| // TODO(paulberry): handle source.changedSources.
|
| }
|
| +
|
| + @override
|
| + void removeContext(Folder folder) {
|
| + String path = folder.path;
|
| + currentContextPaths.remove(path);
|
| + currentContextPubspecPaths.remove(path);
|
| + currentContextFilePaths.remove(path);
|
| + }
|
| }
|
|
|
| main() {
|
|
|