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

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

Issue 943723002: Return version with connected notification (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Touched missed Java files Created 5 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 | Annotate | Revision Log
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 return null; 80 return null;
81 }); 81 });
82 } 82 }
83 83
84 /** 84 /**
85 * Reports that the server is running. This notification is issued once after 85 * Reports that the server is running. This notification is issued once after
86 * the server has started running but before any requests are processed to 86 * the server has started running but before any requests are processed to
87 * let the client know that it started correctly. 87 * let the client know that it started correctly.
88 * 88 *
89 * It is not possible to subscribe to or unsubscribe from this notification. 89 * It is not possible to subscribe to or unsubscribe from this notification.
90 *
91 * Parameters
92 *
93 * version ( String )
94 *
95 * The version number of the analysis server.
90 */ 96 */
91 Stream<ServerConnectedParams> onServerConnected; 97 Stream<ServerConnectedParams> onServerConnected;
92 98
93 /** 99 /**
94 * Stream controller for [onServerConnected]. 100 * Stream controller for [onServerConnected].
95 */ 101 */
96 StreamController<ServerConnectedParams> _onServerConnected; 102 StreamController<ServerConnectedParams> _onServerConnected;
97 103
98 /** 104 /**
99 * Reports that an unexpected error has occurred while executing the server. 105 * Reports that an unexpected error has occurred while executing the server.
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after
1524 1530
1525 /** 1531 /**
1526 * Dispatch the notification named [event], and containing parameters 1532 * Dispatch the notification named [event], and containing parameters
1527 * [params], to the appropriate stream. 1533 * [params], to the appropriate stream.
1528 */ 1534 */
1529 void dispatchNotification(String event, params) { 1535 void dispatchNotification(String event, params) {
1530 ResponseDecoder decoder = new ResponseDecoder(null); 1536 ResponseDecoder decoder = new ResponseDecoder(null);
1531 switch (event) { 1537 switch (event) {
1532 case "server.connected": 1538 case "server.connected":
1533 expect(params, isServerConnectedParams); 1539 expect(params, isServerConnectedParams);
1534 _onServerConnected.add(new ServerConnectedParams()); 1540 _onServerConnected.add(new ServerConnectedParams.fromJson(decoder, 'para ms', params));
1535 break; 1541 break;
1536 case "server.error": 1542 case "server.error":
1537 expect(params, isServerErrorParams); 1543 expect(params, isServerErrorParams);
1538 _onServerError.add(new ServerErrorParams.fromJson(decoder, 'params', par ams)); 1544 _onServerError.add(new ServerErrorParams.fromJson(decoder, 'params', par ams));
1539 break; 1545 break;
1540 case "server.status": 1546 case "server.status":
1541 expect(params, isServerStatusParams); 1547 expect(params, isServerStatusParams);
1542 _onServerStatus.add(new ServerStatusParams.fromJson(decoder, 'params', p arams)); 1548 _onServerStatus.add(new ServerStatusParams.fromJson(decoder, 'params', p arams));
1543 break; 1549 break;
1544 case "analysis.errors": 1550 case "analysis.errors":
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1588 case "execution.launchData": 1594 case "execution.launchData":
1589 expect(params, isExecutionLaunchDataParams); 1595 expect(params, isExecutionLaunchDataParams);
1590 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode r, 'params', params)); 1596 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode r, 'params', params));
1591 break; 1597 break;
1592 default: 1598 default:
1593 fail('Unexpected notification: $event'); 1599 fail('Unexpected notification: $event');
1594 break; 1600 break;
1595 } 1601 }
1596 } 1602 }
1597 } 1603 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/generated_protocol.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