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

Unified Diff: utils/testrunner/run_process_task.dart

Issue 10966020: Added support for running an HTTP server during the test and being able to serve up static files. L… (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
Index: utils/testrunner/run_process_task.dart
===================================================================
--- utils/testrunner/run_process_task.dart (revision 12649)
+++ utils/testrunner/run_process_task.dart (working copy)
@@ -8,15 +8,9 @@
List _argumentTemplates;
int _timeout;
- void init(String commandTemplate, List argumentTemplates, int timeout) {
- this._commandTemplate = commandTemplate;
- this._argumentTemplates = argumentTemplates;
- this._timeout = timeout;
- }
+ RunProcessTask(this._commandTemplate, this._argumentTemplates, this._timeout);
- RunProcessTask();
-
- void execute(Path testfile, List stdout, List stderr, bool logging,
+ execute(Path testfile, List stdout, List stderr, bool logging,
Function exitHandler) {
var cmd = expandMacros(_commandTemplate, testfile);
List args = new List();
@@ -55,6 +49,7 @@
new StringInputStream(process.stderr);
stdoutStringStream.onLine = makeReadHandler(stdoutStringStream, stdout);
stderrStringStream.onLine = makeReadHandler(stderrStringStream, stderr);
+ return process;
}
Function makeReadHandler(StringInputStream source, List<String> destination) {

Powered by Google App Engine
This is Rietveld 408576698