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

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

Issue 1467623002: Fix test failures on the bots (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 } 184 }
185 185
186 void removeGeneralAnalysisSubscription(GeneralAnalysisService service) { 186 void removeGeneralAnalysisSubscription(GeneralAnalysisService service) {
187 generalServices.remove(service); 187 generalServices.remove(service);
188 Request request = new AnalysisSetGeneralSubscriptionsParams(generalServices) 188 Request request = new AnalysisSetGeneralSubscriptionsParams(generalServices)
189 .toRequest('0'); 189 .toRequest('0');
190 handleSuccessfulRequest(request); 190 handleSuccessfulRequest(request);
191 } 191 }
192 192
193 void setUp() { 193 void setUp() {
194 ExtensionManager manager = new ExtensionManager();
195 ServerPlugin serverPlugin = new ServerPlugin();
196 List<Plugin> plugins = [serverPlugin];
197 plugins.addAll(AnalysisEngine.instance.supportedPlugins);
198 manager.processPlugins(plugins);
194 serverChannel = new MockServerChannel(); 199 serverChannel = new MockServerChannel();
195 resourceProvider = new MemoryResourceProvider(); 200 resourceProvider = new MemoryResourceProvider();
196 packageMapProvider = new MockPackageMapProvider(); 201 packageMapProvider = new MockPackageMapProvider();
197 Index index = createIndex(); 202 Index index = createIndex();
198 server = createAnalysisServer(index); 203 server = createAnalysisServer(index);
199 handler = server.handlers 204 handler = server.handlers
200 .singleWhere((handler) => handler is AnalysisDomainHandler); 205 .singleWhere((handler) => handler is AnalysisDomainHandler);
201 // listen for notifications 206 // listen for notifications
202 Stream<Notification> notificationStream = 207 Stream<Notification> notificationStream =
203 serverChannel.notificationController.stream; 208 serverChannel.notificationController.stream;
(...skipping 18 matching lines...) Expand all
222 } 227 }
223 228
224 /** 229 /**
225 * Completes with a successful [Response] for the given [request]. 230 * Completes with a successful [Response] for the given [request].
226 * Otherwise fails. 231 * Otherwise fails.
227 */ 232 */
228 Future<Response> waitResponse(Request request) async { 233 Future<Response> waitResponse(Request request) async {
229 return serverChannel.sendRequest(request); 234 return serverChannel.sendRequest(request);
230 } 235 }
231 } 236 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/abstract_context.dart ('k') | pkg/analysis_server/test/analysis_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698