Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(667)

Side by Side Diff: pkg/analyzer/test/src/summary/prelinker_test.dart

Issue 2391423003: Switch 'analyzer' to 'package:test' and test_reflective_loader ^0.1.0. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698