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

Side by Side Diff: pkg/analysis_server/test/integration/integration_test_methods.dart

Issue 1416093007: Experimental `getDiagnostics` request (#24480). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Review fixes. Created 5 years, 1 month 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) 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 1611 matching lines...) Expand 10 before | Expand all | Expand 10 after
1622 * omitted if the file is not an HTML file. 1622 * omitted if the file is not an HTML file.
1623 */ 1623 */
1624 Stream<ExecutionLaunchDataParams> onExecutionLaunchData; 1624 Stream<ExecutionLaunchDataParams> onExecutionLaunchData;
1625 1625
1626 /** 1626 /**
1627 * Stream controller for [onExecutionLaunchData]. 1627 * Stream controller for [onExecutionLaunchData].
1628 */ 1628 */
1629 StreamController<ExecutionLaunchDataParams> _onExecutionLaunchData; 1629 StreamController<ExecutionLaunchDataParams> _onExecutionLaunchData;
1630 1630
1631 /** 1631 /**
1632 * Return server diagnostics.
1633 *
1634 * Returns
1635 *
1636 * contexts ( List<ContextData> )
1637 *
1638 * The list of analysis contexts.
1639 */
1640 Future<ExperimentalGetDiagnosticsResult> sendExperimentalGetDiagnostics() {
1641 return server.send("experimental.getDiagnostics", null)
1642 .then((result) {
1643 ResponseDecoder decoder = new ResponseDecoder(null);
1644 return new ExperimentalGetDiagnosticsResult.fromJson(decoder, 'result', re sult);
1645 });
1646 }
1647
1648 /**
1632 * Initialize the fields in InttestMixin, and ensure that notifications will 1649 * Initialize the fields in InttestMixin, and ensure that notifications will
1633 * be handled. 1650 * be handled.
1634 */ 1651 */
1635 void initializeInttestMixin() { 1652 void initializeInttestMixin() {
1636 _onServerConnected = new StreamController<ServerConnectedParams>(sync: true) ; 1653 _onServerConnected = new StreamController<ServerConnectedParams>(sync: true) ;
1637 onServerConnected = _onServerConnected.stream.asBroadcastStream(); 1654 onServerConnected = _onServerConnected.stream.asBroadcastStream();
1638 _onServerError = new StreamController<ServerErrorParams>(sync: true); 1655 _onServerError = new StreamController<ServerErrorParams>(sync: true);
1639 onServerError = _onServerError.stream.asBroadcastStream(); 1656 onServerError = _onServerError.stream.asBroadcastStream();
1640 _onServerStatus = new StreamController<ServerStatusParams>(sync: true); 1657 _onServerStatus = new StreamController<ServerStatusParams>(sync: true);
1641 onServerStatus = _onServerStatus.stream.asBroadcastStream(); 1658 onServerStatus = _onServerStatus.stream.asBroadcastStream();
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1743 case "execution.launchData": 1760 case "execution.launchData":
1744 expect(params, isExecutionLaunchDataParams); 1761 expect(params, isExecutionLaunchDataParams);
1745 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode r, 'params', params)); 1762 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode r, 'params', params));
1746 break; 1763 break;
1747 default: 1764 default:
1748 fail('Unexpected notification: $event'); 1765 fail('Unexpected notification: $event');
1749 break; 1766 break;
1750 } 1767 }
1751 } 1768 }
1752 } 1769 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/domain_experimental_test.dart ('k') | pkg/analysis_server/test/integration/protocol_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698