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

Unified Diff: pkg/analysis_server/test/integration/protocol_matchers.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/protocol_matchers.dart
diff --git a/pkg/analysis_server/test/integration/protocol_matchers.dart b/pkg/analysis_server/test/integration/protocol_matchers.dart
index 3bd16da6d047b06bf27647c815b66589cfa2f297..291e8b093f85fd98f6bfc3ffd2beae4ffd7afaa9 100644
--- a/pkg/analysis_server/test/integration/protocol_matchers.dart
+++ b/pkg/analysis_server/test/integration/protocol_matchers.dart
@@ -1007,6 +1007,23 @@ final Matcher isExecutionLaunchDataParams = new LazyMatcher(() => new MatchesJso
}));
/**
+ * experimental.getDiagnostics params
+ */
+final Matcher isExperimentalGetDiagnosticsParams = isNull;
+
+/**
+ * experimental.getDiagnostics result
+ *
+ * {
+ * "contexts": List<ContextData>
+ * }
+ */
+final Matcher isExperimentalGetDiagnosticsResult = new LazyMatcher(() => new MatchesJsonObject(
+ "experimental.getDiagnostics result", {
+ "contexts": isListOf(isContextData)
+ }));
+
+/**
* AddContentOverlay
*
* {
@@ -1259,6 +1276,26 @@ final Matcher isCompletionSuggestionKind = new MatchesEnum("CompletionSuggestion
]);
/**
+ * ContextData
+ *
+ * {
+ * "name": String
+ * "explicitFileCount": int
+ * "implicitFileCount": int
+ * "workItemQueueLength": int
+ * "cacheEntryExceptions": List<String>
+ * }
+ */
+final Matcher isContextData = new LazyMatcher(() => new MatchesJsonObject(
+ "ContextData", {
+ "name": isString,
+ "explicitFileCount": isInt,
+ "implicitFileCount": isInt,
+ "workItemQueueLength": isInt,
+ "cacheEntryExceptions": isListOf(isString)
+ }));
+
+/**
* Element
*
* {
« no previous file with comments | « pkg/analysis_server/test/integration/integration_test_methods.dart ('k') | pkg/analysis_server/test/test_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698