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

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

Issue 2298913003: Pull in test_reflective_loader 0.0.4 and switch analyzer to it. (Closed)
Patch Set: Fixes for review comments. Created 4 years, 3 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 import 'package:analyzer/dart/element/type.dart'; 5 import 'package:analyzer/dart/element/type.dart';
6 import 'package:analyzer/src/dart/element/element.dart'; 6 import 'package:analyzer/src/dart/element/element.dart';
7 import 'package:analyzer/src/summary/format.dart'; 7 import 'package:analyzer/src/summary/format.dart';
8 import 'package:analyzer/src/summary/idl.dart'; 8 import 'package:analyzer/src/summary/idl.dart';
9 import 'package:analyzer/src/summary/link.dart'; 9 import 'package:analyzer/src/summary/link.dart';
10 import 'package:test_reflective_loader/test_reflective_loader.dart';
10 import 'package:unittest/unittest.dart'; 11 import 'package:unittest/unittest.dart';
11 12
12 import '../../reflective_tests.dart';
13 import 'summarize_ast_test.dart'; 13 import 'summarize_ast_test.dart';
14 14
15 main() { 15 main() {
16 groupSep = ' | '; 16 groupSep = ' | ';
17 runReflectiveTests(LinkerUnitTest); 17 defineReflectiveTests(LinkerUnitTest);
18 } 18 }
19 19
20 @reflectiveTest 20 @reflectiveTest
21 class LinkerUnitTest extends SummaryLinkerTest { 21 class LinkerUnitTest extends SummaryLinkerTest {
22 Linker linker; 22 Linker linker;
23 23
24 LinkerInputs linkerInputs; 24 LinkerInputs linkerInputs;
25 LibraryElementInBuildUnit _testLibrary; 25 LibraryElementInBuildUnit _testLibrary;
26 @override 26 @override
27 bool get allowMissingFiles => false; 27 bool get allowMissingFiles => false;
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 PropertyAccessorElementForLink_Variable j = library.getContainedName('j'); 908 PropertyAccessorElementForLink_Variable j = library.getContainedName('j');
909 expect(j.variable.initializer, isNull); 909 expect(j.variable.initializer, isNull);
910 PropertyAccessorElementForLink_Variable v = library.getContainedName('v'); 910 PropertyAccessorElementForLink_Variable v = library.getContainedName('v');
911 expect(v.variable.initializer, isNotNull); 911 expect(v.variable.initializer, isNotNull);
912 } 912 }
913 913
914 VariableElementForLink _getVariable(ReferenceableElementForLink element) { 914 VariableElementForLink _getVariable(ReferenceableElementForLink element) {
915 return (element as PropertyAccessorElementForLink_Variable).variable; 915 return (element as PropertyAccessorElementForLink_Variable).variable;
916 } 916 }
917 } 917 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698