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

Unified Diff: test/cctest/test-identity-map.cc

Issue 1127113002: Add another test for accessing IdentityMap with SMI keys when it is _not_ empty. Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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: test/cctest/test-identity-map.cc
diff --git a/test/cctest/test-identity-map.cc b/test/cctest/test-identity-map.cc
index 787fda77d19521fd87cba07684aff62a9710af25..c1dde18c341ac48003f92d34824023b35b057604 100644
--- a/test/cctest/test-identity-map.cc
+++ b/test/cctest/test-identity-map.cc
@@ -123,6 +123,18 @@ TEST(Find_smi_not_found) {
}
+TEST(Find_smi_not_found2) {
+ IdentityMapTester t;
+ for (int i = 1; i < 100; i++) {
+ CHECK_NULL(t.map.Find(t.smi(i)));
+ }
+ t.map.Set(t.smi(1001), &t);
+ for (int i = 1; i < 100; i++) {
+ CHECK_NULL(t.map.Find(t.smi(i)));
+ }
+}
+
+
TEST(Find_num_not_found) {
IdentityMapTester t;
for (int i = 0; i < 100; i++) {
« 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