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

Unified Diff: tests/standalone/io/file_typed_data_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_test.dart ('k') | tests/standalone/io/file_write_as_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_typed_data_test.dart
diff --git a/tests/standalone/io/file_typed_data_test.dart b/tests/standalone/io/file_typed_data_test.dart
index 0dee529fa9013a1f979179771da68b3efa1bcc84..882ed542eb949825de107f3df28e229d30f5ac89 100644
--- a/tests/standalone/io/file_typed_data_test.dart
+++ b/tests/standalone/io/file_typed_data_test.dart
@@ -22,7 +22,7 @@ void testWriteInt8ListAndView() {
OFFSET_IN_BYTES_FOR_VIEW,
VIEW_LENGTH);
- new Directory('').createTemp().then((temp) {
+ Directory.systemTemp.createTemp('dart_file_typed_data').then((temp) {
var file = new File("${temp.path}/test");
file.open(mode: FileMode.WRITE).then((raf) {
return raf.writeFrom(list, 0, LIST_LENGTH);
@@ -54,7 +54,7 @@ void testWriteUint8ListAndView() {
OFFSET_IN_BYTES_FOR_VIEW,
VIEW_LENGTH);
- new Directory('').createTemp().then((temp) {
+ Directory.systemTemp.createTemp('dart_file_typed_data').then((temp) {
var file = new File("${temp.path}/test");
file.open(mode: FileMode.WRITE).then((raf) {
return raf.writeFrom(list, 0, LIST_LENGTH);
@@ -86,7 +86,7 @@ void testWriteUint8ClampedListAndView() {
OFFSET_IN_BYTES_FOR_VIEW,
VIEW_LENGTH);
- new Directory('').createTemp().then((temp) {
+ Directory.systemTemp.createTemp('dart_file_typed_data').then((temp) {
var file = new File("${temp.path}/test");
file.open(mode: FileMode.WRITE).then((raf) {
return raf.writeFrom(list, 0, LIST_LENGTH);
@@ -120,7 +120,7 @@ void testWriteInt16ListAndView() {
OFFSET_IN_BYTES_FOR_VIEW,
VIEW_LENGTH);
- new Directory('').createTemp().then((temp) {
+ Directory.systemTemp.createTemp('dart_file_typed_data').then((temp) {
var file = new File("${temp.path}/test");
file.open(mode: FileMode.WRITE).then((raf) {
return raf.writeFrom(new Uint8List.view(list.buffer),
@@ -164,7 +164,7 @@ void testWriteUint16ListAndView() {
OFFSET_IN_BYTES_FOR_VIEW,
VIEW_LENGTH);
- new Directory('').createTemp().then((temp) {
+ Directory.systemTemp.createTemp('dart_file_typed_data').then((temp) {
var file = new File("${temp.path}/test");
file.open(mode: FileMode.WRITE).then((raf) {
return raf.writeFrom(new Uint8List.view(list.buffer),
@@ -208,7 +208,7 @@ void testWriteInt32ListAndView() {
OFFSET_IN_BYTES_FOR_VIEW,
VIEW_LENGTH);
- new Directory('').createTemp().then((temp) {
+ Directory.systemTemp.createTemp('dart_file_typed_data').then((temp) {
var file = new File("${temp.path}/test");
file.open(mode: FileMode.WRITE).then((raf) {
return raf.writeFrom(new Uint8List.view(list.buffer),
@@ -252,7 +252,7 @@ void testWriteUint32ListAndView() {
OFFSET_IN_BYTES_FOR_VIEW,
VIEW_LENGTH);
- new Directory('').createTemp().then((temp) {
+ Directory.systemTemp.createTemp('dart_file_typed_data').then((temp) {
var file = new File("${temp.path}/test");
file.open(mode: FileMode.WRITE).then((raf) {
return raf.writeFrom(new Uint8List.view(list.buffer),
@@ -296,7 +296,7 @@ void testWriteInt64ListAndView() {
OFFSET_IN_BYTES_FOR_VIEW,
VIEW_LENGTH);
- new Directory('').createTemp().then((temp) {
+ Directory.systemTemp.createTemp('dart_file_typed_data').then((temp) {
var file = new File("${temp.path}/test");
file.open(mode: FileMode.WRITE).then((raf) {
return raf.writeFrom(new Uint8List.view(list.buffer),
@@ -340,7 +340,7 @@ void testWriteUint64ListAndView() {
OFFSET_IN_BYTES_FOR_VIEW,
VIEW_LENGTH);
- new Directory('').createTemp().then((temp) {
+ Directory.systemTemp.createTemp('dart_file_typed_data').then((temp) {
var file = new File("${temp.path}/test");
file.open(mode: FileMode.WRITE).then((raf) {
return raf.writeFrom(new Uint8List.view(list.buffer),
« no previous file with comments | « tests/standalone/io/file_test.dart ('k') | tests/standalone/io/file_write_as_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698