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 2efad9594878150db4cf519263c5da9bc6d25963..753a2f5fe333e2fcc9a5b65a0e82ea3ea38f00d1 100644 |
--- a/pkg/analysis_server/test/analysis_abstract.dart |
+++ b/pkg/analysis_server/test/analysis_abstract.dart |
@@ -46,6 +46,8 @@ class AbstractAnalysisTest { |
RequestHandler handler; |
final List<ServerErrorParams> serverErrors = <ServerErrorParams>[]; |
+ final List<GeneralAnalysisService> generalServices = |
+ <GeneralAnalysisService>[]; |
final Map<AnalysisService, List<String>> analysisSubscriptions = {}; |
String projectPath = '/project'; |
@@ -74,6 +76,13 @@ class AbstractAnalysisTest { |
return path; |
} |
+ void addGeneralAnalysisSubscription(GeneralAnalysisService service) { |
+ generalServices.add(service); |
+ Request request = new AnalysisSetGeneralSubscriptionsParams(generalServices) |
+ .toRequest('0'); |
+ handleSuccessfulRequest(request); |
+ } |
+ |
String addTestFile(String content) { |
addFile(testFile, content); |
this.testCode = content; |