| 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.prelinker_test; | 5 library analyzer.test.src.summary.prelinker_test; |
| 6 | 6 |
| 7 import 'package:analyzer/src/generated/utilities_dart.dart'; | 7 import 'package:analyzer/src/generated/utilities_dart.dart'; |
| 8 import 'package:analyzer/src/summary/idl.dart'; | 8 import 'package:analyzer/src/summary/idl.dart'; |
| 9 import 'package:analyzer/src/summary/prelink.dart'; | 9 import 'package:analyzer/src/summary/prelink.dart'; |
| 10 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 10 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 11 import 'package:unittest/unittest.dart'; | |
| 12 | 11 |
| 13 import 'summarize_ast_test.dart'; | 12 import 'summarize_ast_test.dart'; |
| 14 import 'summary_common.dart'; | 13 import 'summary_common.dart'; |
| 15 | 14 |
| 16 main() { | 15 main() { |
| 17 groupSep = ' | '; | 16 defineReflectiveSuite(() { |
| 18 defineReflectiveTests(PrelinkerTest); | 17 defineReflectiveTests(PrelinkerTest); |
| 18 }); |
| 19 } | 19 } |
| 20 | 20 |
| 21 /** | 21 /** |
| 22 * Override of [SummaryTest] which verifies the correctness of the prelinker by | 22 * Override of [SummaryTest] which verifies the correctness of the prelinker by |
| 23 * creating summaries from the element model, discarding their prelinked | 23 * creating summaries from the element model, discarding their prelinked |
| 24 * information, and then recreating it using the prelinker. | 24 * information, and then recreating it using the prelinker. |
| 25 */ | 25 */ |
| 26 @reflectiveTest | 26 @reflectiveTest |
| 27 class PrelinkerTest extends LinkedSummarizeAstTest { | 27 class PrelinkerTest extends LinkedSummarizeAstTest { |
| 28 @override | 28 @override |
| (...skipping 18 matching lines...) Expand all Loading... |
| 47 } | 47 } |
| 48 | 48 |
| 49 linked = new LinkedLibrary.fromBuffer(prelink( | 49 linked = new LinkedLibrary.fromBuffer(prelink( |
| 50 linkerInputs.unlinkedDefiningUnit, | 50 linkerInputs.unlinkedDefiningUnit, |
| 51 getPart, | 51 getPart, |
| 52 getImport, | 52 getImport, |
| 53 (String declaredVariable) => null).toBuffer()); | 53 (String declaredVariable) => null).toBuffer()); |
| 54 validateLinkedLibrary(linked); | 54 validateLinkedLibrary(linked); |
| 55 } | 55 } |
| 56 } | 56 } |
| OLD | NEW |