| 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/error/error.dart' show AnalysisError; | 
| 9 import 'package:analyzer/exception/exception.dart'; | 9 import 'package:analyzer/exception/exception.dart'; | 
| 10 import 'package:analyzer/src/context/cache.dart'; | 10 import 'package:analyzer/src/context/cache.dart'; | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
| 23 import 'package:analyzer/src/task/dart.dart'; | 23 import 'package:analyzer/src/task/dart.dart'; | 
| 24 import 'package:analyzer/src/task/dart_work_manager.dart'; | 24 import 'package:analyzer/src/task/dart_work_manager.dart'; | 
| 25 import 'package:analyzer/task/dart.dart'; | 25 import 'package:analyzer/task/dart.dart'; | 
| 26 import 'package:analyzer/task/general.dart'; | 26 import 'package:analyzer/task/general.dart'; | 
| 27 import 'package:analyzer/task/model.dart'; | 27 import 'package:analyzer/task/model.dart'; | 
| 28 import 'package:test/test.dart'; | 28 import 'package:test/test.dart'; | 
| 29 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 29 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 
| 30 import 'package:typed_mock/typed_mock.dart'; | 30 import 'package:typed_mock/typed_mock.dart'; | 
| 31 | 31 | 
| 32 import '../../generated/test_support.dart'; | 32 import '../../generated/test_support.dart'; | 
| 33 import '../../utils.dart'; |  | 
| 34 | 33 | 
| 35 main() { | 34 main() { | 
| 36   initializeTestEnvironment(); |  | 
| 37   defineReflectiveSuite(() { | 35   defineReflectiveSuite(() { | 
| 38     defineReflectiveTests(DartWorkManagerTest); | 36     defineReflectiveTests(DartWorkManagerTest); | 
| 39   }); | 37   }); | 
| 40 } | 38 } | 
| 41 | 39 | 
| 42 @reflectiveTest | 40 @reflectiveTest | 
| 43 class DartWorkManagerTest { | 41 class DartWorkManagerTest { | 
| 44   InternalAnalysisContext context = new _InternalAnalysisContextMock(); | 42   InternalAnalysisContext context = new _InternalAnalysisContextMock(); | 
| 45   AnalysisCache cache; | 43   AnalysisCache cache; | 
| 46   DartWorkManager manager; | 44   DartWorkManager manager; | 
| (...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 865 class _SourceFactoryMock extends TypedMock implements SourceFactory {} | 863 class _SourceFactoryMock extends TypedMock implements SourceFactory {} | 
| 866 | 864 | 
| 867 class _SourceMock extends TypedMock implements Source { | 865 class _SourceMock extends TypedMock implements Source { | 
| 868   final String shortName; | 866   final String shortName; | 
| 869   _SourceMock(this.shortName); | 867   _SourceMock(this.shortName); | 
| 870   @override | 868   @override | 
| 871   String get fullName => '/' + shortName; | 869   String get fullName => '/' + shortName; | 
| 872   @override | 870   @override | 
| 873   String toString() => fullName; | 871   String toString() => fullName; | 
| 874 } | 872 } | 
| OLD | NEW | 
|---|