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

Side by Side Diff: pkg/analyzer/test/generated/engine_test.dart

Issue 1399873002: Issue 24538. Route SDK results into SDK context DartWorkManager. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 engine.engine_test; 5 library engine.engine_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:analyzer/file_system/memory_file_system.dart'; 10 import 'package:analyzer/file_system/memory_file_system.dart';
(...skipping 13 matching lines...) Expand all
24 import 'package:analyzer/src/generated/resolver.dart'; 24 import 'package:analyzer/src/generated/resolver.dart';
25 import 'package:analyzer/src/generated/scanner.dart'; 25 import 'package:analyzer/src/generated/scanner.dart';
26 import 'package:analyzer/src/generated/sdk.dart'; 26 import 'package:analyzer/src/generated/sdk.dart';
27 import 'package:analyzer/src/generated/sdk_io.dart'; 27 import 'package:analyzer/src/generated/sdk_io.dart';
28 import 'package:analyzer/src/generated/source_io.dart'; 28 import 'package:analyzer/src/generated/source_io.dart';
29 import 'package:analyzer/src/generated/testing/ast_factory.dart'; 29 import 'package:analyzer/src/generated/testing/ast_factory.dart';
30 import 'package:analyzer/src/generated/testing/element_factory.dart'; 30 import 'package:analyzer/src/generated/testing/element_factory.dart';
31 import 'package:analyzer/src/generated/utilities_collection.dart'; 31 import 'package:analyzer/src/generated/utilities_collection.dart';
32 import 'package:analyzer/src/services/lint.dart'; 32 import 'package:analyzer/src/services/lint.dart';
33 import 'package:analyzer/src/string_source.dart'; 33 import 'package:analyzer/src/string_source.dart';
34 import 'package:analyzer/task/model.dart' hide AnalysisTask, WorkManager; 34 import 'package:analyzer/task/model.dart' as newContext;
35 import 'package:html/dom.dart' show Document; 35 import 'package:html/dom.dart' show Document;
36 import 'package:path/path.dart' as pathos; 36 import 'package:path/path.dart' as pathos;
37 import 'package:typed_mock/typed_mock.dart'; 37 import 'package:typed_mock/typed_mock.dart';
38 import 'package:unittest/unittest.dart'; 38 import 'package:unittest/unittest.dart';
39 import 'package:watcher/src/utils.dart'; 39 import 'package:watcher/src/utils.dart';
40 40
41 import '../reflective_tests.dart'; 41 import '../reflective_tests.dart';
42 import '../utils.dart'; 42 import '../utils.dart';
43 import 'all_the_rest_test.dart'; 43 import 'all_the_rest_test.dart';
44 import 'resolver_test.dart'; 44 import 'resolver_test.dart';
(...skipping 5643 matching lines...) Expand 10 before | Expand all | Expand 10 after
5688 fail("Unexpected invocation of setContentCache"); 5688 fail("Unexpected invocation of setContentCache");
5689 } 5689 }
5690 5690
5691 @override 5691 @override
5692 DeclaredVariables get declaredVariables { 5692 DeclaredVariables get declaredVariables {
5693 fail("Unexpected invocation of getDeclaredVariables"); 5693 fail("Unexpected invocation of getDeclaredVariables");
5694 return null; 5694 return null;
5695 } 5695 }
5696 5696
5697 @override 5697 @override
5698 List<AnalysisTarget> get explicitTargets { 5698 List<newContext.AnalysisTarget> get explicitTargets {
5699 fail("Unexpected invocation of visitCacheItems"); 5699 fail("Unexpected invocation of visitCacheItems");
5700 return null; 5700 return null;
5701 } 5701 }
5702 5702
5703 @override 5703 @override
5704 List<Source> get htmlSources { 5704 List<Source> get htmlSources {
5705 fail("Unexpected invocation of getHtmlSources"); 5705 fail("Unexpected invocation of getHtmlSources");
5706 return null; 5706 return null;
5707 } 5707 }
5708 5708
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
5759 return null; 5759 return null;
5760 } 5760 }
5761 5761
5762 @override 5762 @override
5763 List<Source> get prioritySources { 5763 List<Source> get prioritySources {
5764 fail("Unexpected invocation of getPrioritySources"); 5764 fail("Unexpected invocation of getPrioritySources");
5765 return null; 5765 return null;
5766 } 5766 }
5767 5767
5768 @override 5768 @override
5769 List<AnalysisTarget> get priorityTargets { 5769 List<newContext.AnalysisTarget> get priorityTargets {
5770 fail("Unexpected invocation of visitCacheItems"); 5770 fail("Unexpected invocation of visitCacheItems");
5771 return null; 5771 return null;
5772 } 5772 }
5773 5773
5774 @override 5774 @override
5775 CachePartition get privateAnalysisCachePartition { 5775 CachePartition get privateAnalysisCachePartition {
5776 fail("Unexpected invocation of privateAnalysisCachePartition"); 5776 fail("Unexpected invocation of privateAnalysisCachePartition");
5777 return null; 5777 return null;
5778 } 5778 }
5779 5779
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
5811 fail("Unexpected invocation of getTypeProvider"); 5811 fail("Unexpected invocation of getTypeProvider");
5812 return null; 5812 return null;
5813 } 5813 }
5814 5814
5815 @override 5815 @override
5816 void set typeProvider(TypeProvider typeProvider) { 5816 void set typeProvider(TypeProvider typeProvider) {
5817 fail("Unexpected invocation of set typeProvider"); 5817 fail("Unexpected invocation of set typeProvider");
5818 } 5818 }
5819 5819
5820 @override 5820 @override
5821 TypeResolverVisitorFactory get typeResolverVisitorFactory {
5822 fail("Unexpected invocation of getTypeResolverVisitorFactory");
5823 return null;
5824 }
5825
5826 @override
5821 TypeSystem get typeSystem { 5827 TypeSystem get typeSystem {
5822 fail("Unexpected invocation of getTypeSystem"); 5828 fail("Unexpected invocation of getTypeSystem");
5823 return null; 5829 return null;
5824 } 5830 }
5825 5831
5826 @override 5832 @override
5827 TypeResolverVisitorFactory get typeResolverVisitorFactory { 5833 List<newContext.WorkManager> get workManagers {
5828 fail("Unexpected invocation of getTypeResolverVisitorFactory"); 5834 fail("Unexpected invocation of workManagers");
5829 return null;
5830 } 5835 }
5831 5836
5832 @override 5837 @override
5833 void addListener(AnalysisListener listener) { 5838 void addListener(AnalysisListener listener) {
5834 fail("Unexpected invocation of addListener"); 5839 fail("Unexpected invocation of addListener");
5835 } 5840 }
5836 5841
5837 @override 5842 @override
5838 void applyAnalysisDelta(AnalysisDelta delta) { 5843 void applyAnalysisDelta(AnalysisDelta delta) {
5839 fail("Unexpected invocation of applyAnalysisDelta"); 5844 fail("Unexpected invocation of applyAnalysisDelta");
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
5900 } 5905 }
5901 5906
5902 @override 5907 @override
5903 Future<CompilationUnit> computeResolvedCompilationUnitAsync( 5908 Future<CompilationUnit> computeResolvedCompilationUnitAsync(
5904 Source source, Source librarySource) { 5909 Source source, Source librarySource) {
5905 fail("Unexpected invocation of getResolvedCompilationUnitFuture"); 5910 fail("Unexpected invocation of getResolvedCompilationUnitFuture");
5906 return null; 5911 return null;
5907 } 5912 }
5908 5913
5909 @override 5914 @override
5910 Object computeResult(AnalysisTarget target, ResultDescriptor result) { 5915 Object computeResult(
5916 newContext.AnalysisTarget target, newContext.ResultDescriptor result) {
5911 fail("Unexpected invocation of computeResult"); 5917 fail("Unexpected invocation of computeResult");
5912 return null; 5918 return null;
5913 } 5919 }
5914 5920
5915 @override 5921 @override
5916 void dispose() { 5922 void dispose() {
5917 fail("Unexpected invocation of dispose"); 5923 fail("Unexpected invocation of dispose");
5918 } 5924 }
5919 5925
5920 @override 5926 @override
5921 List<CompilationUnit> ensureResolvedDartUnits(Source source) { 5927 List<CompilationUnit> ensureResolvedDartUnits(Source source) {
5922 fail("Unexpected invocation of ensureResolvedDartUnits"); 5928 fail("Unexpected invocation of ensureResolvedDartUnits");
5923 return null; 5929 return null;
5924 } 5930 }
5925 5931
5926 @override 5932 @override
5927 bool exists(Source source) { 5933 bool exists(Source source) {
5928 fail("Unexpected invocation of exists"); 5934 fail("Unexpected invocation of exists");
5929 return false; 5935 return false;
5930 } 5936 }
5931 5937
5932 @override 5938 @override
5933 CacheEntry getCacheEntry(AnalysisTarget target) { 5939 CacheEntry getCacheEntry(newContext.AnalysisTarget target) {
5934 fail("Unexpected invocation of visitCacheItems"); 5940 fail("Unexpected invocation of visitCacheItems");
5935 return null; 5941 return null;
5936 } 5942 }
5937 5943
5938 @override 5944 @override
5939 CompilationUnitElement getCompilationUnitElement( 5945 CompilationUnitElement getCompilationUnitElement(
5940 Source unitSource, Source librarySource) { 5946 Source unitSource, Source librarySource) {
5941 fail("Unexpected invocation of getCompilationUnitElement"); 5947 fail("Unexpected invocation of getCompilationUnitElement");
5942 return null; 5948 return null;
5943 } 5949 }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
6048 } 6054 }
6049 6055
6050 @override 6056 @override
6051 @deprecated 6057 @deprecated
6052 ht.HtmlUnit getResolvedHtmlUnit(Source htmlSource) { 6058 ht.HtmlUnit getResolvedHtmlUnit(Source htmlSource) {
6053 fail("Unexpected invocation of getResolvedHtmlUnit"); 6059 fail("Unexpected invocation of getResolvedHtmlUnit");
6054 return null; 6060 return null;
6055 } 6061 }
6056 6062
6057 @override 6063 @override
6058 Object getResult(AnalysisTarget target, ResultDescriptor result) { 6064 Object getResult(
6065 newContext.AnalysisTarget target, newContext.ResultDescriptor result) {
6059 fail("Unexpected invocation of getResult"); 6066 fail("Unexpected invocation of getResult");
6060 return null; 6067 return null;
6061 } 6068 }
6062 6069
6063 @override 6070 @override
6064 List<Source> getSourcesWithFullName(String path) { 6071 List<Source> getSourcesWithFullName(String path) {
6065 fail("Unexpected invocation of getSourcesWithFullName"); 6072 fail("Unexpected invocation of getSourcesWithFullName");
6066 return null; 6073 return null;
6067 } 6074 }
6068 6075
(...skipping 15 matching lines...) Expand all
6084 return false; 6091 return false;
6085 } 6092 }
6086 6093
6087 @override 6094 @override
6088 bool isServerLibrary(Source librarySource) { 6095 bool isServerLibrary(Source librarySource) {
6089 fail("Unexpected invocation of isServerLibrary"); 6096 fail("Unexpected invocation of isServerLibrary");
6090 return false; 6097 return false;
6091 } 6098 }
6092 6099
6093 @override 6100 @override
6094 Stream<ComputedResult> onResultComputed(ResultDescriptor descriptor) { 6101 Stream<ComputedResult> onResultComputed(
6102 newContext.ResultDescriptor descriptor) {
6095 fail("Unexpected invocation of onResultComputed"); 6103 fail("Unexpected invocation of onResultComputed");
6096 return null; 6104 return null;
6097 } 6105 }
6098 6106
6099 @override 6107 @override
6100 CompilationUnit parseCompilationUnit(Source source) { 6108 CompilationUnit parseCompilationUnit(Source source) {
6101 fail("Unexpected invocation of parseCompilationUnit"); 6109 fail("Unexpected invocation of parseCompilationUnit");
6102 return null; 6110 return null;
6103 } 6111 }
6104 6112
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
7012 @override 7020 @override
7013 bool exists() => true; 7021 bool exists() => true;
7014 } 7022 }
7015 7023
7016 class _UniversalCachePartitionTest_test_setMaxCacheSize 7024 class _UniversalCachePartitionTest_test_setMaxCacheSize
7017 implements CacheRetentionPolicy { 7025 implements CacheRetentionPolicy {
7018 @override 7026 @override
7019 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => 7027 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) =>
7020 RetentionPriority.LOW; 7028 RetentionPriority.LOW;
7021 } 7029 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/file_system/memory_file_system_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