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

Unified Diff: runtime/vm/hash_table_test.cc

Issue 583443003: Add 'Clear' method to HashMap/HashSet templates. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
« no previous file with comments | « runtime/vm/hash_table.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/hash_table_test.cc
===================================================================
--- runtime/vm/hash_table_test.cc (revision 40404)
+++ runtime/vm/hash_table_test.cc (working copy)
@@ -245,7 +245,8 @@
VerifyStringSetsEqual(expected, actual, ordered);
}
}
- // TODO(koda): Delete all entries.
+ actual.Clear();
+ EXPECT_EQ(0, actual.NumOccupied());
actual.Release();
}
@@ -275,7 +276,8 @@
VerifyStringMapsEqual(expected, actual, ordered);
}
}
- // TODO(koda): Delete all entries.
+ actual.Clear();
+ EXPECT_EQ(0, actual.NumOccupied());
actual.Release();
}
« no previous file with comments | « runtime/vm/hash_table.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698