| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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.generated.inheritance_manager_test; | 5 library analyzer.test.generated.inheritance_manager_test; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
| 10 import 'package:analyzer/dart/element/type.dart'; | 10 import 'package:analyzer/dart/element/type.dart'; |
| 11 import 'package:analyzer/error/error.dart'; | 11 import 'package:analyzer/error/error.dart'; |
| 12 import 'package:analyzer/file_system/memory_file_system.dart'; | 12 import 'package:analyzer/file_system/memory_file_system.dart'; |
| 13 import 'package:analyzer/src/dart/element/element.dart'; | 13 import 'package:analyzer/src/dart/element/element.dart'; |
| 14 import 'package:analyzer/src/dart/resolver/inheritance_manager.dart'; | 14 import 'package:analyzer/src/dart/resolver/inheritance_manager.dart'; |
| 15 import 'package:analyzer/src/error/codes.dart'; | 15 import 'package:analyzer/src/error/codes.dart'; |
| 16 import 'package:analyzer/src/generated/engine.dart'; | 16 import 'package:analyzer/src/generated/engine.dart'; |
| 17 import 'package:analyzer/src/generated/resolver.dart'; | 17 import 'package:analyzer/src/generated/resolver.dart'; |
| 18 import 'package:analyzer/src/generated/source_io.dart'; | 18 import 'package:analyzer/src/generated/source_io.dart'; |
| 19 import 'package:analyzer/src/generated/testing/ast_factory.dart'; | 19 import 'package:analyzer/src/generated/testing/ast_factory.dart'; |
| 20 import 'package:analyzer/src/generated/testing/element_factory.dart'; | 20 import 'package:analyzer/src/generated/testing/element_factory.dart'; |
| 21 import 'package:analyzer/src/generated/testing/test_type_provider.dart'; | 21 import 'package:analyzer/src/generated/testing/test_type_provider.dart'; |
| 22 import 'package:analyzer/src/generated/utilities_dart.dart'; | 22 import 'package:analyzer/src/generated/utilities_dart.dart'; |
| 23 import 'package:analyzer/src/source/source_resource.dart'; | 23 import 'package:analyzer/src/source/source_resource.dart'; |
| 24 import 'package:test/test.dart'; |
| 24 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 25 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 25 import 'package:unittest/unittest.dart'; | |
| 26 | 26 |
| 27 import '../utils.dart'; | 27 import '../utils.dart'; |
| 28 import 'analysis_context_factory.dart'; | 28 import 'analysis_context_factory.dart'; |
| 29 import 'test_support.dart'; | 29 import 'test_support.dart'; |
| 30 | 30 |
| 31 main() { | 31 main() { |
| 32 initializeTestEnvironment(); | 32 initializeTestEnvironment(); |
| 33 defineReflectiveTests(InheritanceManagerTest); | 33 defineReflectiveSuite(() { |
| 34 defineReflectiveTests(InheritanceManagerTest); |
| 35 }); |
| 34 } | 36 } |
| 35 | 37 |
| 36 @reflectiveTest | 38 @reflectiveTest |
| 37 class InheritanceManagerTest { | 39 class InheritanceManagerTest { |
| 38 /** | 40 /** |
| 39 * The type provider used to access the types. | 41 * The type provider used to access the types. |
| 40 */ | 42 */ |
| 41 TestTypeProvider _typeProvider; | 43 TestTypeProvider _typeProvider; |
| 42 | 44 |
| 43 /** | 45 /** |
| (...skipping 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1314 Source source = new FileSource(resourceProvider.getFile("/test.dart")); | 1316 Source source = new FileSource(resourceProvider.getFile("/test.dart")); |
| 1315 CompilationUnitElementImpl definingCompilationUnit = | 1317 CompilationUnitElementImpl definingCompilationUnit = |
| 1316 new CompilationUnitElementImpl("test.dart"); | 1318 new CompilationUnitElementImpl("test.dart"); |
| 1317 definingCompilationUnit.librarySource = | 1319 definingCompilationUnit.librarySource = |
| 1318 definingCompilationUnit.source = source; | 1320 definingCompilationUnit.source = source; |
| 1319 _definingLibrary = ElementFactory.library(context, "test"); | 1321 _definingLibrary = ElementFactory.library(context, "test"); |
| 1320 _definingLibrary.definingCompilationUnit = definingCompilationUnit; | 1322 _definingLibrary.definingCompilationUnit = definingCompilationUnit; |
| 1321 return new InheritanceManager(_definingLibrary); | 1323 return new InheritanceManager(_definingLibrary); |
| 1322 } | 1324 } |
| 1323 } | 1325 } |
| OLD | NEW |