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.src.summary.summarize_elements_strong_test; | 5 library analyzer.test.src.summary.summarize_elements_strong_test; |
6 | 6 |
7 import 'package:analyzer/src/generated/engine.dart'; | 7 import 'package:analyzer/src/generated/engine.dart'; |
8 import 'package:analyzer/src/generated/sdk.dart'; | 8 import 'package:analyzer/src/generated/sdk.dart'; |
| 9 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
9 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
10 | 11 |
11 import '../../reflective_tests.dart'; | |
12 import '../context/abstract_context.dart'; | 12 import '../context/abstract_context.dart'; |
13 import 'summarize_elements_test.dart'; | 13 import 'summarize_elements_test.dart'; |
14 import 'summary_common.dart'; | 14 import 'summary_common.dart'; |
15 | 15 |
16 main() { | 16 main() { |
17 groupSep = ' | '; | 17 groupSep = ' | '; |
18 runReflectiveTests(SummarizeElementsStrongTest); | 18 defineReflectiveTests(SummarizeElementsStrongTest); |
19 } | 19 } |
20 | 20 |
21 /** | 21 /** |
22 * Override of [SummaryTest] which creates summaries from the element model | 22 * Override of [SummaryTest] which creates summaries from the element model |
23 * using strong mode. | 23 * using strong mode. |
24 */ | 24 */ |
25 @reflectiveTest | 25 @reflectiveTest |
26 class SummarizeElementsStrongTest extends SummarizeElementsTest { | 26 class SummarizeElementsStrongTest extends SummarizeElementsTest { |
27 @override | 27 @override |
28 AnalysisOptionsImpl get options => super.options..strongMode = true; | 28 AnalysisOptionsImpl get options => super.options..strongMode = true; |
29 | 29 |
30 @override | 30 @override |
31 bool get strongMode => true; | 31 bool get strongMode => true; |
32 | 32 |
33 @override | 33 @override |
34 DartSdk createDartSdk() => AbstractContextTest.SHARED_STRONG_MOCK_SDK; | 34 DartSdk createDartSdk() => AbstractContextTest.SHARED_STRONG_MOCK_SDK; |
35 } | 35 } |
OLD | NEW |