OLD | NEW |
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.dart_work_manager_test; | 5 library analyzer.test.src.task.dart_work_manager_test; |
6 | 6 |
7 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
| 8 import 'package:analyzer/error/error.dart' show AnalysisError; |
8 import 'package:analyzer/exception/exception.dart'; | 9 import 'package:analyzer/exception/exception.dart'; |
9 import 'package:analyzer/src/context/cache.dart'; | 10 import 'package:analyzer/src/context/cache.dart'; |
10 import 'package:analyzer/src/dart/scanner/scanner.dart' show ScannerErrorCode; | 11 import 'package:analyzer/src/dart/scanner/scanner.dart' show ScannerErrorCode; |
11 import 'package:analyzer/src/generated/engine.dart' | 12 import 'package:analyzer/src/generated/engine.dart' |
12 show | 13 show |
13 AnalysisErrorInfoImpl, | 14 AnalysisErrorInfoImpl, |
14 CacheState, | 15 CacheState, |
15 ChangeNoticeImpl, | 16 ChangeNoticeImpl, |
16 InternalAnalysisContext; | 17 InternalAnalysisContext; |
17 import 'package:analyzer/src/generated/error.dart' show AnalysisError; | |
18 import 'package:analyzer/src/generated/sdk.dart'; | 18 import 'package:analyzer/src/generated/sdk.dart'; |
19 import 'package:analyzer/src/generated/source.dart'; | 19 import 'package:analyzer/src/generated/source.dart'; |
20 import 'package:analyzer/src/generated/testing/ast_factory.dart'; | 20 import 'package:analyzer/src/generated/testing/ast_factory.dart'; |
21 import 'package:analyzer/src/task/dart.dart'; | 21 import 'package:analyzer/src/task/dart.dart'; |
22 import 'package:analyzer/src/task/dart_work_manager.dart'; | 22 import 'package:analyzer/src/task/dart_work_manager.dart'; |
23 import 'package:analyzer/task/dart.dart'; | 23 import 'package:analyzer/task/dart.dart'; |
24 import 'package:analyzer/task/general.dart'; | 24 import 'package:analyzer/task/general.dart'; |
25 import 'package:analyzer/task/model.dart'; | 25 import 'package:analyzer/task/model.dart'; |
26 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 26 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
27 import 'package:typed_mock/typed_mock.dart'; | 27 import 'package:typed_mock/typed_mock.dart'; |
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 class _SourceFactoryMock extends TypedMock implements SourceFactory {} | 854 class _SourceFactoryMock extends TypedMock implements SourceFactory {} |
855 | 855 |
856 class _SourceMock extends TypedMock implements Source { | 856 class _SourceMock extends TypedMock implements Source { |
857 final String shortName; | 857 final String shortName; |
858 _SourceMock(this.shortName); | 858 _SourceMock(this.shortName); |
859 @override | 859 @override |
860 String get fullName => '/' + shortName; | 860 String get fullName => '/' + shortName; |
861 @override | 861 @override |
862 String toString() => fullName; | 862 String toString() => fullName; |
863 } | 863 } |
OLD | NEW |