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

Unified Diff: tests/standalone/io/file_input_stream_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_fuzz_test.dart ('k') | tests/standalone/io/file_non_ascii_sync_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_input_stream_test.dart
diff --git a/tests/standalone/io/file_input_stream_test.dart b/tests/standalone/io/file_input_stream_test.dart
index b48864b285f0a823aa0cf37c26fe8ec3bb9b63a0..8357d534f0b3594f346049b431e45e4e1f505090 100644
--- a/tests/standalone/io/file_input_stream_test.dart
+++ b/tests/standalone/io/file_input_stream_test.dart
@@ -67,7 +67,7 @@ int writeLongFileSync(File file) {
void testInputStreamTruncate() {
asyncStart();
- var temp = new Directory('').createTempSync();
+ var temp = Directory.systemTemp.createTempSync('file_input_stream_test');
var file = new File('${temp.path}/input_stream_truncate.txt');
var originalLength = writeLongFileSync(file);
// Start streaming the file. Pause after first chunk. Truncate
@@ -100,7 +100,7 @@ void testInputStreamTruncate() {
void testInputStreamDelete() {
asyncStart();
- var temp = new Directory('').createTempSync();
+ var temp = Directory.systemTemp.createTempSync('file_input_stream_test');
var file = new File('${temp.path}/input_stream_delete.txt');
var originalLength = writeLongFileSync(file);
// Start streaming the file. Pause after first chunk. Truncate
@@ -140,7 +140,7 @@ void testInputStreamDelete() {
void testInputStreamAppend() {
asyncStart();
- var temp = new Directory('').createTempSync();
+ var temp = Directory.systemTemp.createTempSync('file_input_stream_test');
var file = new File('${temp.path}/input_stream_append.txt');
var originalLength = writeLongFileSync(file);
// Start streaming the file. Pause after first chunk. Append to
@@ -174,7 +174,7 @@ void testInputStreamAppend() {
void testInputStreamOffset() {
void test(int start, int end, int expectedBytes) {
asyncStart();
- var temp = new Directory('').createTempSync();
+ var temp = Directory.systemTemp.createTempSync('file_input_stream_test');
var file = new File('${temp.path}/input_stream_offset.txt');
var originalLength = writeLongFileSync(file);
var streamedBytes = 0;
@@ -205,7 +205,7 @@ void testInputStreamOffset() {
void testInputStreamBadOffset() {
void test(int start, int end) {
asyncStart();
- var temp = new Directory('').createTempSync();
+ var temp = Directory.systemTemp.createTempSync('file_input_stream_test');
var file = new File('${temp.path}/input_stream_bad_offset.txt');
var originalLength = writeLongFileSync(file);
var streamedBytes = 0;
« no previous file with comments | « tests/standalone/io/file_fuzz_test.dart ('k') | tests/standalone/io/file_non_ascii_sync_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698