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 17 matching lines...) Expand all Loading... |
28 import 'package:analyzer/src/generated/sdk.dart'; | 28 import 'package:analyzer/src/generated/sdk.dart'; |
29 import 'package:analyzer/src/generated/sdk_io.dart'; | 29 import 'package:analyzer/src/generated/sdk_io.dart'; |
30 import 'package:analyzer/src/generated/source_io.dart'; | 30 import 'package:analyzer/src/generated/source_io.dart'; |
31 import 'package:analyzer/src/generated/testing/ast_factory.dart'; | 31 import 'package:analyzer/src/generated/testing/ast_factory.dart'; |
32 import 'package:analyzer/src/generated/testing/element_factory.dart'; | 32 import 'package:analyzer/src/generated/testing/element_factory.dart'; |
33 import 'package:analyzer/src/generated/utilities_collection.dart'; | 33 import 'package:analyzer/src/generated/utilities_collection.dart'; |
34 import 'package:analyzer/src/services/lint.dart'; | 34 import 'package:analyzer/src/services/lint.dart'; |
35 import 'package:analyzer/src/string_source.dart'; | 35 import 'package:analyzer/src/string_source.dart'; |
36 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; | 37 import 'package:analyzer/task/model.dart' hide AnalysisTask; |
| 38 import 'package:path/path.dart' as pathos; |
38 import 'package:typed_mock/typed_mock.dart'; | 39 import 'package:typed_mock/typed_mock.dart'; |
39 import 'package:unittest/unittest.dart'; | 40 import 'package:unittest/unittest.dart'; |
40 import 'package:watcher/src/utils.dart'; | 41 import 'package:watcher/src/utils.dart'; |
41 | 42 |
42 import '../reflective_tests.dart'; | 43 import '../reflective_tests.dart'; |
43 import 'all_the_rest_test.dart'; | 44 import 'all_the_rest_test.dart'; |
44 import 'resolver_test.dart'; | 45 import 'resolver_test.dart'; |
45 import 'test_support.dart'; | 46 import 'test_support.dart'; |
46 | 47 |
47 main() { | 48 main() { |
(...skipping 6532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6580 class _AnalysisContextImplTest_test_applyChanges_removeContainer | 6581 class _AnalysisContextImplTest_test_applyChanges_removeContainer |
6581 implements SourceContainer { | 6582 implements SourceContainer { |
6582 Source libB; | 6583 Source libB; |
6583 _AnalysisContextImplTest_test_applyChanges_removeContainer(this.libB); | 6584 _AnalysisContextImplTest_test_applyChanges_removeContainer(this.libB); |
6584 @override | 6585 @override |
6585 bool contains(Source source) => source == libB; | 6586 bool contains(Source source) => source == libB; |
6586 } | 6587 } |
6587 | 6588 |
6588 class _Source_getContent_throwException extends NonExistingSource { | 6589 class _Source_getContent_throwException extends NonExistingSource { |
6589 _Source_getContent_throwException(String name) | 6590 _Source_getContent_throwException(String name) |
6590 : super(name, UriKind.FILE_URI); | 6591 : super(name, pathos.toUri(name), UriKind.FILE_URI); |
6591 | 6592 |
6592 @override | 6593 @override |
6593 TimestampedData<String> get contents { | 6594 TimestampedData<String> get contents { |
6594 throw 'Read error'; | 6595 throw 'Read error'; |
6595 } | 6596 } |
6596 | 6597 |
6597 @override | 6598 @override |
6598 bool exists() => true; | 6599 bool exists() => true; |
6599 } | 6600 } |
6600 | 6601 |
6601 class _UniversalCachePartitionTest_test_setMaxCacheSize | 6602 class _UniversalCachePartitionTest_test_setMaxCacheSize |
6602 implements CacheRetentionPolicy { | 6603 implements CacheRetentionPolicy { |
6603 @override | 6604 @override |
6604 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => | 6605 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => |
6605 RetentionPriority.LOW; | 6606 RetentionPriority.LOW; |
6606 } | 6607 } |
OLD | NEW |