Index: pkg/analysis_server/test/integration/integration_tests.dart |
diff --git a/pkg/analysis_server/test/integration/integration_tests.dart b/pkg/analysis_server/test/integration/integration_tests.dart |
index 45a766657076745b42ce5bf859aaee913de1e6be..e41c54eb8c1503a636f453b6b47e70fea47b5963 100644 |
--- a/pkg/analysis_server/test/integration/integration_tests.dart |
+++ b/pkg/analysis_server/test/integration/integration_tests.dart |
@@ -115,6 +115,11 @@ abstract class AbstractAnalysisServerIntegrationTest |
new HashMap<String, List<AnalysisError>>(); |
/** |
+ * The last list of analyzed files received. |
+ */ |
+ List<String> lastAnalyzedFiles; |
+ |
+ /** |
* True if the teardown process should skip sending a "server.shutdown" |
* request (e.g. because the server is known to have already shutdown). |
*/ |
@@ -138,7 +143,7 @@ abstract class AbstractAnalysisServerIntegrationTest |
* multiple times in one test; each time it is used it will wait afresh for |
* analysis to finish. |
*/ |
- Future get analysisFinished { |
+ Future<ServerStatusParams> get analysisFinished { |
Completer completer = new Completer(); |
StreamSubscription subscription; |
// This will only work if the caller has already subscribed to |
@@ -192,6 +197,9 @@ abstract class AbstractAnalysisServerIntegrationTest |
onAnalysisErrors.listen((AnalysisErrorsParams params) { |
currentAnalysisErrors[params.file] = params.errors; |
}); |
+ onAnalysisAnalyzedFiles.listen((AnalysisAnalyzedFilesParams params) { |
+ lastAnalyzedFiles = params.directories; |
+ }); |
Completer serverConnected = new Completer(); |
onServerConnected.listen((_) { |
outOfTestExpect(serverConnected.isCompleted, isFalse); |