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

Side by Side Diff: pkg/analysis_server/test/domain_analysis_test.dart

Issue 1801883002: Remove old index and search implementations. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 library test.domain.analysis; 5 library test.domain.analysis;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/plugin/protocol/protocol.dart'; 9 import 'package:analysis_server/plugin/protocol/protocol.dart';
10 import 'package:analysis_server/src/analysis_server.dart'; 10 import 'package:analysis_server/src/analysis_server.dart';
(...skipping 27 matching lines...) Expand all
38 serverChannel = new MockServerChannel(); 38 serverChannel = new MockServerChannel();
39 resourceProvider = new MemoryResourceProvider(); 39 resourceProvider = new MemoryResourceProvider();
40 ExtensionManager manager = new ExtensionManager(); 40 ExtensionManager manager = new ExtensionManager();
41 ServerPlugin serverPlugin = new ServerPlugin(); 41 ServerPlugin serverPlugin = new ServerPlugin();
42 manager.processPlugins([serverPlugin]); 42 manager.processPlugins([serverPlugin]);
43 server = new AnalysisServer( 43 server = new AnalysisServer(
44 serverChannel, 44 serverChannel,
45 resourceProvider, 45 resourceProvider,
46 new MockPackageMapProvider(), 46 new MockPackageMapProvider(),
47 null, 47 null,
48 null,
49 serverPlugin, 48 serverPlugin,
50 new AnalysisServerOptions(), 49 new AnalysisServerOptions(),
51 () => new MockSdk(), 50 () => new MockSdk(),
52 InstrumentationService.NULL_SERVICE); 51 InstrumentationService.NULL_SERVICE);
53 handler = new AnalysisDomainHandler(server); 52 handler = new AnalysisDomainHandler(server);
54 }); 53 });
55 54
56 group('updateContent', testUpdateContent); 55 group('updateContent', testUpdateContent);
57 56
58 group('AnalysisDomainHandler', () { 57 group('AnalysisDomainHandler', () {
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 serverChannel = new MockServerChannel(); 465 serverChannel = new MockServerChannel();
467 resourceProvider = new MemoryResourceProvider(); 466 resourceProvider = new MemoryResourceProvider();
468 ExtensionManager manager = new ExtensionManager(); 467 ExtensionManager manager = new ExtensionManager();
469 ServerPlugin serverPlugin = new ServerPlugin(); 468 ServerPlugin serverPlugin = new ServerPlugin();
470 manager.processPlugins([serverPlugin]); 469 manager.processPlugins([serverPlugin]);
471 server = new AnalysisServer( 470 server = new AnalysisServer(
472 serverChannel, 471 serverChannel,
473 resourceProvider, 472 resourceProvider,
474 new MockPackageMapProvider(), 473 new MockPackageMapProvider(),
475 null, 474 null,
476 null,
477 serverPlugin, 475 serverPlugin,
478 new AnalysisServerOptions(), 476 new AnalysisServerOptions(),
479 () => new MockSdk(), 477 () => new MockSdk(),
480 InstrumentationService.NULL_SERVICE); 478 InstrumentationService.NULL_SERVICE);
481 handler = new AnalysisDomainHandler(server); 479 handler = new AnalysisDomainHandler(server);
482 // listen for notifications 480 // listen for notifications
483 Stream<Notification> notificationStream = 481 Stream<Notification> notificationStream =
484 serverChannel.notificationController.stream; 482 serverChannel.notificationController.stream;
485 notificationStream.listen((Notification notification) { 483 notificationStream.listen((Notification notification) {
486 if (notification.event == ANALYSIS_ERRORS) { 484 if (notification.event == ANALYSIS_ERRORS) {
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 test_beforeAnalysis() async { 808 test_beforeAnalysis() async {
811 addTestFile('int V = 42;'); 809 addTestFile('int V = 42;');
812 createProject(); 810 createProject();
813 // subscribe 811 // subscribe
814 addAnalysisSubscription(AnalysisService.HIGHLIGHTS, testFile); 812 addAnalysisSubscription(AnalysisService.HIGHLIGHTS, testFile);
815 // wait for analysis 813 // wait for analysis
816 await waitForTasksFinished(); 814 await waitForTasksFinished();
817 expect(filesHighlights[testFile], isNotEmpty); 815 expect(filesHighlights[testFile], isNotEmpty);
818 } 816 }
819 } 817 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698