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

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: 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..e90736ac1340229ebe1845015fa18bdec97d1262 100644
--- a/dart/tools/testing/dart/test_runner.dart
+++ b/dart/tools/testing/dart/test_runner.dart
@@ -76,6 +76,9 @@ 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++;
+
kustermann 2013/01/09 15:30:12 You could add an '==' operator here as well.
ahe 2013/01/09 15:38:02 Done.
/** 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