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

Side by Side Diff: pkg/analyzer/test/generated/bazel_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
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.generated.bazel_test; 5 library analyzer.test.generated.bazel_test;
6 6
7 import 'package:analyzer/file_system/memory_file_system.dart'; 7 import 'package:analyzer/file_system/memory_file_system.dart';
8 import 'package:analyzer/src/generated/bazel.dart'; 8 import 'package:analyzer/src/generated/bazel.dart';
9 import 'package:analyzer/src/generated/source.dart'; 9 import 'package:analyzer/src/generated/source.dart';
10 import 'package:test/test.dart'; 10 import 'package:test/test.dart';
11 import 'package:test_reflective_loader/test_reflective_loader.dart'; 11 import 'package:test_reflective_loader/test_reflective_loader.dart';
12 12
13 import '../utils.dart';
14
15 main() { 13 main() {
16 initializeTestEnvironment();
17 defineReflectiveSuite(() { 14 defineReflectiveSuite(() {
18 defineReflectiveTests(BazelWorkspaceTest); 15 defineReflectiveTests(BazelWorkspaceTest);
19 defineReflectiveTests(BazelFileUriResolverTest); 16 defineReflectiveTests(BazelFileUriResolverTest);
20 }); 17 });
21 } 18 }
22 19
23 @reflectiveTest 20 @reflectiveTest
24 class BazelFileUriResolverTest extends _BaseTest { 21 class BazelFileUriResolverTest extends _BaseTest {
25 BazelWorkspace workspace; 22 BazelWorkspace workspace;
26 BazelFileUriResolver resolver; 23 BazelFileUriResolver resolver;
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 } 216 }
220 217
221 class _BaseTest { 218 class _BaseTest {
222 final MemoryResourceProvider provider = new MemoryResourceProvider(); 219 final MemoryResourceProvider provider = new MemoryResourceProvider();
223 220
224 /** 221 /**
225 * Return the [provider] specific path for the given Posix [path]. 222 * Return the [provider] specific path for the given Posix [path].
226 */ 223 */
227 String _p(String path) => provider.convertPath(path); 224 String _p(String path) => provider.convertPath(path);
228 } 225 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698