Index: pkg/analyzer_plugin/test/integration/support/protocol_matchers.dart |
diff --git a/pkg/analyzer_plugin/test/integration/support/protocol_matchers.dart b/pkg/analyzer_plugin/test/integration/support/protocol_matchers.dart |
index 7bc0fc19e7677445283aa74c4e8c76878c927af6..dbb2e4509c1fda817c3d51ae02633bede49db71f 100644 |
--- a/pkg/analyzer_plugin/test/integration/support/protocol_matchers.dart |
+++ b/pkg/analyzer_plugin/test/integration/support/protocol_matchers.dart |
@@ -506,6 +506,46 @@ final Matcher isHighlightRegionType = new MatchesEnum("HighlightRegionType", [ |
]); |
/** |
+ * KytheEntry |
+ * |
+ * { |
+ * "source": KytheVName |
+ * "kind": String |
+ * "target": KytheVName |
+ * "fact": String |
+ * "value": List<int> |
+ * } |
+ */ |
+final Matcher isKytheEntry = |
+ new LazyMatcher(() => new MatchesJsonObject("KytheEntry", { |
+ "source": isKytheVName, |
+ "kind": isString, |
+ "target": isKytheVName, |
+ "fact": isString, |
+ "value": isListOf(isInt) |
+ })); |
+ |
+/** |
+ * KytheVName |
+ * |
+ * { |
+ * "signature": String |
+ * "corpus": String |
+ * "root": String |
+ * "path": String |
+ * "language": String |
+ * } |
+ */ |
+final Matcher isKytheVName = |
+ new LazyMatcher(() => new MatchesJsonObject("KytheVName", { |
+ "signature": isString, |
+ "corpus": isString, |
+ "root": isString, |
+ "path": isString, |
+ "language": isString |
+ })); |
+ |
+/** |
* LinkedEditGroup |
* |
* { |
@@ -1347,6 +1387,29 @@ final Matcher isInlineMethodOptions = new LazyMatcher(() => |
"inlineMethod options", {"deleteSource": isBool, "inlineAll": isBool})); |
/** |
+ * kythe.getKytheEntries params |
+ * |
+ * { |
+ * "file": FilePath |
+ * } |
+ */ |
+final Matcher isKytheGetKytheEntriesParams = new LazyMatcher(() => |
+ new MatchesJsonObject( |
+ "kythe.getKytheEntries params", {"file": isFilePath})); |
+ |
+/** |
+ * kythe.getKytheEntries result |
+ * |
+ * { |
+ * "entries": List<KytheEntry> |
+ * "files": List<FilePath> |
+ * } |
+ */ |
+final Matcher isKytheGetKytheEntriesResult = new LazyMatcher(() => |
+ new MatchesJsonObject("kythe.getKytheEntries result", |
+ {"entries": isListOf(isKytheEntry), "files": isListOf(isFilePath)})); |
+ |
+/** |
* moveFile feedback |
*/ |
final Matcher isMoveFileFeedback = isNull; |