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

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

Issue 829133007: Enable enum and deferred import support (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
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/src/analysis_server.dart'; 9 import 'package:analysis_server/src/analysis_server.dart';
10 import 'package:analysis_server/src/domain_analysis.dart'; 10 import 'package:analysis_server/src/domain_analysis.dart';
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 // []).toRequest('0'); 233 // []).toRequest('0');
234 // handleSuccessfulRequest(request); 234 // handleSuccessfulRequest(request);
235 // } 235 // }
236 236
237 void setUp() { 237 void setUp() {
238 serverChannel = new MockServerChannel(); 238 serverChannel = new MockServerChannel();
239 resourceProvider = new MemoryResourceProvider(); 239 resourceProvider = new MemoryResourceProvider();
240 packageMapProvider = new MockPackageMapProvider(); 240 packageMapProvider = new MockPackageMapProvider();
241 Index index = createIndex(); 241 Index index = createIndex();
242 server = createAnalysisServer(index); 242 server = createAnalysisServer(index);
243 server.contextDirectoryManager.defaultOptions.enableAsync = true;
244 server.contextDirectoryManager.defaultOptions.enableEnum = true;
245 handler = new AnalysisDomainHandler(server); 243 handler = new AnalysisDomainHandler(server);
246 // listen for notifications 244 // listen for notifications
247 Stream<Notification> notificationStream = 245 Stream<Notification> notificationStream =
248 serverChannel.notificationController.stream; 246 serverChannel.notificationController.stream;
249 notificationStream.listen((Notification notification) { 247 notificationStream.listen((Notification notification) {
250 processNotification(notification); 248 processNotification(notification);
251 }); 249 });
252 } 250 }
253 251
254 void tearDown() { 252 void tearDown() {
255 server.done(); 253 server.done();
256 handler = null; 254 handler = null;
257 server = null; 255 server = null;
258 resourceProvider = null; 256 resourceProvider = null;
259 serverChannel = null; 257 serverChannel = null;
260 } 258 }
261 259
262 /** 260 /**
263 * Returns a [Future] that completes when the [AnalysisServer] finishes 261 * Returns a [Future] that completes when the [AnalysisServer] finishes
264 * all its scheduled tasks. 262 * all its scheduled tasks.
265 */ 263 */
266 Future waitForTasksFinished() { 264 Future waitForTasksFinished() {
267 return waitForServerOperationsPerformed(server); 265 return waitForServerOperationsPerformed(server);
268 } 266 }
269 } 267 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/abstract_context.dart ('k') | pkg/analysis_server/test/domain_analysis_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698