OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1623 * | 1623 * |
1624 * The list of analysis contexts. | 1624 * The list of analysis contexts. |
1625 */ | 1625 */ |
1626 Future<DiagnosticGetDiagnosticsResult> sendDiagnosticGetDiagnostics() async { | 1626 Future<DiagnosticGetDiagnosticsResult> sendDiagnosticGetDiagnostics() async { |
1627 var result = await server.send("diagnostic.getDiagnostics", null); | 1627 var result = await server.send("diagnostic.getDiagnostics", null); |
1628 ResponseDecoder decoder = new ResponseDecoder(null); | 1628 ResponseDecoder decoder = new ResponseDecoder(null); |
1629 return new DiagnosticGetDiagnosticsResult.fromJson(decoder, 'result', result
); | 1629 return new DiagnosticGetDiagnosticsResult.fromJson(decoder, 'result', result
); |
1630 } | 1630 } |
1631 | 1631 |
1632 /** | 1632 /** |
| 1633 * Return the port of the diagnostic web server. If the server is not running |
| 1634 * this call will start the server. If unable to start the diagnostic web |
| 1635 * server, this call will return an error of DEBUG_PORT_COULD_NOT_BE_OPENED. |
| 1636 * |
| 1637 * Returns |
| 1638 * |
| 1639 * port (int) |
| 1640 * |
| 1641 * The diagnostic server port. |
| 1642 */ |
| 1643 Future<DiagnosticGetServerPortResult> sendDiagnosticGetServerPort() async { |
| 1644 var result = await server.send("diagnostic.getServerPort", null); |
| 1645 ResponseDecoder decoder = new ResponseDecoder(null); |
| 1646 return new DiagnosticGetServerPortResult.fromJson(decoder, 'result', result)
; |
| 1647 } |
| 1648 |
| 1649 /** |
1633 * Initialize the fields in InttestMixin, and ensure that notifications will | 1650 * Initialize the fields in InttestMixin, and ensure that notifications will |
1634 * be handled. | 1651 * be handled. |
1635 */ | 1652 */ |
1636 void initializeInttestMixin() { | 1653 void initializeInttestMixin() { |
1637 _onServerConnected = new StreamController<ServerConnectedParams>(sync: true)
; | 1654 _onServerConnected = new StreamController<ServerConnectedParams>(sync: true)
; |
1638 onServerConnected = _onServerConnected.stream.asBroadcastStream(); | 1655 onServerConnected = _onServerConnected.stream.asBroadcastStream(); |
1639 _onServerError = new StreamController<ServerErrorParams>(sync: true); | 1656 _onServerError = new StreamController<ServerErrorParams>(sync: true); |
1640 onServerError = _onServerError.stream.asBroadcastStream(); | 1657 onServerError = _onServerError.stream.asBroadcastStream(); |
1641 _onServerStatus = new StreamController<ServerStatusParams>(sync: true); | 1658 _onServerStatus = new StreamController<ServerStatusParams>(sync: true); |
1642 onServerStatus = _onServerStatus.stream.asBroadcastStream(); | 1659 onServerStatus = _onServerStatus.stream.asBroadcastStream(); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1744 case "execution.launchData": | 1761 case "execution.launchData": |
1745 outOfTestExpect(params, isExecutionLaunchDataParams); | 1762 outOfTestExpect(params, isExecutionLaunchDataParams); |
1746 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode
r, 'params', params)); | 1763 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode
r, 'params', params)); |
1747 break; | 1764 break; |
1748 default: | 1765 default: |
1749 fail('Unexpected notification: $event'); | 1766 fail('Unexpected notification: $event'); |
1750 break; | 1767 break; |
1751 } | 1768 } |
1752 } | 1769 } |
1753 } | 1770 } |
OLD | NEW |