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

Unified Diff: tests/standalone/io/file_system_links_test.dart

Issue 25471003: Modify tests to use Directory.systemTemp (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/standalone/io/file_system_exists_test.dart ('k') | tests/standalone/io/file_system_watcher_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_system_links_test.dart
diff --git a/tests/standalone/io/file_system_links_test.dart b/tests/standalone/io/file_system_links_test.dart
index c1ea06816b2e1f34001f55a2d2a02f93b7e09014..19ea1a286b81352d424518bbb1bcd0bfc0bc7028 100644
--- a/tests/standalone/io/file_system_links_test.dart
+++ b/tests/standalone/io/file_system_links_test.dart
@@ -13,7 +13,7 @@ createLink(String dst, String link, void callback()) {
testFileExistsCreate() {
- var temp = new Directory('').createTempSync();
+ var temp = Directory.systemTemp.createTempSync('dart_file_system_links');
var x = '${temp.path}${Platform.pathSeparator}x';
var y = '${temp.path}${Platform.pathSeparator}y';
createLink(x, y, () {
@@ -71,7 +71,7 @@ testFileExistsCreate() {
testFileDelete() {
- var temp = new Directory('').createTempSync();
+ var temp = Directory.systemTemp.createTempSync('dart_file_system_links');
var x = '${temp.path}${Platform.pathSeparator}x';
var y = '${temp.path}${Platform.pathSeparator}y';
new File(x).createSync();
@@ -94,7 +94,7 @@ testFileDelete() {
testFileWriteRead() {
- var temp = new Directory('').createTempSync();
+ var temp = Directory.systemTemp.createTempSync('dart_file_system_links');
var x = '${temp.path}${Platform.pathSeparator}x';
var y = '${temp.path}${Platform.pathSeparator}y';
new File(x).createSync();
@@ -115,7 +115,7 @@ testFileWriteRead() {
testDirectoryExistsCreate() {
- var temp = new Directory('').createTempSync();
+ var temp = Directory.systemTemp.createTempSync('dart_file_system_links');
var x = '${temp.path}${Platform.pathSeparator}x';
var y = '${temp.path}${Platform.pathSeparator}y';
createLink(x, y, () {
@@ -128,8 +128,8 @@ testDirectoryExistsCreate() {
testDirectoryDelete() {
- var temp = new Directory('').createTempSync();
- var temp2 = new Directory('').createTempSync();
+ var temp = Directory.systemTemp.createTempSync('dart_file_system_links');
+ var temp2 = Directory.systemTemp.createTempSync('dart_file_system_links');
var y = '${temp.path}${Platform.pathSeparator}y';
var x = '${temp2.path}${Platform.pathSeparator}x';
new File(x).createSync();
@@ -154,8 +154,8 @@ testDirectoryDelete() {
testDirectoryListing() {
asyncStart();
- var temp = new Directory('').createTempSync();
- var temp2 = new Directory('').createTempSync();
+ var temp = Directory.systemTemp.createTempSync('dart_file_system_links');
+ var temp2 = Directory.systemTemp.createTempSync('dart_file_system_links');
var y = '${temp.path}${Platform.pathSeparator}y';
var x = '${temp2.path}${Platform.pathSeparator}x';
new File(x).createSync();
@@ -201,7 +201,7 @@ testDirectoryListing() {
testDirectoryListingBrokenLink() {
asyncStart();
- var temp = new Directory('').createTempSync();
+ var temp = Directory.systemTemp.createTempSync('dart_file_system_links');
var x = '${temp.path}${Platform.pathSeparator}x';
var link = '${temp.path}${Platform.pathSeparator}link';
var doesNotExist = 'this_thing_does_not_exist';
« no previous file with comments | « tests/standalone/io/file_system_exists_test.dart ('k') | tests/standalone/io/file_system_watcher_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698