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

Unified Diff: Source/heap/HeapTest.cpp

Issue 180003002: Consistently use on-heap collections for StyleRuleBase descendants. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed reviewers comments Created 6 years, 10 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
« Source/core/css/StyleSheetContents.h ('K') | « Source/heap/Heap.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/heap/HeapTest.cpp
diff --git a/Source/heap/HeapTest.cpp b/Source/heap/HeapTest.cpp
index 7481ce20dd2b8aeae2bf9997b92aeb8eeb16d62a..ff761248079633df450a7177da42b6c0cd5b5c2e 100644
--- a/Source/heap/HeapTest.cpp
+++ b/Source/heap/HeapTest.cpp
@@ -1516,6 +1516,15 @@ public:
ListHashSet<Member<IntWrapper> > m_listHashSet;
};
+TEST(HeapTest, HeapVectorFilledWithValue)
+{
+ IntWrapper* val = IntWrapper::create(1);
+ HeapVector<Member<IntWrapper> > vector(10, val);
+ EXPECT_EQ(10u, vector.size());
+ for (size_t i = 0; i < vector.size(); i++)
+ EXPECT_EQ(val, vector[i]);
+}
+
TEST(HeapTest, HeapVectorWithInlineCapacity)
{
IntWrapper* one = IntWrapper::create(1);
« Source/core/css/StyleSheetContents.h ('K') | « Source/heap/Heap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698