OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |