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

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

Powered by Google App Engine
This is Rietveld 408576698