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

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

Issue 372763003: Move file_system libraries into 'analyzer'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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.context.directory.manager; 5 library test.context.directory.manager;
6 6
7 import 'mocks.dart'; 7 import 'mocks.dart';
8 import 'package:analyzer/file_system/file_system.dart';
9 import 'package:analyzer/file_system/memory_file_system.dart';
8 import 'package:analysis_server/src/context_directory_manager.dart'; 10 import 'package:analysis_server/src/context_directory_manager.dart';
9 import 'package:analysis_server/src/package_map_provider.dart'; 11 import 'package:analysis_server/src/package_map_provider.dart';
10 import 'package:analysis_server/src/resource.dart';
11 import 'package:analyzer/src/generated/engine.dart'; 12 import 'package:analyzer/src/generated/engine.dart';
12 import 'package:analyzer/src/generated/source.dart'; 13 import 'package:analyzer/src/generated/source.dart';
13 import 'package:path/path.dart'; 14 import 'package:path/path.dart';
14 import 'package:unittest/unittest.dart'; 15 import 'package:unittest/unittest.dart';
15 16
16 class TestContextDirectoryManager extends ContextDirectoryManager { 17 class TestContextDirectoryManager extends ContextDirectoryManager {
17 TestContextDirectoryManager( 18 TestContextDirectoryManager(
18 MemoryResourceProvider resourceProvider, PackageMapProvider packageMapProv ider) 19 MemoryResourceProvider resourceProvider, PackageMapProvider packageMapProv ider)
19 : super(resourceProvider, packageMapProvider); 20 : super(resourceProvider, packageMapProvider);
20 21
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 packageMapProvider.packageMap = null; 301 packageMapProvider.packageMap = null;
301 resourceProvider.modifyFile(dependencyPath, 'new contents'); 302 resourceProvider.modifyFile(dependencyPath, 'new contents');
302 return pumpEventQueue().then((_) { 303 return pumpEventQueue().then((_) {
303 // The package map should have been changed to null. 304 // The package map should have been changed to null.
304 expect(manager.currentContextPackageMaps[projPath], isNull); 305 expect(manager.currentContextPackageMaps[projPath], isNull);
305 }); 306 });
306 }); 307 });
307 }); 308 });
308 }); 309 });
309 } 310 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/analysis_server_test.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