| 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 library test.domain.analysis.abstract; | 5 library test.domain.analysis.abstract; |
| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 MockPackageMapProvider packageMapProvider; | 47 MockPackageMapProvider packageMapProvider; |
| 48 AnalysisServer server; | 48 AnalysisServer server; |
| 49 RequestHandler handler; | 49 RequestHandler handler; |
| 50 | 50 |
| 51 final List<ServerErrorParams> serverErrors = <ServerErrorParams>[]; | 51 final List<ServerErrorParams> serverErrors = <ServerErrorParams>[]; |
| 52 final List<GeneralAnalysisService> generalServices = | 52 final List<GeneralAnalysisService> generalServices = |
| 53 <GeneralAnalysisService>[]; | 53 <GeneralAnalysisService>[]; |
| 54 final Map<AnalysisService, List<String>> analysisSubscriptions = {}; | 54 final Map<AnalysisService, List<String>> analysisSubscriptions = {}; |
| 55 | 55 |
| 56 String projectPath = '/project'; | 56 String projectPath = '/project'; |
| 57 String testFolder = '/project/bin/'; | 57 String testFolder = '/project/bin'; |
| 58 String testFile = '/project/bin/test.dart'; | 58 String testFile = '/project/bin/test.dart'; |
| 59 String testCode; | 59 String testCode; |
| 60 | 60 |
| 61 AbstractAnalysisTest(); | 61 AbstractAnalysisTest(); |
| 62 | 62 |
| 63 void addAnalysisSubscription(AnalysisService service, String file) { | 63 void addAnalysisSubscription(AnalysisService service, String file) { |
| 64 // add file to subscription | 64 // add file to subscription |
| 65 var files = analysisSubscriptions[service]; | 65 var files = analysisSubscriptions[service]; |
| 66 if (files == null) { | 66 if (files == null) { |
| 67 files = <String>[]; | 67 files = <String>[]; |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 } | 214 } |
| 215 | 215 |
| 216 /** | 216 /** |
| 217 * Completes with a successful [Response] for the given [request]. | 217 * Completes with a successful [Response] for the given [request]. |
| 218 * Otherwise fails. | 218 * Otherwise fails. |
| 219 */ | 219 */ |
| 220 Future<Response> waitResponse(Request request) async { | 220 Future<Response> waitResponse(Request request) async { |
| 221 return serverChannel.sendRequest(request); | 221 return serverChannel.sendRequest(request); |
| 222 } | 222 } |
| 223 } | 223 } |
| OLD | NEW |