| OLD | NEW |
| 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.engine_test; | 8 library engine.engine_test; |
| 9 | 9 |
| 10 import 'dart:async'; | 10 import 'dart:async'; |
| 11 import 'dart:collection'; | 11 import 'dart:collection'; |
| 12 | 12 |
| 13 import 'package:analyzer/src/cancelable_future.dart'; | 13 import 'package:analyzer/src/cancelable_future.dart'; |
| 14 import 'package:analyzer/src/context/cache.dart' show CacheEntry; |
| 14 import 'package:analyzer/src/generated/ast.dart'; | 15 import 'package:analyzer/src/generated/ast.dart'; |
| 15 import 'package:analyzer/src/generated/constant.dart'; | 16 import 'package:analyzer/src/generated/constant.dart'; |
| 16 import 'package:analyzer/src/generated/element.dart'; | 17 import 'package:analyzer/src/generated/element.dart'; |
| 17 import 'package:analyzer/src/generated/engine.dart'; | 18 import 'package:analyzer/src/generated/engine.dart'; |
| 18 import 'package:analyzer/src/generated/error.dart'; | 19 import 'package:analyzer/src/generated/error.dart'; |
| 19 import 'package:analyzer/src/generated/html.dart' as ht; | 20 import 'package:analyzer/src/generated/html.dart' as ht; |
| 20 import 'package:analyzer/src/generated/java_core.dart'; | 21 import 'package:analyzer/src/generated/java_core.dart'; |
| 21 import 'package:analyzer/src/generated/java_engine.dart'; | 22 import 'package:analyzer/src/generated/java_engine.dart'; |
| 22 import 'package:analyzer/src/generated/java_engine_io.dart'; | 23 import 'package:analyzer/src/generated/java_engine_io.dart'; |
| 23 import 'package:analyzer/src/generated/java_io.dart'; | 24 import 'package:analyzer/src/generated/java_io.dart'; |
| 24 import 'package:analyzer/src/generated/parser.dart'; | 25 import 'package:analyzer/src/generated/parser.dart'; |
| 25 import 'package:analyzer/src/generated/resolver.dart'; | 26 import 'package:analyzer/src/generated/resolver.dart'; |
| 26 import 'package:analyzer/src/generated/scanner.dart'; | 27 import 'package:analyzer/src/generated/scanner.dart'; |
| 27 import 'package:analyzer/src/generated/sdk.dart'; | 28 import 'package:analyzer/src/generated/sdk.dart'; |
| 28 import 'package:analyzer/src/generated/sdk_io.dart'; | 29 import 'package:analyzer/src/generated/sdk_io.dart'; |
| 29 import 'package:analyzer/src/generated/source_io.dart'; | 30 import 'package:analyzer/src/generated/source_io.dart'; |
| 30 import 'package:analyzer/src/generated/testing/ast_factory.dart'; | 31 import 'package:analyzer/src/generated/testing/ast_factory.dart'; |
| 31 import 'package:analyzer/src/generated/testing/element_factory.dart'; | 32 import 'package:analyzer/src/generated/testing/element_factory.dart'; |
| 32 import 'package:analyzer/src/generated/utilities_collection.dart'; | 33 import 'package:analyzer/src/generated/utilities_collection.dart'; |
| 33 import 'package:analyzer/src/services/lint.dart'; | 34 import 'package:analyzer/src/services/lint.dart'; |
| 34 import 'package:analyzer/src/string_source.dart'; | 35 import 'package:analyzer/src/string_source.dart'; |
| 35 import 'package:analyzer/src/task/task_dart.dart'; | 36 import 'package:analyzer/src/task/task_dart.dart'; |
| 37 import 'package:analyzer/task/model.dart' hide AnalysisTask; |
| 36 import 'package:typed_mock/typed_mock.dart'; | 38 import 'package:typed_mock/typed_mock.dart'; |
| 37 import 'package:unittest/unittest.dart'; | 39 import 'package:unittest/unittest.dart'; |
| 38 import 'package:watcher/src/utils.dart'; | 40 import 'package:watcher/src/utils.dart'; |
| 39 | 41 |
| 40 import '../reflective_tests.dart'; | 42 import '../reflective_tests.dart'; |
| 41 import 'all_the_rest_test.dart'; | 43 import 'all_the_rest_test.dart'; |
| 42 import 'resolver_test.dart'; | 44 import 'resolver_test.dart'; |
| 43 import 'test_support.dart'; | 45 import 'test_support.dart'; |
| 44 | 46 |
| 45 main() { | 47 main() { |
| (...skipping 5392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5438 @override | 5440 @override |
| 5439 set contentCache(ContentCache value) { | 5441 set contentCache(ContentCache value) { |
| 5440 fail("Unexpected invocation of setContentCache"); | 5442 fail("Unexpected invocation of setContentCache"); |
| 5441 } | 5443 } |
| 5442 @override | 5444 @override |
| 5443 DeclaredVariables get declaredVariables { | 5445 DeclaredVariables get declaredVariables { |
| 5444 fail("Unexpected invocation of getDeclaredVariables"); | 5446 fail("Unexpected invocation of getDeclaredVariables"); |
| 5445 return null; | 5447 return null; |
| 5446 } | 5448 } |
| 5447 @override | 5449 @override |
| 5450 List<AnalysisTarget> get explicitTargets { |
| 5451 fail("Unexpected invocation of visitCacheItems"); |
| 5452 return null; |
| 5453 } |
| 5454 @override |
| 5448 List<Source> get htmlSources { | 5455 List<Source> get htmlSources { |
| 5449 fail("Unexpected invocation of getHtmlSources"); | 5456 fail("Unexpected invocation of getHtmlSources"); |
| 5450 return null; | 5457 return null; |
| 5451 } | 5458 } |
| 5452 @override | 5459 @override |
| 5453 bool get isDisposed { | 5460 bool get isDisposed { |
| 5454 fail("Unexpected invocation of isDisposed"); | 5461 fail("Unexpected invocation of isDisposed"); |
| 5455 return false; | 5462 return false; |
| 5456 } | 5463 } |
| 5457 @override | 5464 @override |
| 5458 List<Source> get launchableClientLibrarySources { | 5465 List<Source> get launchableClientLibrarySources { |
| 5459 fail("Unexpected invocation of getLaunchableClientLibrarySources"); | 5466 fail("Unexpected invocation of getLaunchableClientLibrarySources"); |
| 5460 return null; | 5467 return null; |
| 5461 } | 5468 } |
| 5462 @override | 5469 @override |
| 5463 List<Source> get launchableServerLibrarySources { | 5470 List<Source> get launchableServerLibrarySources { |
| 5464 fail("Unexpected invocation of getLaunchableServerLibrarySources"); | 5471 fail("Unexpected invocation of getLaunchableServerLibrarySources"); |
| 5465 return null; | 5472 return null; |
| 5466 } | 5473 } |
| 5467 @override | 5474 @override |
| 5475 LibraryResolverFactory get libraryResolverFactory { |
| 5476 fail("Unexpected invocation of getLibraryResolverFactory"); |
| 5477 return null; |
| 5478 } |
| 5479 @override |
| 5468 List<Source> get librarySources { | 5480 List<Source> get librarySources { |
| 5469 fail("Unexpected invocation of getLibrarySources"); | 5481 fail("Unexpected invocation of getLibrarySources"); |
| 5470 return null; | 5482 return null; |
| 5471 } | 5483 } |
| 5472 @override | 5484 @override |
| 5473 String get name { | 5485 String get name { |
| 5474 fail("Unexpected invocation of name"); | 5486 fail("Unexpected invocation of name"); |
| 5475 return null; | 5487 return null; |
| 5476 } | 5488 } |
| 5477 @override | 5489 @override |
| 5478 set name(String value) { | 5490 set name(String value) { |
| 5479 fail("Unexpected invocation of name"); | 5491 fail("Unexpected invocation of name"); |
| 5480 } | 5492 } |
| 5481 @override | 5493 @override |
| 5482 Stream<SourcesChangedEvent> get onSourcesChanged { | 5494 Stream<SourcesChangedEvent> get onSourcesChanged { |
| 5483 fail("Unexpected invocation of onSourcesChanged"); | 5495 fail("Unexpected invocation of onSourcesChanged"); |
| 5484 return null; | 5496 return null; |
| 5485 } | 5497 } |
| 5486 @override | 5498 @override |
| 5487 List<Source> get prioritySources { | 5499 List<Source> get prioritySources { |
| 5488 fail("Unexpected invocation of getPrioritySources"); | 5500 fail("Unexpected invocation of getPrioritySources"); |
| 5489 return null; | 5501 return null; |
| 5490 } | 5502 } |
| 5491 @override | 5503 @override |
| 5504 List<AnalysisTarget> get priorityTargets { |
| 5505 fail("Unexpected invocation of visitCacheItems"); |
| 5506 return null; |
| 5507 } |
| 5508 @override |
| 5492 List<Source> get refactoringUnsafeSources { | 5509 List<Source> get refactoringUnsafeSources { |
| 5493 fail("Unexpected invocation of getRefactoringUnsafeSources"); | 5510 fail("Unexpected invocation of getRefactoringUnsafeSources"); |
| 5494 return null; | 5511 return null; |
| 5495 } | 5512 } |
| 5496 @override | 5513 |
| 5497 LibraryResolverFactory get libraryResolverFactory { | |
| 5498 fail("Unexpected invocation of getLibraryResolverFactory"); | |
| 5499 return null; | |
| 5500 } | |
| 5501 @override | 5514 @override |
| 5502 ResolverVisitorFactory get resolverVisitorFactory { | 5515 ResolverVisitorFactory get resolverVisitorFactory { |
| 5503 fail("Unexpected invocation of getResolverVisitorFactory"); | 5516 fail("Unexpected invocation of getResolverVisitorFactory"); |
| 5504 return null; | 5517 return null; |
| 5505 } | 5518 } |
| 5519 |
| 5506 @override | 5520 @override |
| 5507 SourceFactory get sourceFactory { | 5521 SourceFactory get sourceFactory { |
| 5508 fail("Unexpected invocation of getSourceFactory"); | 5522 fail("Unexpected invocation of getSourceFactory"); |
| 5509 return null; | 5523 return null; |
| 5510 } | 5524 } |
| 5511 | 5525 |
| 5512 @override | 5526 @override |
| 5513 void set sourceFactory(SourceFactory factory) { | 5527 void set sourceFactory(SourceFactory factory) { |
| 5514 fail("Unexpected invocation of setSourceFactory"); | 5528 fail("Unexpected invocation of setSourceFactory"); |
| 5515 } | 5529 } |
| 5516 | |
| 5517 @override | 5530 @override |
| 5518 List<Source> get sources { | 5531 List<Source> get sources { |
| 5519 fail("Unexpected invocation of sources"); | 5532 fail("Unexpected invocation of sources"); |
| 5520 return null; | 5533 return null; |
| 5521 } | 5534 } |
| 5522 | |
| 5523 @override | 5535 @override |
| 5524 AnalysisContextStatistics get statistics { | 5536 AnalysisContextStatistics get statistics { |
| 5525 fail("Unexpected invocation of getStatistics"); | 5537 fail("Unexpected invocation of getStatistics"); |
| 5526 return null; | 5538 return null; |
| 5527 } | 5539 } |
| 5528 @override | 5540 @override |
| 5529 TypeProvider get typeProvider { | 5541 TypeProvider get typeProvider { |
| 5530 fail("Unexpected invocation of getTypeProvider"); | 5542 fail("Unexpected invocation of getTypeProvider"); |
| 5531 return null; | 5543 return null; |
| 5532 } | 5544 } |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5614 List<CompilationUnit> ensureResolvedDartUnits(Source source) { | 5626 List<CompilationUnit> ensureResolvedDartUnits(Source source) { |
| 5615 fail("Unexpected invocation of ensureResolvedDartUnits"); | 5627 fail("Unexpected invocation of ensureResolvedDartUnits"); |
| 5616 return null; | 5628 return null; |
| 5617 } | 5629 } |
| 5618 @override | 5630 @override |
| 5619 bool exists(Source source) { | 5631 bool exists(Source source) { |
| 5620 fail("Unexpected invocation of exists"); | 5632 fail("Unexpected invocation of exists"); |
| 5621 return false; | 5633 return false; |
| 5622 } | 5634 } |
| 5623 @override | 5635 @override |
| 5636 CacheEntry getCacheEntry(AnalysisTarget target) { |
| 5637 fail("Unexpected invocation of visitCacheItems"); |
| 5638 return null; |
| 5639 } |
| 5640 @override |
| 5624 CompilationUnitElement getCompilationUnitElement( | 5641 CompilationUnitElement getCompilationUnitElement( |
| 5625 Source unitSource, Source librarySource) { | 5642 Source unitSource, Source librarySource) { |
| 5626 fail("Unexpected invocation of getCompilationUnitElement"); | 5643 fail("Unexpected invocation of getCompilationUnitElement"); |
| 5627 return null; | 5644 return null; |
| 5628 } | 5645 } |
| 5629 @override | 5646 @override |
| 5630 TimestampedData<String> getContents(Source source) { | 5647 TimestampedData<String> getContents(Source source) { |
| 5631 fail("Unexpected invocation of getContents"); | 5648 fail("Unexpected invocation of getContents"); |
| 5632 return null; | 5649 return null; |
| 5633 } | 5650 } |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5750 return null; | 5767 return null; |
| 5751 } | 5768 } |
| 5752 @override | 5769 @override |
| 5753 void recordLibraryElements(Map<Source, LibraryElement> elementMap) { | 5770 void recordLibraryElements(Map<Source, LibraryElement> elementMap) { |
| 5754 fail("Unexpected invocation of recordLibraryElements"); | 5771 fail("Unexpected invocation of recordLibraryElements"); |
| 5755 } | 5772 } |
| 5756 @override | 5773 @override |
| 5757 void removeListener(AnalysisListener listener) { | 5774 void removeListener(AnalysisListener listener) { |
| 5758 fail("Unexpected invocation of removeListener"); | 5775 fail("Unexpected invocation of removeListener"); |
| 5759 } | 5776 } |
| 5777 |
| 5760 @override | 5778 @override |
| 5761 CompilationUnit resolveCompilationUnit( | 5779 CompilationUnit resolveCompilationUnit( |
| 5762 Source unitSource, LibraryElement library) { | 5780 Source unitSource, LibraryElement library) { |
| 5763 fail("Unexpected invocation of resolveCompilationUnit"); | 5781 fail("Unexpected invocation of resolveCompilationUnit"); |
| 5764 return null; | 5782 return null; |
| 5765 } | 5783 } |
| 5784 |
| 5766 @override | 5785 @override |
| 5767 CompilationUnit resolveCompilationUnit2( | 5786 CompilationUnit resolveCompilationUnit2( |
| 5768 Source unitSource, Source librarySource) { | 5787 Source unitSource, Source librarySource) { |
| 5769 fail("Unexpected invocation of resolveCompilationUnit"); | 5788 fail("Unexpected invocation of resolveCompilationUnit"); |
| 5770 return null; | 5789 return null; |
| 5771 } | 5790 } |
| 5791 |
| 5772 @override | 5792 @override |
| 5773 ht.HtmlUnit resolveHtmlUnit(Source htmlSource) { | 5793 ht.HtmlUnit resolveHtmlUnit(Source htmlSource) { |
| 5774 fail("Unexpected invocation of resolveHtmlUnit"); | 5794 fail("Unexpected invocation of resolveHtmlUnit"); |
| 5775 return null; | 5795 return null; |
| 5776 } | 5796 } |
| 5777 | 5797 |
| 5778 @override | 5798 @override |
| 5779 void setChangedContents(Source source, String contents, int offset, | 5799 void setChangedContents(Source source, String contents, int offset, |
| 5780 int oldLength, int newLength) { | 5800 int oldLength, int newLength) { |
| 5781 fail("Unexpected invocation of setChangedContents"); | 5801 fail("Unexpected invocation of setChangedContents"); |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6611 @override | 6631 @override |
| 6612 bool exists() => true; | 6632 bool exists() => true; |
| 6613 } | 6633 } |
| 6614 | 6634 |
| 6615 class _UniversalCachePartitionTest_test_setMaxCacheSize | 6635 class _UniversalCachePartitionTest_test_setMaxCacheSize |
| 6616 implements CacheRetentionPolicy { | 6636 implements CacheRetentionPolicy { |
| 6617 @override | 6637 @override |
| 6618 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => | 6638 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => |
| 6619 RetentionPriority.LOW; | 6639 RetentionPriority.LOW; |
| 6620 } | 6640 } |
| OLD | NEW |