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

Side by Side Diff: pkg/analyzer_plugin/test/integration/support/integration_test_methods.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 * Convenience methods for running integration tests 10 * Convenience methods for running integration tests
(...skipping 12 matching lines...) Expand all
23 */ 23 */
24 abstract class IntegrationTestMixin { 24 abstract class IntegrationTestMixin {
25 Server get server; 25 Server get server;
26 26
27 /** 27 /**
28 * Used to request that the plugin perform a version check to confirm that it 28 * Used to request that the plugin perform a version check to confirm that it
29 * works with the version of the analysis server that is executing it. 29 * works with the version of the analysis server that is executing it.
30 * 30 *
31 * Parameters 31 * Parameters
32 * 32 *
33 * byteStorePath (String)
34 *
35 * The path to the directory containing the on-disk byte store that is to
36 * be used by any analysis drivers that are created.
37 *
33 * version (String) 38 * version (String)
34 * 39 *
35 * The version number of the plugin spec supported by the analysis server 40 * The version number of the plugin spec supported by the analysis server
36 * that is executing the plugin. 41 * that is executing the plugin.
37 * 42 *
38 * Returns 43 * Returns
39 * 44 *
40 * isCompatible (bool) 45 * isCompatible (bool)
41 * 46 *
42 * A flag indicating whether the plugin supports the same version of the 47 * A flag indicating whether the plugin supports the same version of the
43 * plugin spec as the analysis server. If the value is false, then the 48 * plugin spec as the analysis server. If the value is false, then the
44 * plugin is expected to shutdown after returning the response. 49 * plugin is expected to shutdown after returning the response.
45 * 50 *
46 * name (String) 51 * name (String)
47 * 52 *
48 * The name of the plugin. This value is only used when the server needs to 53 * The name of the plugin. This value is only used when the server needs to
49 * identify the plugin, either to the user or for debugging purposes. 54 * identify the plugin, either to the user or for debugging purposes.
50 * 55 *
51 * version (String) 56 * version (String)
52 * 57 *
53 * The version of the plugin. This value is only used when the server needs 58 * The version of the plugin. This value is only used when the server needs
54 * to identify the plugin, either to the user or for debugging purposes. 59 * to identify the plugin, either to the user or for debugging purposes.
55 * 60 *
56 * email (optional String) 61 * contactInfo (optional String)
57 * 62 *
58 * An e-mail address that either the client or the user can use to contact 63 * Information that the user can use to use to contact the maintainers of
59 * the maintainers of the plugin when there is a problem. 64 * the plugin when there is a problem.
60 * 65 *
61 * interestingFiles (List<String>) 66 * interestingFiles (List<String>)
62 * 67 *
63 * The glob patterns of the files for which the plugin will provide 68 * The glob patterns of the files for which the plugin will provide
64 * information. This value is ignored if the isCompatible field is false. 69 * information. This value is ignored if the isCompatible field is false.
65 * Otherwise, it will be used to identify the files for which the plugin 70 * Otherwise, it will be used to identify the files for which the plugin
66 * should be notified of changes. 71 * should be notified of changes.
67 */ 72 */
68 Future<PluginVersionCheckResult> sendPluginVersionCheck(String version) async { 73 Future<PluginVersionCheckResult> sendPluginVersionCheck(String byteStorePath, String version) async {
69 var params = new PluginVersionCheckParams(version).toJson(); 74 var params = new PluginVersionCheckParams(byteStorePath, version).toJson();
70 var result = await server.send("plugin.versionCheck", params); 75 var result = await server.send("plugin.versionCheck", params);
71 ResponseDecoder decoder = new ResponseDecoder(null); 76 ResponseDecoder decoder = new ResponseDecoder(null);
72 return new PluginVersionCheckResult.fromJson(decoder, 'result', result); 77 return new PluginVersionCheckResult.fromJson(decoder, 'result', result);
73 } 78 }
74 79
75 /** 80 /**
76 * Used to request that the plugin exit. The server will not send any other 81 * Used to request that the plugin exit. The server will not send any other
77 * requests after this request. The plugin should not send any responses or 82 * requests after this request. The plugin should not send any responses or
78 * notifications after sending the response to this request. 83 * notifications after sending the response to this request.
79 */ 84 */
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 case "analysis.outline": 727 case "analysis.outline":
723 outOfTestExpect(params, isAnalysisOutlineParams); 728 outOfTestExpect(params, isAnalysisOutlineParams);
724 _onAnalysisOutline.add(new AnalysisOutlineParams.fromJson(decoder, 'para ms', params)); 729 _onAnalysisOutline.add(new AnalysisOutlineParams.fromJson(decoder, 'para ms', params));
725 break; 730 break;
726 default: 731 default:
727 fail('Unexpected notification: $event'); 732 fail('Unexpected notification: $event');
728 break; 733 break;
729 } 734 }
730 } 735 }
731 } 736 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698