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'; |
(...skipping 2686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2697 expect(entry.hasInvalidData(DartEntry.RESOLUTION_ERRORS), isTrue); | 2697 expect(entry.hasInvalidData(DartEntry.RESOLUTION_ERRORS), isTrue); |
2698 expect(entry.hasInvalidData(DartEntry.RESOLVED_UNIT), isTrue); | 2698 expect(entry.hasInvalidData(DartEntry.RESOLVED_UNIT), isTrue); |
2699 expect(entry.hasInvalidData(DartEntry.VERIFICATION_ERRORS), isTrue); | 2699 expect(entry.hasInvalidData(DartEntry.VERIFICATION_ERRORS), isTrue); |
2700 } | 2700 } |
2701 | 2701 |
2702 void test_invalidateAllInformation() { | 2702 void test_invalidateAllInformation() { |
2703 Source librarySource = new TestSource(); | 2703 Source librarySource = new TestSource(); |
2704 DartEntry entry = _entryWithValidState(librarySource); | 2704 DartEntry entry = _entryWithValidState(librarySource); |
2705 entry.invalidateAllInformation(); | 2705 entry.invalidateAllInformation(); |
2706 expect(entry.getState(SourceEntry.CONTENT), same(CacheState.INVALID)); | 2706 expect(entry.getState(SourceEntry.CONTENT), same(CacheState.INVALID)); |
2707 expect(entry.getState(SourceEntry.CONTENT_ERRORS), same(CacheState.INVALID))
; | 2707 expect( |
| 2708 entry.getState(SourceEntry.CONTENT_ERRORS), |
| 2709 same(CacheState.INVALID)); |
2708 expect(entry.getState(SourceEntry.LINE_INFO), same(CacheState.INVALID)); | 2710 expect(entry.getState(SourceEntry.LINE_INFO), same(CacheState.INVALID)); |
2709 expect( | 2711 expect( |
2710 entry.getState(DartEntry.CONTAINING_LIBRARIES), | 2712 entry.getState(DartEntry.CONTAINING_LIBRARIES), |
2711 same(CacheState.VALID)); | 2713 same(CacheState.VALID)); |
2712 expect(entry.getState(DartEntry.ELEMENT), same(CacheState.INVALID)); | 2714 expect(entry.getState(DartEntry.ELEMENT), same(CacheState.INVALID)); |
2713 expect( | 2715 expect( |
2714 entry.getState(DartEntry.EXPORTED_LIBRARIES), | 2716 entry.getState(DartEntry.EXPORTED_LIBRARIES), |
2715 same(CacheState.INVALID)); | 2717 same(CacheState.INVALID)); |
2716 expect( | 2718 expect( |
2717 entry.getState(DartEntry.IMPORTED_LIBRARIES), | 2719 entry.getState(DartEntry.IMPORTED_LIBRARIES), |
(...skipping 4428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7146 | 7148 |
7147 | 7149 |
7148 class _Source_getContent_throwException extends NonExistingSource { | 7150 class _Source_getContent_throwException extends NonExistingSource { |
7149 _Source_getContent_throwException(String name) | 7151 _Source_getContent_throwException(String name) |
7150 : super(name, UriKind.FILE_URI); | 7152 : super(name, UriKind.FILE_URI); |
7151 | 7153 |
7152 @override | 7154 @override |
7153 TimestampedData<String> get contents { | 7155 TimestampedData<String> get contents { |
7154 throw 'Read error'; | 7156 throw 'Read error'; |
7155 } | 7157 } |
| 7158 |
| 7159 @override |
| 7160 bool exists() => true; |
7156 } | 7161 } |
7157 | 7162 |
7158 | 7163 |
7159 class _UniversalCachePartitionTest_test_setMaxCacheSize implements | 7164 class _UniversalCachePartitionTest_test_setMaxCacheSize implements |
7160 CacheRetentionPolicy { | 7165 CacheRetentionPolicy { |
7161 @override | 7166 @override |
7162 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => | 7167 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => |
7163 RetentionPriority.LOW; | 7168 RetentionPriority.LOW; |
7164 } | 7169 } |
OLD | NEW |