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

Unified Diff: utils/testrunner/utils.dart

Issue 10977069: New testrunner that runs the test pipleine in an isolate. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
« utils/testrunner/pipeline_utils.dart ('K') | « utils/testrunner/testrunner.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/testrunner/utils.dart
===================================================================
--- utils/testrunner/utils.dart (revision 13085)
+++ utils/testrunner/utils.dart (working copy)
@@ -19,25 +19,6 @@
return f.readAsLinesSync();
}
-/** Copy a file with path [sourceName] to destination [destName]. */
-void copyFile(String sourceName, String destName) {
- var sourceFile = new File(sourceName);
- var destFile = new File(destName);
- var istream = sourceFile.openInputStream();
- var ostream = destFile.openOutputStream(FileMode.WRITE);
- istream.pipe(ostream);
- // TODO(gram) - make sure both streams are closed.
- // I think they are but the docs are not clear on this point.
-}
-
-/** Create a file [fileName] and populate it with [contents]. */
-void createFile(String fileName, String contents) {
- var file = new File(fileName);
- var ostream = file.openOutputStream(FileMode.WRITE);
- ostream.writeString(contents);
- ostream.close();
-}
-
/**
* Given a file path [path], make it absolute if it is relative,
* and return the result.
@@ -95,17 +76,6 @@
}
}
-/** Delete a file. */
-bool deleteFile(String fname) {
- var f = new File(fname);
- try {
- f.deleteSync();
- } catch (e) {
- return false;
- }
- return true;
-}
-
/**
* Get the directory that testrunner lives in; we need it to import
* support files into the generated scripts.
« utils/testrunner/pipeline_utils.dart ('K') | « utils/testrunner/testrunner.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698