OLD | NEW |
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.task.driver_test; | 5 library analyzer.test.src.task.driver_test; |
6 | 6 |
7 import 'package:analyzer/exception/exception.dart'; | 7 import 'package:analyzer/exception/exception.dart'; |
8 import 'package:analyzer/src/context/cache.dart'; | 8 import 'package:analyzer/src/context/cache.dart'; |
9 import 'package:analyzer/src/generated/engine.dart'; | 9 import 'package:analyzer/src/generated/engine.dart'; |
10 import 'package:analyzer/src/task/driver.dart'; | 10 import 'package:analyzer/src/task/driver.dart'; |
11 import 'package:analyzer/src/task/inputs.dart'; | 11 import 'package:analyzer/src/task/inputs.dart'; |
12 import 'package:analyzer/src/task/manager.dart'; | 12 import 'package:analyzer/src/task/manager.dart'; |
13 import 'package:analyzer/task/model.dart'; | 13 import 'package:analyzer/task/model.dart'; |
14 import 'package:test/test.dart'; | 14 import 'package:test/test.dart'; |
15 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 15 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
16 import 'package:typed_mock/typed_mock.dart'; | 16 import 'package:typed_mock/typed_mock.dart'; |
17 | 17 |
18 import '../../generated/test_support.dart'; | 18 import '../../generated/test_support.dart'; |
19 import '../../utils.dart'; | |
20 import 'test_support.dart'; | 19 import 'test_support.dart'; |
21 | 20 |
22 main() { | 21 main() { |
23 initializeTestEnvironment(); | |
24 defineReflectiveSuite(() { | 22 defineReflectiveSuite(() { |
25 defineReflectiveTests(AnalysisDriverTest); | 23 defineReflectiveTests(AnalysisDriverTest); |
26 defineReflectiveTests(CycleAwareDependencyWalkerTest); | 24 defineReflectiveTests(CycleAwareDependencyWalkerTest); |
27 defineReflectiveTests(WorkItemTest); | 25 defineReflectiveTests(WorkItemTest); |
28 defineReflectiveTests(WorkOrderTest); | 26 defineReflectiveTests(WorkOrderTest); |
29 }); | 27 }); |
30 } | 28 } |
31 | 29 |
32 class AbstractDriverTest { | 30 class AbstractDriverTest { |
33 TaskManager taskManager = new TaskManager(); | 31 TaskManager taskManager = new TaskManager(); |
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
863 if (!skipInputs.contains(dependency) && | 861 if (!skipInputs.contains(dependency) && |
864 !evaluatedNodes.contains(dependency)) { | 862 !evaluatedNodes.contains(dependency)) { |
865 return dependency; | 863 return dependency; |
866 } | 864 } |
867 } | 865 } |
868 return null; | 866 return null; |
869 } | 867 } |
870 } | 868 } |
871 | 869 |
872 class _WorkManagerMock extends TypedMock implements WorkManager {} | 870 class _WorkManagerMock extends TypedMock implements WorkManager {} |
OLD | NEW |