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

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

Issue 2703033002: Add a diagnostic.getServerPort analysis server request. (Closed)
Patch Set: nits to the spec doc Created 3 years, 10 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/protocol_matchers.dart
diff --git a/pkg/analysis_server/test/integration/protocol_matchers.dart b/pkg/analysis_server/test/integration/protocol_matchers.dart
index 7f2f3abcb0cc9bfaa0817ca02019c27d56ce3a69..58a53bdf4ffdc6ce35b9d108c16af54db392d305 100644
--- a/pkg/analysis_server/test/integration/protocol_matchers.dart
+++ b/pkg/analysis_server/test/integration/protocol_matchers.dart
@@ -1053,6 +1053,23 @@ final Matcher isDiagnosticGetDiagnosticsResult = new LazyMatcher(() => new Match
}));
/**
+ * diagnostic.getServerPort params
+ */
+final Matcher isDiagnosticGetServerPortParams = isNull;
+
+/**
+ * diagnostic.getServerPort result
+ *
+ * {
+ * "port": int
+ * }
+ */
+final Matcher isDiagnosticGetServerPortResult = new LazyMatcher(() => new MatchesJsonObject(
+ "diagnostic.getServerPort result", {
+ "port": isInt
+ }));
+
+/**
* AddContentOverlay
*
* {
@@ -2103,6 +2120,7 @@ final Matcher isRequestError = new LazyMatcher(() => new MatchesJsonObject(
*
* enum {
* CONTENT_MODIFIED
+ * DEBUG_PORT_COULD_NOT_BE_OPENED
* FILE_NOT_ANALYZED
* FORMAT_INVALID_FILE
* FORMAT_WITH_ERRORS
@@ -2130,6 +2148,7 @@ final Matcher isRequestError = new LazyMatcher(() => new MatchesJsonObject(
*/
final Matcher isRequestErrorCode = new MatchesEnum("RequestErrorCode", [
"CONTENT_MODIFIED",
+ "DEBUG_PORT_COULD_NOT_BE_OPENED",
"FILE_NOT_ANALYZED",
"FORMAT_INVALID_FILE",
"FORMAT_WITH_ERRORS",
« no previous file with comments | « pkg/analysis_server/test/integration/integration_test_methods.dart ('k') | pkg/analysis_server/test/socket_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698