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

Unified Diff: tests/standalone/io/file_system_async_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_async_links_test.dart
diff --git a/tests/standalone/io/file_system_async_links_test.dart b/tests/standalone/io/file_system_async_links_test.dart
index f958bfadbd061f5ce38c49179a7f7d5b92b5da63..579cdd0fcfb13ad02b638bdb5b0fe32b7634a18c 100644
--- a/tests/standalone/io/file_system_async_links_test.dart
+++ b/tests/standalone/io/file_system_async_links_test.dart
@@ -26,7 +26,7 @@ class FutureExpect {
Future testFileExistsCreate() {
- return new Directory('').createTemp().then((temp) {
+ return Directory.createSystemTemp('dart_file_system_async').then((temp) {
var x = '${temp.path}${Platform.pathSeparator}x';
var y = '${temp.path}${Platform.pathSeparator}y';
return new Link(y).create(x)
@@ -98,7 +98,7 @@ Future testFileExistsCreate() {
Future testFileDelete() {
- return new Directory('').createTemp().then((temp) {
+ return Directory.createSystemTemp('dart_file_system_async').then((temp) {
var x = '${temp.path}${Platform.pathSeparator}x';
var y = '${temp.path}${Platform.pathSeparator}y';
return new File(x).create()
@@ -120,7 +120,7 @@ Future testFileDelete() {
Future testFileWriteRead() {
- return new Directory('').createTemp().then((temp) {
+ return Directory.createSystemTemp('dart_file_system_async').then((temp) {
var x = '${temp.path}${Platform.pathSeparator}x';
var y = '${temp.path}${Platform.pathSeparator}y';
var data = "asdf".codeUnits;
@@ -136,7 +136,7 @@ Future testFileWriteRead() {
Future testDirectoryExistsCreate() {
- return new Directory('').createTemp().then((temp) {
+ return Directory.createSystemTemp('dart_file_system_async').then((temp) {
var x = '${temp.path}${Platform.pathSeparator}x';
var y = '${temp.path}${Platform.pathSeparator}y';
return new Link(y).create(x)
@@ -149,8 +149,8 @@ Future testDirectoryExistsCreate() {
Future testDirectoryDelete() {
- return new Directory('').createTemp().then((temp) =>
- new Directory('').createTemp().then((temp2) {
+ return Directory.createSystemTemp('dart_file_system_async').then((temp) =>
+ Directory.createSystemTemp('dart_file_system_async').then((temp2) {
var y = '${temp.path}${Platform.pathSeparator}y';
var x = '${temp2.path}${Platform.pathSeparator}x';
var link = new Directory(y);
@@ -174,8 +174,8 @@ Future testDirectoryDelete() {
Future testDirectoryListing() {
- return new Directory('').createTemp().then((temp) =>
- new Directory('').createTemp().then((temp2) {
+ return Directory.createSystemTemp('dart_file_system_async').then((temp) =>
+ Directory.createSystemTemp('dart_file_system_async_links').then((temp2) {
var sep = Platform.pathSeparator;
var y = '${temp.path}${sep}y';
var x = '${temp2.path}${sep}x';
@@ -194,7 +194,7 @@ Future testDirectoryListing() {
Future testDirectoryListingBrokenLink() {
- return new Directory('').createTemp().then((temp) {
+ return Directory.createSystemTemp('dart_file_system_async').then((temp) {
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