| 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'; |
| 11 import 'package:analyzer/file_system/memory_file_system.dart'; | 11 import 'package:analyzer/file_system/memory_file_system.dart'; |
| 12 import 'package:analyzer/src/dart/analysis/driver.dart'; | 12 import 'package:analyzer/src/dart/analysis/driver.dart'; |
| 13 import 'package:analyzer/src/generated/engine.dart'; | 13 import 'package:analyzer/src/generated/engine.dart'; |
| 14 import 'package:analyzer/src/generated/sdk.dart'; | 14 import 'package:analyzer/src/generated/sdk.dart'; |
| 15 import 'package:analyzer/src/generated/source.dart'; | 15 import 'package:analyzer/src/generated/source.dart'; |
| 16 import 'package:analyzer/src/generated/source_io.dart'; | 16 import 'package:analyzer/src/generated/source_io.dart'; |
| 17 import 'package:analyzer/src/util/glob.dart'; | 17 import 'package:analyzer/src/util/glob.dart'; |
| 18 import 'package:linter/src/plugin/linter_plugin.dart'; | |
| 19 import 'package:path/path.dart' as path; | 18 import 'package:path/path.dart' as path; |
| 20 import 'package:plugin/manager.dart'; | 19 import 'package:plugin/manager.dart'; |
| 21 import 'package:plugin/plugin.dart'; | 20 import 'package:plugin/plugin.dart'; |
| 22 import 'package:test/test.dart'; | 21 import 'package:test/test.dart'; |
| 23 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 22 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 24 | 23 |
| 25 import 'context_manager_test.dart' show TestContextManagerCallbacks; | 24 import 'context_manager_test.dart' show TestContextManagerCallbacks; |
| 26 import 'mocks.dart'; | 25 import 'mocks.dart'; |
| 27 | 26 |
| 28 main() { | 27 main() { |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 resourceProvider.modifyFile(file, 'new contents'); | 531 resourceProvider.modifyFile(file, 'new contents'); |
| 533 await pumpEventQueue(); | 532 await pumpEventQueue(); |
| 534 return expect(filePaths[file], equals(callbacks.now)); | 533 return expect(filePaths[file], equals(callbacks.now)); |
| 535 } | 534 } |
| 536 | 535 |
| 537 void _processRequiredPlugins() { | 536 void _processRequiredPlugins() { |
| 538 List<Plugin> plugins = <Plugin>[]; | 537 List<Plugin> plugins = <Plugin>[]; |
| 539 plugins.addAll(AnalysisEngine.instance.requiredPlugins); | 538 plugins.addAll(AnalysisEngine.instance.requiredPlugins); |
| 540 plugins.add(AnalysisEngine.instance.commandLinePlugin); | 539 plugins.add(AnalysisEngine.instance.commandLinePlugin); |
| 541 plugins.add(AnalysisEngine.instance.optionsPlugin); | 540 plugins.add(AnalysisEngine.instance.optionsPlugin); |
| 542 plugins.add(linterPlugin); | |
| 543 ExtensionManager manager = new ExtensionManager(); | 541 ExtensionManager manager = new ExtensionManager(); |
| 544 manager.processPlugins(plugins); | 542 manager.processPlugins(plugins); |
| 545 } | 543 } |
| 546 } | 544 } |
| 547 | 545 |
| 548 class TestUriResolver extends UriResolver { | 546 class TestUriResolver extends UriResolver { |
| 549 @override | 547 @override |
| 550 Source resolveAbsolute(Uri uri, [Uri actualUri]) { | 548 Source resolveAbsolute(Uri uri, [Uri actualUri]) { |
| 551 return null; | 549 return null; |
| 552 } | 550 } |
| 553 } | 551 } |
| OLD | NEW |