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

Side by Side Diff: pkg/analyzer_plugin/test/integration/support/protocol_matchers.dart

Issue 2677663003: Update plugin spec (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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 // This file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script 6 // To regenerate the file, use the script
7 // "pkg/analysis_server/tool/spec/generate_files". 7 // "pkg/analysis_server/tool/spec/generate_files".
8 8
9 /** 9 /**
10 * Matchers for data types defined in the analysis server API 10 * Matchers for data types defined in the analysis server API
11 */ 11 */
12 import 'package:test/test.dart'; 12 import 'package:test/test.dart';
13 13
14 import 'integration_tests.dart'; 14 import 'integration_tests.dart';
15 15
16 /** 16 /**
17 * plugin.versionCheck params 17 * plugin.versionCheck params
18 * 18 *
19 * { 19 * {
20 * "byteStorePath": String
20 * "version": String 21 * "version": String
21 * } 22 * }
22 */ 23 */
23 final Matcher isPluginVersionCheckParams = new LazyMatcher(() => new MatchesJson Object( 24 final Matcher isPluginVersionCheckParams = new LazyMatcher(() => new MatchesJson Object(
24 "plugin.versionCheck params", { 25 "plugin.versionCheck params", {
26 "byteStorePath": isString,
25 "version": isString 27 "version": isString
26 })); 28 }));
27 29
28 /** 30 /**
29 * plugin.versionCheck result 31 * plugin.versionCheck result
30 * 32 *
31 * { 33 * {
32 * "isCompatible": bool 34 * "isCompatible": bool
33 * "name": String 35 * "name": String
34 * "version": String 36 * "version": String
35 * "email": optional String 37 * "contactInfo": optional String
36 * "interestingFiles": List<String> 38 * "interestingFiles": List<String>
37 * } 39 * }
38 */ 40 */
39 final Matcher isPluginVersionCheckResult = new LazyMatcher(() => new MatchesJson Object( 41 final Matcher isPluginVersionCheckResult = new LazyMatcher(() => new MatchesJson Object(
40 "plugin.versionCheck result", { 42 "plugin.versionCheck result", {
41 "isCompatible": isBool, 43 "isCompatible": isBool,
42 "name": isString, 44 "name": isString,
43 "version": isString, 45 "version": isString,
44 "interestingFiles": isListOf(isString) 46 "interestingFiles": isListOf(isString)
45 }, optionalFields: { 47 }, optionalFields: {
46 "email": isString 48 "contactInfo": isString
47 })); 49 }));
48 50
49 /** 51 /**
50 * plugin.shutdown params 52 * plugin.shutdown params
51 */ 53 */
52 final Matcher isPluginShutdownParams = isNull; 54 final Matcher isPluginShutdownParams = isNull;
53 55
54 /** 56 /**
55 * plugin.shutdown result 57 * plugin.shutdown result
56 */ 58 */
(...skipping 1492 matching lines...) Expand 10 before | Expand all | Expand 10 after
1549 * 1551 *
1550 * { 1552 * {
1551 * "newName": String 1553 * "newName": String
1552 * } 1554 * }
1553 */ 1555 */
1554 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( 1556 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject(
1555 "rename options", { 1557 "rename options", {
1556 "newName": isString 1558 "newName": isString
1557 })); 1559 }));
1558 1560
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698