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

Side by Side Diff: pkg/analyzer/test/src/task/driver_test.dart

Issue 2298913003: Pull in test_reflective_loader 0.0.4 and switch analyzer to it. (Closed)
Patch Set: Fixes for review comments. Created 4 years, 3 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.task.driver_test; 5 library analyzer.test.src.task.driver_test;
6 6
7 import 'package:analyzer/src/context/cache.dart'; 7 import 'package:analyzer/src/context/cache.dart';
8 import 'package:analyzer/src/generated/engine.dart'; 8 import 'package:analyzer/src/generated/engine.dart';
9 import 'package:analyzer/src/generated/java_engine.dart'; 9 import 'package:analyzer/src/generated/java_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_reflective_loader/test_reflective_loader.dart';
14 import 'package:typed_mock/typed_mock.dart'; 15 import 'package:typed_mock/typed_mock.dart';
15 import 'package:unittest/unittest.dart'; 16 import 'package:unittest/unittest.dart';
16 17
17 import '../../generated/test_support.dart'; 18 import '../../generated/test_support.dart';
18 import '../../reflective_tests.dart';
19 import '../../utils.dart'; 19 import '../../utils.dart';
20 import 'test_support.dart'; 20 import 'test_support.dart';
21 21
22 main() { 22 main() {
23 initializeTestEnvironment(); 23 initializeTestEnvironment();
24 runReflectiveTests(AnalysisDriverTest); 24 defineReflectiveTests(AnalysisDriverTest);
25 runReflectiveTests(CycleAwareDependencyWalkerTest); 25 defineReflectiveTests(CycleAwareDependencyWalkerTest);
26 runReflectiveTests(WorkItemTest); 26 defineReflectiveTests(WorkItemTest);
27 runReflectiveTests(WorkOrderTest); 27 defineReflectiveTests(WorkOrderTest);
28 } 28 }
29 29
30 class AbstractDriverTest { 30 class AbstractDriverTest {
31 TaskManager taskManager = new TaskManager(); 31 TaskManager taskManager = new TaskManager();
32 List<WorkManager> workManagers = <WorkManager>[]; 32 List<WorkManager> workManagers = <WorkManager>[];
33 InternalAnalysisContext context = new _InternalAnalysisContextMock(); 33 InternalAnalysisContext context = new _InternalAnalysisContextMock();
34 AnalysisDriver analysisDriver; 34 AnalysisDriver analysisDriver;
35 35
36 void setUp() { 36 void setUp() {
37 context = new _InternalAnalysisContextMock(); 37 context = new _InternalAnalysisContextMock();
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 if (!skipInputs.contains(dependency) && 859 if (!skipInputs.contains(dependency) &&
860 !evaluatedNodes.contains(dependency)) { 860 !evaluatedNodes.contains(dependency)) {
861 return dependency; 861 return dependency;
862 } 862 }
863 } 863 }
864 return null; 864 return null;
865 } 865 }
866 } 866 }
867 867
868 class _WorkManagerMock extends TypedMock implements WorkManager {} 868 class _WorkManagerMock extends TypedMock implements WorkManager {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698