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

Side by Side Diff: pkg/analyzer/test/src/summary/resynthesize_ast_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.resynthesize_ast_test; 5 library analyzer.test.src.summary.resynthesize_ast_test;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/element/element.dart'; 8 import 'package:analyzer/dart/element/element.dart';
9 import 'package:analyzer/src/dart/element/element.dart'; 9 import 'package:analyzer/src/dart/element/element.dart';
10 import 'package:analyzer/src/generated/engine.dart' 10 import 'package:analyzer/src/generated/engine.dart'
11 show AnalysisContext, AnalysisOptionsImpl; 11 show AnalysisContext, AnalysisOptionsImpl;
12 import 'package:analyzer/src/generated/sdk.dart'; 12 import 'package:analyzer/src/generated/sdk.dart';
13 import 'package:analyzer/src/generated/source.dart'; 13 import 'package:analyzer/src/generated/source.dart';
14 import 'package:analyzer/src/summary/format.dart'; 14 import 'package:analyzer/src/summary/format.dart';
15 import 'package:analyzer/src/summary/idl.dart'; 15 import 'package:analyzer/src/summary/idl.dart';
16 import 'package:analyzer/src/summary/link.dart'; 16 import 'package:analyzer/src/summary/link.dart';
17 import 'package:analyzer/src/summary/prelink.dart'; 17 import 'package:analyzer/src/summary/prelink.dart';
18 import 'package:analyzer/src/summary/resynthesize.dart'; 18 import 'package:analyzer/src/summary/resynthesize.dart';
19 import 'package:analyzer/src/summary/summarize_ast.dart'; 19 import 'package:analyzer/src/summary/summarize_ast.dart';
20 import 'package:analyzer/src/summary/summarize_elements.dart' 20 import 'package:analyzer/src/summary/summarize_elements.dart'
21 show PackageBundleAssembler; 21 show PackageBundleAssembler;
22 import 'package:analyzer/task/dart.dart' show PARSED_UNIT; 22 import 'package:analyzer/task/dart.dart' show PARSED_UNIT;
23 import 'package:analyzer/task/general.dart'; 23 import 'package:analyzer/task/general.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 '../context/abstract_context.dart'; 27 import '../context/abstract_context.dart';
28 import '../task/strong/inferred_type_test.dart'; 28 import '../task/strong/inferred_type_test.dart';
29 import 'resynthesize_common.dart'; 29 import 'resynthesize_common.dart';
30 import 'summary_common.dart'; 30 import 'summary_common.dart';
31 31
32 main() { 32 main() {
33 groupSep = ' | '; 33 defineReflectiveSuite(() {
34 defineReflectiveTests(ResynthesizeAstSpecTest); 34 defineReflectiveTests(ResynthesizeAstSpecTest);
35 defineReflectiveTests(ResynthesizeAstStrongTest); 35 defineReflectiveTests(ResynthesizeAstStrongTest);
36 defineReflectiveTests(AstInferredTypeTest); 36 defineReflectiveTests(AstInferredTypeTest);
37 });
37 } 38 }
38 39
39 @reflectiveTest 40 @reflectiveTest
40 class AstInferredTypeTest extends AbstractResynthesizeTest 41 class AstInferredTypeTest extends AbstractResynthesizeTest
41 with _AstResynthesizeTestMixin, InferredTypeMixin { 42 with _AstResynthesizeTestMixin, InferredTypeMixin {
42 @override 43 @override
43 bool get mayCheckTypesOfLocals => false; 44 bool get mayCheckTypesOfLocals => false;
44 45
45 @override 46 @override
46 void addFile(String content, {String name: '/main.dart'}) { 47 void addFile(String content, {String name: '/main.dart'}) {
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 } 894 }
894 895
895 @override 896 @override
896 DartSdk createDartSdk() => AbstractContextTest.SHARED_MOCK_SDK; 897 DartSdk createDartSdk() => AbstractContextTest.SHARED_MOCK_SDK;
897 898
898 @override 899 @override
899 TestSummaryResynthesizer encodeDecodeLibrarySource(Source source) { 900 TestSummaryResynthesizer encodeDecodeLibrarySource(Source source) {
900 return _encodeLibrary(source); 901 return _encodeLibrary(source);
901 } 902 }
902 } 903 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698