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

Unified Diff: utils/tests/pub/test_pub.dart

Issue 11609005: Fix analyzer errors/warnings for Pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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/pub/path.dart ('K') | « utils/pub/yaml/yaml_map.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/test_pub.dart
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart
index 78f634d3328d91af9c8c9a371440722459f6d60f..c713206a3da3136b13f36d2af45f8c56388ee9e9 100644
--- a/utils/tests/pub/test_pub.dart
+++ b/utils/tests/pub/test_pub.dart
@@ -1424,7 +1424,8 @@ class ScheduledProcess {
/// Reads the next line of stdout from the process.
Future<String> nextLine() {
return _scheduleValue((_) {
- return timeout(_stdout.chain(readLine), _SCHEDULE_TIMEOUT,
+ return timeout(_stdout.chain((stream) => readLine(stream)),
+ _SCHEDULE_TIMEOUT,
"waiting for the next stdout line from process $name");
});
}
@@ -1432,7 +1433,8 @@ class ScheduledProcess {
/// Reads the next line of stderr from the process.
Future<String> nextErrLine() {
return _scheduleValue((_) {
- return timeout(_stderr.chain(readLine), _SCHEDULE_TIMEOUT,
+ return timeout(_stderr.chain((stream) => readLine(stream)),
+ _SCHEDULE_TIMEOUT,
"waiting for the next stderr line from process $name");
});
}
« utils/pub/path.dart ('K') | « utils/pub/yaml/yaml_map.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698