OLD | NEW |
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 2019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2030 * The duration of the event in milliseconds. | 2030 * The duration of the event in milliseconds. |
2031 */ | 2031 */ |
2032 Future sendAnalyticsSendTiming(String event, int millis) async { | 2032 Future sendAnalyticsSendTiming(String event, int millis) async { |
2033 var params = new AnalyticsSendTimingParams(event, millis).toJson(); | 2033 var params = new AnalyticsSendTimingParams(event, millis).toJson(); |
2034 var result = await server.send("analytics.sendTiming", params); | 2034 var result = await server.send("analytics.sendTiming", params); |
2035 outOfTestExpect(result, isNull); | 2035 outOfTestExpect(result, isNull); |
2036 return null; | 2036 return null; |
2037 } | 2037 } |
2038 | 2038 |
2039 /** | 2039 /** |
| 2040 * Return the list of KytheEntry objects for some file, given the current |
| 2041 * state of the file system populated by "analysis.updateContent". |
| 2042 * |
| 2043 * Parameters |
| 2044 * |
| 2045 * file: FilePath |
| 2046 * |
| 2047 * The file containing the code for which the Kythe Entry objects are being |
| 2048 * requested. |
| 2049 * |
| 2050 * Returns |
| 2051 * |
| 2052 * entries: List<KytheEntry> |
| 2053 * |
| 2054 * The list of KytheEntry objects for the queried file. |
| 2055 * |
| 2056 * files: List<FilePath> |
| 2057 * |
| 2058 * The set of files paths that were required, but not in the file system, |
| 2059 * to give a complete and accurate Kythe graph for the file. This could be |
| 2060 * due to a referenced file that does not exist or generated files not |
| 2061 * being generated or passed before the call to "getKytheEntries". |
| 2062 */ |
| 2063 Future<KytheGetKytheEntriesResult> sendKytheGetKytheEntries( |
| 2064 String file) async { |
| 2065 var params = new KytheGetKytheEntriesParams(file).toJson(); |
| 2066 var result = await server.send("kythe.getKytheEntries", params); |
| 2067 ResponseDecoder decoder = new ResponseDecoder(null); |
| 2068 return new KytheGetKytheEntriesResult.fromJson(decoder, 'result', result); |
| 2069 } |
| 2070 |
| 2071 /** |
2040 * Initialize the fields in InttestMixin, and ensure that notifications will | 2072 * Initialize the fields in InttestMixin, and ensure that notifications will |
2041 * be handled. | 2073 * be handled. |
2042 */ | 2074 */ |
2043 void initializeInttestMixin() { | 2075 void initializeInttestMixin() { |
2044 _onServerConnected = | 2076 _onServerConnected = |
2045 new StreamController<ServerConnectedParams>(sync: true); | 2077 new StreamController<ServerConnectedParams>(sync: true); |
2046 onServerConnected = _onServerConnected.stream.asBroadcastStream(); | 2078 onServerConnected = _onServerConnected.stream.asBroadcastStream(); |
2047 _onServerError = new StreamController<ServerErrorParams>(sync: true); | 2079 _onServerError = new StreamController<ServerErrorParams>(sync: true); |
2048 onServerError = _onServerError.stream.asBroadcastStream(); | 2080 onServerError = _onServerError.stream.asBroadcastStream(); |
2049 _onServerStatus = new StreamController<ServerStatusParams>(sync: true); | 2081 _onServerStatus = new StreamController<ServerStatusParams>(sync: true); |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2191 outOfTestExpect(params, isExecutionLaunchDataParams); | 2223 outOfTestExpect(params, isExecutionLaunchDataParams); |
2192 _onExecutionLaunchData.add( | 2224 _onExecutionLaunchData.add( |
2193 new ExecutionLaunchDataParams.fromJson(decoder, 'params', params)); | 2225 new ExecutionLaunchDataParams.fromJson(decoder, 'params', params)); |
2194 break; | 2226 break; |
2195 default: | 2227 default: |
2196 fail('Unexpected notification: $event'); | 2228 fail('Unexpected notification: $event'); |
2197 break; | 2229 break; |
2198 } | 2230 } |
2199 } | 2231 } |
2200 } | 2232 } |
OLD | NEW |