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

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

Issue 10392023: Change dart:io to use Future for one-shot operations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding stable test binaries Created 8 years, 7 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/process_working_directory_test.dart ('k') | tools/testing/bin/linux/dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/stream_pipe_test.dart
diff --git a/tests/standalone/io/stream_pipe_test.dart b/tests/standalone/io/stream_pipe_test.dart
index d5eea30797ba040aae7618b697da8700f9dc0f40..d9cea20cf8fea41191b5885c58bb6a5bcffd3392 100644
--- a/tests/standalone/io/stream_pipe_test.dart
+++ b/tests/standalone/io/stream_pipe_test.dart
@@ -85,8 +85,7 @@ class PipeServerGame {
fileInput.onClosed = () {
SocketInputStream socketInput = _socket.inputStream;
- var tempDir = new Directory('');
- tempDir.createTempSync();
+ var tempDir = new Directory('').createTempSync();
var dstFileName = tempDir.path + "/readline_test1.dat";
var dstFile = new File(dstFileName);
dstFile.createSync();
@@ -170,8 +169,7 @@ testFileToFilePipe1() {
getDataFilename("tests/standalone/io/readline_test1.dat");
var srcStream = new File(srcFileName).openInputStream();
- var tempDir = new Directory('');
- tempDir.createTempSync();
+ var tempDir = new Directory('').createTempSync();
String dstFileName = tempDir.path + "/readline_test1.dat";
new File(dstFileName).createSync();
var dstStream = new File(dstFileName).openOutputStream();
@@ -201,8 +199,7 @@ testFileToFilePipe2() {
var srcFile = new File(srcFileName);
var srcStream = srcFile.openInputStream();
- var tempDir = new Directory('');
- tempDir.createTempSync();
+ var tempDir = new Directory('').createTempSync();
var dstFileName = tempDir.path + "/readline_test1.dat";
var dstFile = new File(dstFileName);
dstFile.createSync();
@@ -248,8 +245,7 @@ testFileToFilePipe3() {
var srcFile = new File(srcFileName);
var srcStream = srcFile.openInputStream();
- var tempDir = new Directory('');
- tempDir.createTempSync();
+ var tempDir = new Directory('').createTempSync();
var dstFileName = tempDir.path + "/readline_test1.dat";
var dstFile = new File(dstFileName);
dstFile.createSync();
« no previous file with comments | « tests/standalone/io/process_working_directory_test.dart ('k') | tools/testing/bin/linux/dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698