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

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

Issue 1417483006: Support for searching files by import/export/part URIs and library identifiers. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698