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

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

Issue 2703033002: Add a diagnostic.getServerPort analysis server request. (Closed)
Patch Set: 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..e8e98a6f8cd674638b50bfd5de57efde2364cd59 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
*
* {
@@ -2118,6 +2135,7 @@ final Matcher isRequestError = new LazyMatcher(() => new MatchesJsonObject(
* NO_INDEX_GENERATED
* ORGANIZE_DIRECTIVES_ERROR
* REFACTORING_REQUEST_CANCELLED
+ * ERROR_HANDLING_REQUEST
* SERVER_ALREADY_STARTED
* SERVER_ERROR
* SORT_MEMBERS_INVALID_FILE
@@ -2145,6 +2163,7 @@ final Matcher isRequestErrorCode = new MatchesEnum("RequestErrorCode", [
"NO_INDEX_GENERATED",
"ORGANIZE_DIRECTIVES_ERROR",
"REFACTORING_REQUEST_CANCELLED",
+ "ERROR_HANDLING_REQUEST",
"SERVER_ALREADY_STARTED",
"SERVER_ERROR",
"SORT_MEMBERS_INVALID_FILE",

Powered by Google App Engine
This is Rietveld 408576698