OLD | NEW |
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:analyzer/error/error.dart'; | 10 import 'package:analyzer/error/error.dart'; |
(...skipping 14 matching lines...) Expand all Loading... |
25 import 'package:linter/src/plugin/linter_plugin.dart'; | 25 import 'package:linter/src/plugin/linter_plugin.dart'; |
26 import 'package:linter/src/rules/avoid_as.dart'; | 26 import 'package:linter/src/rules/avoid_as.dart'; |
27 import 'package:path/path.dart'; | 27 import 'package:path/path.dart'; |
28 import 'package:plugin/manager.dart'; | 28 import 'package:plugin/manager.dart'; |
29 import 'package:plugin/plugin.dart'; | 29 import 'package:plugin/plugin.dart'; |
30 import 'package:test/test.dart'; | 30 import 'package:test/test.dart'; |
31 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 31 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
32 | 32 |
33 import 'mock_sdk.dart'; | 33 import 'mock_sdk.dart'; |
34 import 'mocks.dart'; | 34 import 'mocks.dart'; |
35 import 'utils.dart'; | |
36 | 35 |
37 main() { | 36 main() { |
38 initializeTestEnvironment(); | |
39 defineReflectiveSuite(() { | 37 defineReflectiveSuite(() { |
40 defineReflectiveTests(AbstractContextManagerTest); | 38 defineReflectiveTests(AbstractContextManagerTest); |
41 defineReflectiveTests(ContextManagerWithNewOptionsTest); | 39 defineReflectiveTests(ContextManagerWithNewOptionsTest); |
42 defineReflectiveTests(ContextManagerWithOldOptionsTest); | 40 defineReflectiveTests(ContextManagerWithOldOptionsTest); |
43 }); | 41 }); |
44 } | 42 } |
45 | 43 |
46 @reflectiveTest | 44 @reflectiveTest |
47 class AbstractContextManagerTest extends ContextManagerTest { | 45 class AbstractContextManagerTest extends ContextManagerTest { |
48 void test_contextsInAnalysisRoot_nestedContext() { | 46 void test_contextsInAnalysisRoot_nestedContext() { |
(...skipping 2709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2758 class TestUriResolver extends UriResolver { | 2756 class TestUriResolver extends UriResolver { |
2759 Map<Uri, Source> uriMap; | 2757 Map<Uri, Source> uriMap; |
2760 | 2758 |
2761 TestUriResolver(this.uriMap); | 2759 TestUriResolver(this.uriMap); |
2762 | 2760 |
2763 @override | 2761 @override |
2764 Source resolveAbsolute(Uri uri, [Uri actualUri]) { | 2762 Source resolveAbsolute(Uri uri, [Uri actualUri]) { |
2765 return uriMap[uri]; | 2763 return uriMap[uri]; |
2766 } | 2764 } |
2767 } | 2765 } |
OLD | NEW |