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

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

Issue 2965533002: Use AnalysisDriver.getCachedResult() for 'implemented' notification. (Closed)
Patch Set: Created 3 years, 5 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 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:analysis_server/protocol/protocol.dart'; 7 import 'package:analysis_server/protocol/protocol.dart';
8 import 'package:analysis_server/protocol/protocol_constants.dart'; 8 import 'package:analysis_server/protocol/protocol_constants.dart';
9 import 'package:analysis_server/protocol/protocol_generated.dart' 9 import 'package:analysis_server/protocol/protocol_generated.dart'
10 hide AnalysisOptions; 10 hide AnalysisOptions;
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 } 205 }
206 } 206 }
207 207
208 void removeGeneralAnalysisSubscription(GeneralAnalysisService service) { 208 void removeGeneralAnalysisSubscription(GeneralAnalysisService service) {
209 generalServices.remove(service); 209 generalServices.remove(service);
210 Request request = new AnalysisSetGeneralSubscriptionsParams(generalServices) 210 Request request = new AnalysisSetGeneralSubscriptionsParams(generalServices)
211 .toRequest('0'); 211 .toRequest('0');
212 handleSuccessfulRequest(request); 212 handleSuccessfulRequest(request);
213 } 213 }
214 214
215 void setPriorityFiles(List<String> files) {
216 var request = new AnalysisSetPriorityFilesParams(files).toRequest('0');
217 handleSuccessfulRequest(request);
218 }
219
215 void setUp() { 220 void setUp() {
216 serverChannel = new MockServerChannel(); 221 serverChannel = new MockServerChannel();
217 resourceProvider = new MemoryResourceProvider(); 222 resourceProvider = new MemoryResourceProvider();
218 projectPath = resourceProvider.convertPath('/project'); 223 projectPath = resourceProvider.convertPath('/project');
219 testFolder = resourceProvider.convertPath('/project/bin'); 224 testFolder = resourceProvider.convertPath('/project/bin');
220 testFile = resourceProvider.convertPath('/project/bin/test.dart'); 225 testFile = resourceProvider.convertPath('/project/bin/test.dart');
221 packageMapProvider = new MockPackageMapProvider(); 226 packageMapProvider = new MockPackageMapProvider();
222 pluginManager = new TestPluginManager(); 227 pluginManager = new TestPluginManager();
223 server = createAnalysisServer(); 228 server = createAnalysisServer();
224 server.pluginManager = pluginManager; 229 server.pluginManager = pluginManager;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 Future<List<Null>> stopAll() async { 361 Future<List<Null>> stopAll() async {
357 fail('Unexpected invocation of stopAll'); 362 fail('Unexpected invocation of stopAll');
358 return null; 363 return null;
359 } 364 }
360 365
361 @override 366 @override
362 void whitelistEverything() { 367 void whitelistEverything() {
363 fail('Unexpected invocation of whitelistEverything'); 368 fail('Unexpected invocation of whitelistEverything');
364 } 369 }
365 } 370 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/analysis/notification_implemented_test.dart ('k') | pkg/analyzer/lib/src/dart/analysis/driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698