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

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

Issue 1416093007: Experimental `getDiagnostics` request (#24480). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Review fixes. Created 5 years, 1 month 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_test_methods.dart
diff --git a/pkg/analysis_server/test/integration/integration_test_methods.dart b/pkg/analysis_server/test/integration/integration_test_methods.dart
index bfe19dd9cc2e2ff37dc56d431f9442108374e75c..5bfce6ac51a2f2d7f0bafeb703c1b700eee94073 100644
--- a/pkg/analysis_server/test/integration/integration_test_methods.dart
+++ b/pkg/analysis_server/test/integration/integration_test_methods.dart
@@ -1629,6 +1629,23 @@ abstract class IntegrationTestMixin {
StreamController<ExecutionLaunchDataParams> _onExecutionLaunchData;
/**
+ * Return server diagnostics.
+ *
+ * Returns
+ *
+ * contexts ( List<ContextData> )
+ *
+ * The list of analysis contexts.
+ */
+ Future<ExperimentalGetDiagnosticsResult> sendExperimentalGetDiagnostics() {
+ return server.send("experimental.getDiagnostics", null)
+ .then((result) {
+ ResponseDecoder decoder = new ResponseDecoder(null);
+ return new ExperimentalGetDiagnosticsResult.fromJson(decoder, 'result', result);
+ });
+ }
+
+ /**
* Initialize the fields in InttestMixin, and ensure that notifications will
* be handled.
*/
« no previous file with comments | « pkg/analysis_server/test/domain_experimental_test.dart ('k') | pkg/analysis_server/test/integration/protocol_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698