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

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: 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..3f0da6c7652afc8d5bd2ef1c565bd310cb966308 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<ContextInfo>
+ * }
+ */
+final Matcher isExperimentalGetDiagnosticsResult = new LazyMatcher(() => new MatchesJsonObject(
+ "experimental.getDiagnostics result", {
+ "contexts": isListOf(isContextInfo)
+ }));
+
+/**
* AddContentOverlay
*
* {
@@ -1259,6 +1276,26 @@ final Matcher isCompletionSuggestionKind = new MatchesEnum("CompletionSuggestion
]);
/**
+ * ContextInfo
+ *
+ * {
+ * "name": String
+ * "explicitlyAnalyzedFiles": int
+ * "implicitlyAnalyzedFiles": int
+ * "workItemQueueLength": int
+ * "cacheEntryExceptions": List<String>
+ * }
+ */
+final Matcher isContextInfo = new LazyMatcher(() => new MatchesJsonObject(
+ "ContextInfo", {
+ "name": isString,
+ "explicitlyAnalyzedFiles": isInt,
+ "implicitlyAnalyzedFiles": isInt,
+ "workItemQueueLength": isInt,
+ "cacheEntryExceptions": isListOf(isString)
+ }));
+
+/**
* Element
*
* {

Powered by Google App Engine
This is Rietveld 408576698