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

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: Created 7 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 side-by-side diff with in-line comments
Download patch
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..4c6a2d3f33aa8d70366eb2f338886450340f3c9d 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.createSystemTempSync('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.createSystemTempSync('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.createSystemTempSync('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.createSystemTempSync('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.createSystemTempSync('dart_file_system_links');
+ var temp2 = Directory.createSystemTempSync('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.createSystemTempSync('dart_file_system_links');
+ var temp2 = Directory.createSystemTempSync('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.createSystemTempSync('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';

Powered by Google App Engine
This is Rietveld 408576698