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

Unified Diff: tools/gardening/test/test_client.dart

Issue 2996013002: Fix index bug in readResults (Closed)
Patch Set: Created 3 years, 4 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 | « tools/gardening/test/bot_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gardening/test/test_client.dart
diff --git a/tools/gardening/test/test_client.dart b/tools/gardening/test/test_client.dart
index d84cbb17a8d905ef96572e18bbad86e144f8fab8..2426b2960b78a06b20fabba213ff0c2ce0d5773d 100644
--- a/tools/gardening/test/test_client.dart
+++ b/tools/gardening/test/test_client.dart
@@ -63,3 +63,17 @@ class TestClient implements BuildbotClient {
@override
int get mostRecentBuildNumber => -1;
}
+
+class DummyClient implements BuildbotClient {
+ @override
+ Future<BuildResult> readResult(BuildUri buildUri) {
+ return new Future.value(
+ new BuildResult(buildUri, 1, const [], const [], const []));
+ }
+
+ @override
+ void close() {}
+
+ @override
+ int get mostRecentBuildNumber => -1;
+}
« no previous file with comments | « tools/gardening/test/bot_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698