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

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

Issue 1232393005: Add notification of analyzed files (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 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;

Powered by Google App Engine
This is Rietveld 408576698