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

Side by Side Diff: pkg/analyzer/test/file_system/physical_resource_provider_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) 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.file_system.physical_resource_provider_test; 5 library analyzer.test.file_system.physical_resource_provider_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:core'; 8 import 'dart:core';
9 import 'dart:io' as io; 9 import 'dart:io' as io;
10 10
11 import 'package:analyzer/file_system/file_system.dart'; 11 import 'package:analyzer/file_system/file_system.dart';
12 import 'package:analyzer/file_system/physical_file_system.dart'; 12 import 'package:analyzer/file_system/physical_file_system.dart';
13 import 'package:analyzer/src/generated/source_io.dart'; 13 import 'package:analyzer/src/generated/source_io.dart';
14 import 'package:path/path.dart'; 14 import 'package:path/path.dart';
15 import 'package:test/test.dart';
15 import 'package:test_reflective_loader/test_reflective_loader.dart'; 16 import 'package:test_reflective_loader/test_reflective_loader.dart';
16 import 'package:unittest/unittest.dart';
17 import 'package:watcher/watcher.dart'; 17 import 'package:watcher/watcher.dart';
18 18
19 import '../utils.dart';
20
21 main() { 19 main() {
22 initializeTestEnvironment();
23 if (!new bool.fromEnvironment('skipPhysicalResourceProviderTests')) { 20 if (!new bool.fromEnvironment('skipPhysicalResourceProviderTests')) {
24 defineReflectiveTests(PhysicalResourceProviderTest); 21 defineReflectiveSuite(() {
25 defineReflectiveTests(FileTest); 22 defineReflectiveTests(PhysicalResourceProviderTest);
26 defineReflectiveTests(FolderTest); 23 defineReflectiveTests(FileTest);
24 defineReflectiveTests(FolderTest);
25 });
27 } 26 }
28 } 27 }
29 28
30 var _isFile = new isInstanceOf<File>(); 29 var _isFile = new isInstanceOf<File>();
31 var _isFileSystemException = new isInstanceOf<FileSystemException>(); 30 var _isFileSystemException = new isInstanceOf<FileSystemException>();
32 var _isFolder = new isInstanceOf<Folder>(); 31 var _isFolder = new isInstanceOf<Folder>();
33 32
34 @reflectiveTest 33 @reflectiveTest
35 class FileTest extends _BaseTest { 34 class FileTest extends _BaseTest {
36 String path; 35 String path;
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 620
622 setUp() { 621 setUp() {
623 tempDirectory = io.Directory.systemTemp.createTempSync('test_resource'); 622 tempDirectory = io.Directory.systemTemp.createTempSync('test_resource');
624 tempPath = tempDirectory.absolute.path; 623 tempPath = tempDirectory.absolute.path;
625 } 624 }
626 625
627 tearDown() { 626 tearDown() {
628 tempDirectory.deleteSync(recursive: true); 627 tempDirectory.deleteSync(recursive: true);
629 } 628 }
630 } 629 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698