OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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.analysis_server.src.single_context_manager; | 5 library test.analysis_server.src.single_context_manager; |
6 | 6 |
7 import 'dart:core'; | 7 import 'dart:core'; |
8 | 8 |
9 import 'package:analysis_server/src/single_context_manager.dart'; | 9 import 'package:analysis_server/src/single_context_manager.dart'; |
10 import 'package:analysis_server/src/utilities/null_string_sink.dart'; | 10 import 'package:analysis_server/src/utilities/null_string_sink.dart'; |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 // update the file | 529 // update the file |
530 callbacks.now++; | 530 callbacks.now++; |
531 resourceProvider.modifyFile(file, 'new contents'); | 531 resourceProvider.modifyFile(file, 'new contents'); |
532 await pumpEventQueue(); | 532 await pumpEventQueue(); |
533 return expect(filePaths[file], equals(callbacks.now)); | 533 return expect(filePaths[file], equals(callbacks.now)); |
534 } | 534 } |
535 | 535 |
536 void _processRequiredPlugins() { | 536 void _processRequiredPlugins() { |
537 List<Plugin> plugins = <Plugin>[]; | 537 List<Plugin> plugins = <Plugin>[]; |
538 plugins.addAll(AnalysisEngine.instance.requiredPlugins); | 538 plugins.addAll(AnalysisEngine.instance.requiredPlugins); |
539 plugins.add(AnalysisEngine.instance.commandLinePlugin); | |
540 ExtensionManager manager = new ExtensionManager(); | 539 ExtensionManager manager = new ExtensionManager(); |
541 manager.processPlugins(plugins); | 540 manager.processPlugins(plugins); |
542 } | 541 } |
543 } | 542 } |
544 | 543 |
545 class TestUriResolver extends UriResolver { | 544 class TestUriResolver extends UriResolver { |
546 @override | 545 @override |
547 Source resolveAbsolute(Uri uri, [Uri actualUri]) { | 546 Source resolveAbsolute(Uri uri, [Uri actualUri]) { |
548 return null; | 547 return null; |
549 } | 548 } |
550 } | 549 } |
OLD | NEW |