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

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

Issue 2054453002: Make possible to don't track cache dependencies. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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';
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 812
813 /** 813 /**
814 * A dummy [InternalAnalysisContext] that does not use [AnalysisDriver] itself, 814 * A dummy [InternalAnalysisContext] that does not use [AnalysisDriver] itself,
815 * but provides enough implementation for it to function. 815 * but provides enough implementation for it to function.
816 */ 816 */
817 class _InternalAnalysisContextMock extends TypedMock 817 class _InternalAnalysisContextMock extends TypedMock
818 implements InternalAnalysisContext { 818 implements InternalAnalysisContext {
819 AnalysisCache analysisCache; 819 AnalysisCache analysisCache;
820 820
821 @override 821 @override
822 final AnalysisOptionsImpl analysisOptions = new AnalysisOptionsImpl();
823
824 @override
822 List<AnalysisTarget> explicitTargets = <AnalysisTarget>[]; 825 List<AnalysisTarget> explicitTargets = <AnalysisTarget>[];
823 826
824 @override 827 @override
825 List<AnalysisTarget> priorityTargets = <AnalysisTarget>[]; 828 List<AnalysisTarget> priorityTargets = <AnalysisTarget>[];
826 829
827 _InternalAnalysisContextMock() { 830 _InternalAnalysisContextMock() {
828 analysisCache = new AnalysisCache([new UniversalCachePartition(this)]); 831 analysisCache = new AnalysisCache([new UniversalCachePartition(this)]);
829 } 832 }
830 833
831 @override 834 @override
(...skipping 24 matching lines...) Expand all
856 if (!skipInputs.contains(dependency) && 859 if (!skipInputs.contains(dependency) &&
857 !evaluatedNodes.contains(dependency)) { 860 !evaluatedNodes.contains(dependency)) {
858 return dependency; 861 return dependency;
859 } 862 }
860 } 863 }
861 return null; 864 return null;
862 } 865 }
863 } 866 }
864 867
865 class _WorkManagerMock extends TypedMock implements WorkManager {} 868 class _WorkManagerMock extends TypedMock implements WorkManager {}
OLDNEW
« pkg/analyzer/lib/src/generated/engine.dart ('K') | « pkg/analyzer/lib/src/task/driver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698