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

Unified Diff: dart/tools/testing/dart/test_runner.dart

Issue 11824028: Add a hashCode to Command so reporting timings is 400 faster. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add operator== Created 7 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/testing/dart/test_runner.dart
diff --git a/dart/tools/testing/dart/test_runner.dart b/dart/tools/testing/dart/test_runner.dart
index 3ccc3eedab0547c5c78251519380f15fa38a5035..1298982eb53391ad23a7ee965ce9b042095816cf 100644
--- a/dart/tools/testing/dart/test_runner.dart
+++ b/dart/tools/testing/dart/test_runner.dart
@@ -76,6 +76,10 @@ int findBytes(List<int> data, List<int> pattern, [int startPos=0]) {
/** A command executed as a step in a test case. */
class Command {
+ static int nextHashCode = 0;
+ final int hashCode = nextHashCode++;
+ operator ==(other) => super == (other);
+
/** Path to the executable of this command. */
String executable;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698