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

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

Issue 2567863002: Remove references to the linter plugin (Closed)
Patch Set: Created 4 years 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.context.directory.manager; 5 library test.context.directory.manager;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analysis_server/src/context_manager.dart'; 9 import 'package:analysis_server/src/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/error/error.dart'; 11 import 'package:analyzer/error/error.dart';
12 import 'package:analyzer/file_system/file_system.dart'; 12 import 'package:analyzer/file_system/file_system.dart';
13 import 'package:analyzer/file_system/memory_file_system.dart'; 13 import 'package:analyzer/file_system/memory_file_system.dart';
14 import 'package:analyzer/instrumentation/instrumentation.dart'; 14 import 'package:analyzer/instrumentation/instrumentation.dart';
15 import 'package:analyzer/source/error_processor.dart'; 15 import 'package:analyzer/source/error_processor.dart';
16 import 'package:analyzer/src/context/builder.dart'; 16 import 'package:analyzer/src/context/builder.dart';
17 import 'package:analyzer/src/dart/analysis/byte_store.dart'; 17 import 'package:analyzer/src/dart/analysis/byte_store.dart';
18 import 'package:analyzer/src/dart/analysis/driver.dart'; 18 import 'package:analyzer/src/dart/analysis/driver.dart';
19 import 'package:analyzer/src/dart/analysis/file_state.dart'; 19 import 'package:analyzer/src/dart/analysis/file_state.dart';
20 import 'package:analyzer/src/error/codes.dart'; 20 import 'package:analyzer/src/error/codes.dart';
21 import 'package:analyzer/src/generated/engine.dart' hide AnalysisResult; 21 import 'package:analyzer/src/generated/engine.dart' hide AnalysisResult;
22 import 'package:analyzer/src/generated/sdk.dart'; 22 import 'package:analyzer/src/generated/sdk.dart';
23 import 'package:analyzer/src/generated/source.dart'; 23 import 'package:analyzer/src/generated/source.dart';
24 import 'package:analyzer/src/generated/source_io.dart'; 24 import 'package:analyzer/src/generated/source_io.dart';
25 import 'package:analyzer/src/services/lint.dart'; 25 import 'package:analyzer/src/services/lint.dart';
26 import 'package:analyzer/src/summary/summary_file_builder.dart'; 26 import 'package:analyzer/src/summary/summary_file_builder.dart';
27 import 'package:analyzer/src/util/glob.dart'; 27 import 'package:analyzer/src/util/glob.dart';
28 import 'package:linter/src/plugin/linter_plugin.dart';
29 import 'package:linter/src/rules.dart'; 28 import 'package:linter/src/rules.dart';
30 import 'package:linter/src/rules/avoid_as.dart'; 29 import 'package:linter/src/rules/avoid_as.dart';
31 import 'package:path/path.dart' as path; 30 import 'package:path/path.dart' as path;
32 import 'package:plugin/manager.dart'; 31 import 'package:plugin/manager.dart';
33 import 'package:plugin/plugin.dart'; 32 import 'package:plugin/plugin.dart';
34 import 'package:test/test.dart'; 33 import 'package:test/test.dart';
35 import 'package:test_reflective_loader/test_reflective_loader.dart'; 34 import 'package:test_reflective_loader/test_reflective_loader.dart';
36 35
37 import 'mock_sdk.dart'; 36 import 'mock_sdk.dart';
38 import 'mocks.dart'; 37 import 'mocks.dart';
(...skipping 1754 matching lines...) Expand 10 before | Expand all | Expand 10 after
1793 String folderPath = path.posix.joinAll(pathComponents); 1792 String folderPath = path.posix.joinAll(pathComponents);
1794 resourceProvider.newFolder(folderPath); 1793 resourceProvider.newFolder(folderPath);
1795 return folderPath; 1794 return folderPath;
1796 } 1795 }
1797 1796
1798 void processRequiredPlugins() { 1797 void processRequiredPlugins() {
1799 List<Plugin> plugins = <Plugin>[]; 1798 List<Plugin> plugins = <Plugin>[];
1800 plugins.addAll(AnalysisEngine.instance.requiredPlugins); 1799 plugins.addAll(AnalysisEngine.instance.requiredPlugins);
1801 plugins.add(AnalysisEngine.instance.commandLinePlugin); 1800 plugins.add(AnalysisEngine.instance.commandLinePlugin);
1802 plugins.add(AnalysisEngine.instance.optionsPlugin); 1801 plugins.add(AnalysisEngine.instance.optionsPlugin);
1803 plugins.add(linterPlugin);
1804 ExtensionManager manager = new ExtensionManager(); 1802 ExtensionManager manager = new ExtensionManager();
1805 manager.processPlugins(plugins); 1803 manager.processPlugins(plugins);
1806 1804
1807 registerLintRules(); 1805 registerLintRules();
1808 } 1806 }
1809 1807
1810 UriResolver providePackageResolver(Folder folder) => packageResolver; 1808 UriResolver providePackageResolver(Folder folder) => packageResolver;
1811 1809
1812 void setUp() { 1810 void setUp() {
1813 processRequiredPlugins(); 1811 processRequiredPlugins();
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after
2828 class TestUriResolver extends UriResolver { 2826 class TestUriResolver extends UriResolver {
2829 Map<Uri, Source> uriMap; 2827 Map<Uri, Source> uriMap;
2830 2828
2831 TestUriResolver(this.uriMap); 2829 TestUriResolver(this.uriMap);
2832 2830
2833 @override 2831 @override
2834 Source resolveAbsolute(Uri uri, [Uri actualUri]) { 2832 Source resolveAbsolute(Uri uri, [Uri actualUri]) {
2835 return uriMap[uri]; 2833 return uriMap[uri];
2836 } 2834 }
2837 } 2835 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/analysis_abstract.dart ('k') | pkg/analysis_server/test/single_context_manager_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698