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

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

Issue 2413573003: Replace expect() with outOfTestExpect() in Analysis Server performance benchmark. (Closed)
Patch Set: Created 4 years, 2 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) 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 /** 45 /**
46 * Cleanly shutdown the analysis server. Requests that are received after 46 * Cleanly shutdown the analysis server. Requests that are received after
47 * this request will not be processed. Requests that were received before 47 * this request will not be processed. Requests that were received before
48 * this request, but for which a response has not yet been sent, will not be 48 * this request, but for which a response has not yet been sent, will not be
49 * responded to. No further responses or notifications will be sent after the 49 * responded to. No further responses or notifications will be sent after the
50 * response to this request has been sent. 50 * response to this request has been sent.
51 */ 51 */
52 Future sendServerShutdown() async { 52 Future sendServerShutdown() async {
53 var result = await server.send("server.shutdown", null); 53 var result = await server.send("server.shutdown", null);
54 expect(result, isNull); 54 outOfTestExpect(result, isNull);
55 return null; 55 return null;
56 } 56 }
57 57
58 /** 58 /**
59 * Subscribe for services. All previous subscriptions are replaced by the 59 * Subscribe for services. All previous subscriptions are replaced by the
60 * given set of services. 60 * given set of services.
61 * 61 *
62 * It is an error if any of the elements in the list are not valid services. 62 * It is an error if any of the elements in the list are not valid services.
63 * If there is an error, then the current subscriptions will remain 63 * If there is an error, then the current subscriptions will remain
64 * unchanged. 64 * unchanged.
65 * 65 *
66 * Parameters 66 * Parameters
67 * 67 *
68 * subscriptions (List<ServerService>) 68 * subscriptions (List<ServerService>)
69 * 69 *
70 * A list of the services being subscribed to. 70 * A list of the services being subscribed to.
71 */ 71 */
72 Future sendServerSetSubscriptions(List<ServerService> subscriptions) async { 72 Future sendServerSetSubscriptions(List<ServerService> subscriptions) async {
73 var params = new ServerSetSubscriptionsParams(subscriptions).toJson(); 73 var params = new ServerSetSubscriptionsParams(subscriptions).toJson();
74 var result = await server.send("server.setSubscriptions", params); 74 var result = await server.send("server.setSubscriptions", params);
75 expect(result, isNull); 75 outOfTestExpect(result, isNull);
76 return null; 76 return null;
77 } 77 }
78 78
79 /** 79 /**
80 * Reports that the server is running. This notification is issued once after 80 * Reports that the server is running. This notification is issued once after
81 * the server has started running but before any requests are processed to 81 * the server has started running but before any requests are processed to
82 * let the client know that it started correctly. 82 * let the client know that it started correctly.
83 * 83 *
84 * It is not possible to subscribe to or unsubscribe from this notification. 84 * It is not possible to subscribe to or unsubscribe from this notification.
85 * 85 *
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 * 369 *
370 * Parameters 370 * Parameters
371 * 371 *
372 * roots (optional List<FilePath>) 372 * roots (optional List<FilePath>)
373 * 373 *
374 * A list of the analysis roots that are to be re-analyzed. 374 * A list of the analysis roots that are to be re-analyzed.
375 */ 375 */
376 Future sendAnalysisReanalyze({List<String> roots}) async { 376 Future sendAnalysisReanalyze({List<String> roots}) async {
377 var params = new AnalysisReanalyzeParams(roots: roots).toJson(); 377 var params = new AnalysisReanalyzeParams(roots: roots).toJson();
378 var result = await server.send("analysis.reanalyze", params); 378 var result = await server.send("analysis.reanalyze", params);
379 expect(result, isNull); 379 outOfTestExpect(result, isNull);
380 return null; 380 return null;
381 } 381 }
382 382
383 /** 383 /**
384 * Sets the root paths used to determine which files to analyze. The set of 384 * Sets the root paths used to determine which files to analyze. The set of
385 * files to be analyzed are all of the files in one of the root paths that 385 * files to be analyzed are all of the files in one of the root paths that
386 * are not either explicitly or implicitly excluded. A file is explicitly 386 * are not either explicitly or implicitly excluded. A file is explicitly
387 * excluded if it is in one of the excluded paths. A file is implicitly 387 * excluded if it is in one of the excluded paths. A file is implicitly
388 * excluded if it is in a subdirectory of one of the root paths where the 388 * excluded if it is in a subdirectory of one of the root paths where the
389 * name of the subdirectory starts with a period (that is, a hidden 389 * name of the subdirectory starts with a period (that is, a hidden
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 * VM when executing any Dart file inside the source directory. 435 * VM when executing any Dart file inside the source directory.
436 * 436 *
437 * Files in any directories that are not overridden by this mapping have 437 * Files in any directories that are not overridden by this mapping have
438 * their package: URI's resolved using the normal pubspec.yaml mechanism. 438 * their package: URI's resolved using the normal pubspec.yaml mechanism.
439 * If this field is absent, or the empty map is specified, that indicates 439 * If this field is absent, or the empty map is specified, that indicates
440 * that the normal pubspec.yaml mechanism should always be used. 440 * that the normal pubspec.yaml mechanism should always be used.
441 */ 441 */
442 Future sendAnalysisSetAnalysisRoots(List<String> included, List<String> exclud ed, {Map<String, String> packageRoots}) async { 442 Future sendAnalysisSetAnalysisRoots(List<String> included, List<String> exclud ed, {Map<String, String> packageRoots}) async {
443 var params = new AnalysisSetAnalysisRootsParams(included, excluded, packageR oots: packageRoots).toJson(); 443 var params = new AnalysisSetAnalysisRootsParams(included, excluded, packageR oots: packageRoots).toJson();
444 var result = await server.send("analysis.setAnalysisRoots", params); 444 var result = await server.send("analysis.setAnalysisRoots", params);
445 expect(result, isNull); 445 outOfTestExpect(result, isNull);
446 return null; 446 return null;
447 } 447 }
448 448
449 /** 449 /**
450 * Subscribe for general services (that is, services that are not specific to 450 * Subscribe for general services (that is, services that are not specific to
451 * individual files). All previous subscriptions are replaced by the given 451 * individual files). All previous subscriptions are replaced by the given
452 * set of services. 452 * set of services.
453 * 453 *
454 * It is an error if any of the elements in the list are not valid services. 454 * It is an error if any of the elements in the list are not valid services.
455 * If there is an error, then the current subscriptions will remain 455 * If there is an error, then the current subscriptions will remain
456 * unchanged. 456 * unchanged.
457 * 457 *
458 * Parameters 458 * Parameters
459 * 459 *
460 * subscriptions (List<GeneralAnalysisService>) 460 * subscriptions (List<GeneralAnalysisService>)
461 * 461 *
462 * A list of the services being subscribed to. 462 * A list of the services being subscribed to.
463 */ 463 */
464 Future sendAnalysisSetGeneralSubscriptions(List<GeneralAnalysisService> subscr iptions) async { 464 Future sendAnalysisSetGeneralSubscriptions(List<GeneralAnalysisService> subscr iptions) async {
465 var params = new AnalysisSetGeneralSubscriptionsParams(subscriptions).toJson (); 465 var params = new AnalysisSetGeneralSubscriptionsParams(subscriptions).toJson ();
466 var result = await server.send("analysis.setGeneralSubscriptions", params); 466 var result = await server.send("analysis.setGeneralSubscriptions", params);
467 expect(result, isNull); 467 outOfTestExpect(result, isNull);
468 return null; 468 return null;
469 } 469 }
470 470
471 /** 471 /**
472 * Set the priority files to the files in the given list. A priority file is 472 * Set the priority files to the files in the given list. A priority file is
473 * a file that is given priority when scheduling which analysis work to do 473 * a file that is given priority when scheduling which analysis work to do
474 * first. The list typically contains those files that are visible to the 474 * first. The list typically contains those files that are visible to the
475 * user and those for which analysis results will have the biggest impact on 475 * user and those for which analysis results will have the biggest impact on
476 * the user experience. The order of the files within the list is 476 * the user experience. The order of the files within the list is
477 * significant: the first file will be given higher priority than the second, 477 * significant: the first file will be given higher priority than the second,
(...skipping 11 matching lines...) Expand all
489 * 489 *
490 * Parameters 490 * Parameters
491 * 491 *
492 * files (List<FilePath>) 492 * files (List<FilePath>)
493 * 493 *
494 * The files that are to be a priority for analysis. 494 * The files that are to be a priority for analysis.
495 */ 495 */
496 Future sendAnalysisSetPriorityFiles(List<String> files) async { 496 Future sendAnalysisSetPriorityFiles(List<String> files) async {
497 var params = new AnalysisSetPriorityFilesParams(files).toJson(); 497 var params = new AnalysisSetPriorityFilesParams(files).toJson();
498 var result = await server.send("analysis.setPriorityFiles", params); 498 var result = await server.send("analysis.setPriorityFiles", params);
499 expect(result, isNull); 499 outOfTestExpect(result, isNull);
500 return null; 500 return null;
501 } 501 }
502 502
503 /** 503 /**
504 * Subscribe for services that are specific to individual files. All previous 504 * Subscribe for services that are specific to individual files. All previous
505 * subscriptions are replaced by the current set of subscriptions. If a given 505 * subscriptions are replaced by the current set of subscriptions. If a given
506 * service is not included as a key in the map then no files will be 506 * service is not included as a key in the map then no files will be
507 * subscribed to the service, exactly as if the service had been included in 507 * subscribed to the service, exactly as if the service had been included in
508 * the map with an explicit empty list of files. 508 * the map with an explicit empty list of files.
509 * 509 *
(...skipping 18 matching lines...) Expand all
528 * Parameters 528 * Parameters
529 * 529 *
530 * subscriptions (Map<AnalysisService, List<FilePath>>) 530 * subscriptions (Map<AnalysisService, List<FilePath>>)
531 * 531 *
532 * A table mapping services to a list of the files being subscribed to the 532 * A table mapping services to a list of the files being subscribed to the
533 * service. 533 * service.
534 */ 534 */
535 Future sendAnalysisSetSubscriptions(Map<AnalysisService, List<String>> subscri ptions) async { 535 Future sendAnalysisSetSubscriptions(Map<AnalysisService, List<String>> subscri ptions) async {
536 var params = new AnalysisSetSubscriptionsParams(subscriptions).toJson(); 536 var params = new AnalysisSetSubscriptionsParams(subscriptions).toJson();
537 var result = await server.send("analysis.setSubscriptions", params); 537 var result = await server.send("analysis.setSubscriptions", params);
538 expect(result, isNull); 538 outOfTestExpect(result, isNull);
539 return null; 539 return null;
540 } 540 }
541 541
542 /** 542 /**
543 * Update the content of one or more files. Files that were previously 543 * Update the content of one or more files. Files that were previously
544 * updated but not included in this update remain unchanged. This effectively 544 * updated but not included in this update remain unchanged. This effectively
545 * represents an overlay of the filesystem. The files whose content is 545 * represents an overlay of the filesystem. The files whose content is
546 * overridden are therefore seen by server as being files with the given 546 * overridden are therefore seen by server as being files with the given
547 * content, even if the files do not exist on the filesystem or if the file 547 * content, even if the files do not exist on the filesystem or if the file
548 * path represents the path to a directory on the filesystem. 548 * path represents the path to a directory on the filesystem.
(...skipping 23 matching lines...) Expand all
572 * 572 *
573 * Parameters 573 * Parameters
574 * 574 *
575 * options (AnalysisOptions) 575 * options (AnalysisOptions)
576 * 576 *
577 * The options that are to be used to control analysis. 577 * The options that are to be used to control analysis.
578 */ 578 */
579 Future sendAnalysisUpdateOptions(AnalysisOptions options) async { 579 Future sendAnalysisUpdateOptions(AnalysisOptions options) async {
580 var params = new AnalysisUpdateOptionsParams(options).toJson(); 580 var params = new AnalysisUpdateOptionsParams(options).toJson();
581 var result = await server.send("analysis.updateOptions", params); 581 var result = await server.send("analysis.updateOptions", params);
582 expect(result, isNull); 582 outOfTestExpect(result, isNull);
583 return null; 583 return null;
584 } 584 }
585 585
586 /** 586 /**
587 * Reports the paths of the files that are being analyzed. 587 * Reports the paths of the files that are being analyzed.
588 * 588 *
589 * This notification is not subscribed to by default. Clients can subscribe 589 * This notification is not subscribed to by default. Clients can subscribe
590 * by including the value "ANALYZED_FILES" in the list of services passed in 590 * by including the value "ANALYZED_FILES" in the list of services passed in
591 * an analysis.setGeneralSubscriptions request. 591 * an analysis.setGeneralSubscriptions request.
592 * 592 *
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 * 1496 *
1497 * Parameters 1497 * Parameters
1498 * 1498 *
1499 * id (ExecutionContextId) 1499 * id (ExecutionContextId)
1500 * 1500 *
1501 * The identifier of the execution context that is to be deleted. 1501 * The identifier of the execution context that is to be deleted.
1502 */ 1502 */
1503 Future sendExecutionDeleteContext(String id) async { 1503 Future sendExecutionDeleteContext(String id) async {
1504 var params = new ExecutionDeleteContextParams(id).toJson(); 1504 var params = new ExecutionDeleteContextParams(id).toJson();
1505 var result = await server.send("execution.deleteContext", params); 1505 var result = await server.send("execution.deleteContext", params);
1506 expect(result, isNull); 1506 outOfTestExpect(result, isNull);
1507 return null; 1507 return null;
1508 } 1508 }
1509 1509
1510 /** 1510 /**
1511 * Map a URI from the execution context to the file that it corresponds to, 1511 * Map a URI from the execution context to the file that it corresponds to,
1512 * or map a file to the URI that it corresponds to in the execution context. 1512 * or map a file to the URI that it corresponds to in the execution context.
1513 * 1513 *
1514 * Exactly one of the file and uri fields must be provided. If both fields 1514 * Exactly one of the file and uri fields must be provided. If both fields
1515 * are provided, then an error of type INVALID_PARAMETER will be generated. 1515 * are provided, then an error of type INVALID_PARAMETER will be generated.
1516 * Similarly, if neither field is provided, then an error of type 1516 * Similarly, if neither field is provided, then an error of type
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1572 * 1572 *
1573 * Parameters 1573 * Parameters
1574 * 1574 *
1575 * subscriptions (List<ExecutionService>) 1575 * subscriptions (List<ExecutionService>)
1576 * 1576 *
1577 * A list of the services being subscribed to. 1577 * A list of the services being subscribed to.
1578 */ 1578 */
1579 Future sendExecutionSetSubscriptions(List<ExecutionService> subscriptions) asy nc { 1579 Future sendExecutionSetSubscriptions(List<ExecutionService> subscriptions) asy nc {
1580 var params = new ExecutionSetSubscriptionsParams(subscriptions).toJson(); 1580 var params = new ExecutionSetSubscriptionsParams(subscriptions).toJson();
1581 var result = await server.send("execution.setSubscriptions", params); 1581 var result = await server.send("execution.setSubscriptions", params);
1582 expect(result, isNull); 1582 outOfTestExpect(result, isNull);
1583 return null; 1583 return null;
1584 } 1584 }
1585 1585
1586 /** 1586 /**
1587 * Reports information needed to allow a single file to be launched. 1587 * Reports information needed to allow a single file to be launched.
1588 * 1588 *
1589 * This notification is not subscribed to by default. Clients can subscribe 1589 * This notification is not subscribed to by default. Clients can subscribe
1590 * by including the value "LAUNCH_DATA" in the list of services passed in an 1590 * by including the value "LAUNCH_DATA" in the list of services passed in an
1591 * execution.setSubscriptions request. 1591 * execution.setSubscriptions request.
1592 * 1592 *
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
1671 } 1671 }
1672 1672
1673 /** 1673 /**
1674 * Dispatch the notification named [event], and containing parameters 1674 * Dispatch the notification named [event], and containing parameters
1675 * [params], to the appropriate stream. 1675 * [params], to the appropriate stream.
1676 */ 1676 */
1677 void dispatchNotification(String event, params) { 1677 void dispatchNotification(String event, params) {
1678 ResponseDecoder decoder = new ResponseDecoder(null); 1678 ResponseDecoder decoder = new ResponseDecoder(null);
1679 switch (event) { 1679 switch (event) {
1680 case "server.connected": 1680 case "server.connected":
1681 expect(params, isServerConnectedParams); 1681 outOfTestExpect(params, isServerConnectedParams);
1682 _onServerConnected.add(new ServerConnectedParams.fromJson(decoder, 'para ms', params)); 1682 _onServerConnected.add(new ServerConnectedParams.fromJson(decoder, 'para ms', params));
1683 break; 1683 break;
1684 case "server.error": 1684 case "server.error":
1685 expect(params, isServerErrorParams); 1685 outOfTestExpect(params, isServerErrorParams);
1686 _onServerError.add(new ServerErrorParams.fromJson(decoder, 'params', par ams)); 1686 _onServerError.add(new ServerErrorParams.fromJson(decoder, 'params', par ams));
1687 break; 1687 break;
1688 case "server.status": 1688 case "server.status":
1689 expect(params, isServerStatusParams); 1689 outOfTestExpect(params, isServerStatusParams);
1690 _onServerStatus.add(new ServerStatusParams.fromJson(decoder, 'params', p arams)); 1690 _onServerStatus.add(new ServerStatusParams.fromJson(decoder, 'params', p arams));
1691 break; 1691 break;
1692 case "analysis.analyzedFiles": 1692 case "analysis.analyzedFiles":
1693 expect(params, isAnalysisAnalyzedFilesParams); 1693 outOfTestExpect(params, isAnalysisAnalyzedFilesParams);
1694 _onAnalysisAnalyzedFiles.add(new AnalysisAnalyzedFilesParams.fromJson(de coder, 'params', params)); 1694 _onAnalysisAnalyzedFiles.add(new AnalysisAnalyzedFilesParams.fromJson(de coder, 'params', params));
1695 break; 1695 break;
1696 case "analysis.errors": 1696 case "analysis.errors":
1697 expect(params, isAnalysisErrorsParams); 1697 outOfTestExpect(params, isAnalysisErrorsParams);
1698 _onAnalysisErrors.add(new AnalysisErrorsParams.fromJson(decoder, 'params ', params)); 1698 _onAnalysisErrors.add(new AnalysisErrorsParams.fromJson(decoder, 'params ', params));
1699 break; 1699 break;
1700 case "analysis.flushResults": 1700 case "analysis.flushResults":
1701 expect(params, isAnalysisFlushResultsParams); 1701 outOfTestExpect(params, isAnalysisFlushResultsParams);
1702 _onAnalysisFlushResults.add(new AnalysisFlushResultsParams.fromJson(deco der, 'params', params)); 1702 _onAnalysisFlushResults.add(new AnalysisFlushResultsParams.fromJson(deco der, 'params', params));
1703 break; 1703 break;
1704 case "analysis.folding": 1704 case "analysis.folding":
1705 expect(params, isAnalysisFoldingParams); 1705 outOfTestExpect(params, isAnalysisFoldingParams);
1706 _onAnalysisFolding.add(new AnalysisFoldingParams.fromJson(decoder, 'para ms', params)); 1706 _onAnalysisFolding.add(new AnalysisFoldingParams.fromJson(decoder, 'para ms', params));
1707 break; 1707 break;
1708 case "analysis.highlights": 1708 case "analysis.highlights":
1709 expect(params, isAnalysisHighlightsParams); 1709 outOfTestExpect(params, isAnalysisHighlightsParams);
1710 _onAnalysisHighlights.add(new AnalysisHighlightsParams.fromJson(decoder, 'params', params)); 1710 _onAnalysisHighlights.add(new AnalysisHighlightsParams.fromJson(decoder, 'params', params));
1711 break; 1711 break;
1712 case "analysis.implemented": 1712 case "analysis.implemented":
1713 expect(params, isAnalysisImplementedParams); 1713 outOfTestExpect(params, isAnalysisImplementedParams);
1714 _onAnalysisImplemented.add(new AnalysisImplementedParams.fromJson(decode r, 'params', params)); 1714 _onAnalysisImplemented.add(new AnalysisImplementedParams.fromJson(decode r, 'params', params));
1715 break; 1715 break;
1716 case "analysis.invalidate": 1716 case "analysis.invalidate":
1717 expect(params, isAnalysisInvalidateParams); 1717 outOfTestExpect(params, isAnalysisInvalidateParams);
1718 _onAnalysisInvalidate.add(new AnalysisInvalidateParams.fromJson(decoder, 'params', params)); 1718 _onAnalysisInvalidate.add(new AnalysisInvalidateParams.fromJson(decoder, 'params', params));
1719 break; 1719 break;
1720 case "analysis.navigation": 1720 case "analysis.navigation":
1721 expect(params, isAnalysisNavigationParams); 1721 outOfTestExpect(params, isAnalysisNavigationParams);
1722 _onAnalysisNavigation.add(new AnalysisNavigationParams.fromJson(decoder, 'params', params)); 1722 _onAnalysisNavigation.add(new AnalysisNavigationParams.fromJson(decoder, 'params', params));
1723 break; 1723 break;
1724 case "analysis.occurrences": 1724 case "analysis.occurrences":
1725 expect(params, isAnalysisOccurrencesParams); 1725 outOfTestExpect(params, isAnalysisOccurrencesParams);
1726 _onAnalysisOccurrences.add(new AnalysisOccurrencesParams.fromJson(decode r, 'params', params)); 1726 _onAnalysisOccurrences.add(new AnalysisOccurrencesParams.fromJson(decode r, 'params', params));
1727 break; 1727 break;
1728 case "analysis.outline": 1728 case "analysis.outline":
1729 expect(params, isAnalysisOutlineParams); 1729 outOfTestExpect(params, isAnalysisOutlineParams);
1730 _onAnalysisOutline.add(new AnalysisOutlineParams.fromJson(decoder, 'para ms', params)); 1730 _onAnalysisOutline.add(new AnalysisOutlineParams.fromJson(decoder, 'para ms', params));
1731 break; 1731 break;
1732 case "analysis.overrides": 1732 case "analysis.overrides":
1733 expect(params, isAnalysisOverridesParams); 1733 outOfTestExpect(params, isAnalysisOverridesParams);
1734 _onAnalysisOverrides.add(new AnalysisOverridesParams.fromJson(decoder, ' params', params)); 1734 _onAnalysisOverrides.add(new AnalysisOverridesParams.fromJson(decoder, ' params', params));
1735 break; 1735 break;
1736 case "completion.results": 1736 case "completion.results":
1737 expect(params, isCompletionResultsParams); 1737 outOfTestExpect(params, isCompletionResultsParams);
1738 _onCompletionResults.add(new CompletionResultsParams.fromJson(decoder, ' params', params)); 1738 _onCompletionResults.add(new CompletionResultsParams.fromJson(decoder, ' params', params));
1739 break; 1739 break;
1740 case "search.results": 1740 case "search.results":
1741 expect(params, isSearchResultsParams); 1741 outOfTestExpect(params, isSearchResultsParams);
1742 _onSearchResults.add(new SearchResultsParams.fromJson(decoder, 'params', params)); 1742 _onSearchResults.add(new SearchResultsParams.fromJson(decoder, 'params', params));
1743 break; 1743 break;
1744 case "execution.launchData": 1744 case "execution.launchData":
1745 expect(params, isExecutionLaunchDataParams); 1745 outOfTestExpect(params, isExecutionLaunchDataParams);
1746 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode r, 'params', params)); 1746 _onExecutionLaunchData.add(new ExecutionLaunchDataParams.fromJson(decode r, 'params', params));
1747 break; 1747 break;
1748 default: 1748 default:
1749 fail('Unexpected notification: $event'); 1749 fail('Unexpected notification: $event');
1750 break; 1750 break;
1751 } 1751 }
1752 } 1752 }
1753 } 1753 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/benchmark/perf/performance_tests.dart ('k') | pkg/analysis_server/test/integration/integration_tests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698