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. |
*/ |