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

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

Issue 2402483002: Remove 'initializeTestEnvironment' from 'analysis_server'. (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
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:analyzer/file_system/memory_file_system.dart'; 10 import 'package:analyzer/file_system/memory_file_system.dart';
11 import 'package:analyzer/src/generated/engine.dart'; 11 import 'package:analyzer/src/generated/engine.dart';
12 import 'package:analyzer/src/generated/sdk.dart'; 12 import 'package:analyzer/src/generated/sdk.dart';
13 import 'package:analyzer/src/generated/source.dart'; 13 import 'package:analyzer/src/generated/source.dart';
14 import 'package:analyzer/src/generated/source_io.dart'; 14 import 'package:analyzer/src/generated/source_io.dart';
15 import 'package:analyzer/src/util/glob.dart'; 15 import 'package:analyzer/src/util/glob.dart';
16 import 'package:linter/src/plugin/linter_plugin.dart'; 16 import 'package:linter/src/plugin/linter_plugin.dart';
17 import 'package:path/path.dart'; 17 import 'package:path/path.dart';
18 import 'package:plugin/manager.dart'; 18 import 'package:plugin/manager.dart';
19 import 'package:plugin/plugin.dart'; 19 import 'package:plugin/plugin.dart';
20 import 'package:test/test.dart'; 20 import 'package:test/test.dart';
21 import 'package:test_reflective_loader/test_reflective_loader.dart'; 21 import 'package:test_reflective_loader/test_reflective_loader.dart';
22 22
23 import 'context_manager_test.dart' show TestContextManagerCallbacks; 23 import 'context_manager_test.dart' show TestContextManagerCallbacks;
24 import 'mock_sdk.dart'; 24 import 'mock_sdk.dart';
25 import 'mocks.dart'; 25 import 'mocks.dart';
26 import 'utils.dart';
27 26
28 main() { 27 main() {
29 initializeTestEnvironment();
30 defineReflectiveSuite(() { 28 defineReflectiveSuite(() {
31 defineReflectiveTests(SingleContextManagerTest); 29 defineReflectiveTests(SingleContextManagerTest);
32 }); 30 });
33 } 31 }
34 32
35 @reflectiveTest 33 @reflectiveTest
36 class SingleContextManagerTest { 34 class SingleContextManagerTest {
37 MemoryResourceProvider resourceProvider = new MemoryResourceProvider(); 35 MemoryResourceProvider resourceProvider = new MemoryResourceProvider();
38 36
39 TestUriResolver packageResolver; 37 TestUriResolver packageResolver;
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 manager.processPlugins(plugins); 528 manager.processPlugins(plugins);
531 } 529 }
532 } 530 }
533 531
534 class TestUriResolver extends UriResolver { 532 class TestUriResolver extends UriResolver {
535 @override 533 @override
536 Source resolveAbsolute(Uri uri, [Uri actualUri]) { 534 Source resolveAbsolute(Uri uri, [Uri actualUri]) {
537 return null; 535 return null;
538 } 536 }
539 } 537 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698