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

Unified Diff: pkg/analysis_server/test/integration/integration_tests.dart

Issue 2808623002: Add 4 integration tests for the analysis domain. (Closed)
Patch Set: dartfmt Created 3 years, 8 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/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);

Powered by Google App Engine
This is Rietveld 408576698