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

Side by Side Diff: pkg/analyzer/test/generated/all_the_rest_test.dart

Issue 2399913002: Remove 'initializeTestEnvironment' from 'analyzer'. (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
« no previous file with comments | « pkg/analyzer/test/embedder_tests.dart ('k') | pkg/analyzer/test/generated/bazel_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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.generated.all_the_rest_test; 5 library analyzer.test.generated.all_the_rest_test;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/ast/token.dart'; 8 import 'package:analyzer/dart/ast/token.dart';
9 import 'package:analyzer/dart/element/element.dart'; 9 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/dart/element/type.dart'; 10 import 'package:analyzer/dart/element/type.dart';
(...skipping 20 matching lines...) Expand all
31 import 'package:analyzer/src/generated/testing/element_factory.dart'; 31 import 'package:analyzer/src/generated/testing/element_factory.dart';
32 import 'package:analyzer/src/generated/testing/test_type_provider.dart'; 32 import 'package:analyzer/src/generated/testing/test_type_provider.dart';
33 import 'package:analyzer/src/generated/testing/token_factory.dart'; 33 import 'package:analyzer/src/generated/testing/token_factory.dart';
34 import 'package:analyzer/src/generated/utilities_dart.dart'; 34 import 'package:analyzer/src/generated/utilities_dart.dart';
35 import 'package:analyzer/src/source/source_resource.dart'; 35 import 'package:analyzer/src/source/source_resource.dart';
36 import 'package:path/path.dart'; 36 import 'package:path/path.dart';
37 import 'package:source_span/source_span.dart'; 37 import 'package:source_span/source_span.dart';
38 import 'package:test/test.dart'; 38 import 'package:test/test.dart';
39 import 'package:test_reflective_loader/test_reflective_loader.dart'; 39 import 'package:test_reflective_loader/test_reflective_loader.dart';
40 40
41 import '../utils.dart';
42 import 'parser_test.dart'; 41 import 'parser_test.dart';
43 import 'resolver_test_case.dart'; 42 import 'resolver_test_case.dart';
44 import 'test_support.dart'; 43 import 'test_support.dart';
45 44
46 main() { 45 main() {
47 initializeTestEnvironment();
48 defineReflectiveSuite(() { 46 defineReflectiveSuite(() {
49 defineReflectiveTests(ContentCacheTest); 47 defineReflectiveTests(ContentCacheTest);
50 // ignore: deprecated_member_use 48 // ignore: deprecated_member_use
51 defineReflectiveTests(CustomUriResolverTest); 49 defineReflectiveTests(CustomUriResolverTest);
52 defineReflectiveTests(DartUriResolverTest); 50 defineReflectiveTests(DartUriResolverTest);
53 // ignore: deprecated_member_use 51 // ignore: deprecated_member_use
54 defineReflectiveTests(DirectoryBasedDartSdkTest); 52 defineReflectiveTests(DirectoryBasedDartSdkTest);
55 // ignore: deprecated_member_use 53 // ignore: deprecated_member_use
56 defineReflectiveTests(DirectoryBasedSourceContainerTest); 54 defineReflectiveTests(DirectoryBasedSourceContainerTest);
57 defineReflectiveTests(ElementBuilderTest); 55 defineReflectiveTests(ElementBuilderTest);
(...skipping 4469 matching lines...) Expand 10 before | Expand all | Expand 10 after
4527 expect(UriKind.fromEncoding(0x70), same(UriKind.PACKAGE_URI)); 4525 expect(UriKind.fromEncoding(0x70), same(UriKind.PACKAGE_URI));
4528 expect(UriKind.fromEncoding(0x58), same(null)); 4526 expect(UriKind.fromEncoding(0x58), same(null));
4529 } 4527 }
4530 4528
4531 void test_getEncoding() { 4529 void test_getEncoding() {
4532 expect(UriKind.DART_URI.encoding, 0x64); 4530 expect(UriKind.DART_URI.encoding, 0x64);
4533 expect(UriKind.FILE_URI.encoding, 0x66); 4531 expect(UriKind.FILE_URI.encoding, 0x66);
4534 expect(UriKind.PACKAGE_URI.encoding, 0x70); 4532 expect(UriKind.PACKAGE_URI.encoding, 0x70);
4535 } 4533 }
4536 } 4534 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/embedder_tests.dart ('k') | pkg/analyzer/test/generated/bazel_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698