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

Side by Side Diff: pkg/analyzer/test/src/context/cache_test.dart

Issue 2399913002: Remove 'initializeTestEnvironment' from 'analyzer'. (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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 analyzer.test.src.context.cache_test; 5 library analyzer.test.src.context.cache_test;
6 6
7 import 'package:analyzer/exception/exception.dart'; 7 import 'package:analyzer/exception/exception.dart';
8 import 'package:analyzer/file_system/file_system.dart'; 8 import 'package:analyzer/file_system/file_system.dart';
9 import 'package:analyzer/file_system/memory_file_system.dart'; 9 import 'package:analyzer/file_system/memory_file_system.dart';
10 import 'package:analyzer/file_system/physical_file_system.dart'; 10 import 'package:analyzer/file_system/physical_file_system.dart';
11 import 'package:analyzer/source/package_map_resolver.dart'; 11 import 'package:analyzer/source/package_map_resolver.dart';
12 import 'package:analyzer/src/context/cache.dart'; 12 import 'package:analyzer/src/context/cache.dart';
13 import 'package:analyzer/src/dart/sdk/sdk.dart'; 13 import 'package:analyzer/src/dart/sdk/sdk.dart';
14 import 'package:analyzer/src/generated/engine.dart'; 14 import 'package:analyzer/src/generated/engine.dart';
15 import 'package:analyzer/src/generated/source.dart'; 15 import 'package:analyzer/src/generated/source.dart';
16 import 'package:analyzer/src/generated/utilities_collection.dart'; 16 import 'package:analyzer/src/generated/utilities_collection.dart';
17 import 'package:analyzer/src/task/model.dart'; 17 import 'package:analyzer/src/task/model.dart';
18 import 'package:analyzer/task/model.dart'; 18 import 'package:analyzer/task/model.dart';
19 import 'package:test/test.dart'; 19 import 'package:test/test.dart';
20 import 'package:test_reflective_loader/test_reflective_loader.dart'; 20 import 'package:test_reflective_loader/test_reflective_loader.dart';
21 import 'package:typed_mock/typed_mock.dart'; 21 import 'package:typed_mock/typed_mock.dart';
22 22
23 import '../../generated/test_support.dart'; 23 import '../../generated/test_support.dart';
24 import '../../utils.dart';
25 24
26 main() { 25 main() {
27 initializeTestEnvironment();
28 defineReflectiveSuite(() { 26 defineReflectiveSuite(() {
29 defineReflectiveTests(AnalysisCacheTest); 27 defineReflectiveTests(AnalysisCacheTest);
30 defineReflectiveTests(CacheEntryTest); 28 defineReflectiveTests(CacheEntryTest);
31 defineReflectiveTests(CacheFlushManagerTest); 29 defineReflectiveTests(CacheFlushManagerTest);
32 defineReflectiveTests(SdkCachePartitionTest); 30 defineReflectiveTests(SdkCachePartitionTest);
33 defineReflectiveTests(UniversalCachePartitionTest); 31 defineReflectiveTests(UniversalCachePartitionTest);
34 defineReflectiveTests(ResultDataTest); 32 defineReflectiveTests(ResultDataTest);
35 }); 33 });
36 } 34 }
37 35
(...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after
1323 } 1321 }
1324 return DeltaResult.INVALIDATE; 1322 return DeltaResult.INVALIDATE;
1325 } 1323 }
1326 } 1324 }
1327 1325
1328 class _TestAnalysisTarget implements AnalysisTarget { 1326 class _TestAnalysisTarget implements AnalysisTarget {
1329 final Source librarySource; 1327 final Source librarySource;
1330 final Source source; 1328 final Source source;
1331 _TestAnalysisTarget({this.librarySource, this.source}); 1329 _TestAnalysisTarget({this.librarySource, this.source});
1332 } 1330 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/context/builder_test.dart ('k') | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698