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

Unified Diff: Source/platform/heap/HeapTest.cpp

Issue 1098953003: HeapTest.HeapVectorPartObjects: fix reserveCapacity() expectation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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: Source/platform/heap/HeapTest.cpp
diff --git a/Source/platform/heap/HeapTest.cpp b/Source/platform/heap/HeapTest.cpp
index 242d4453c63930d4cbeec3a53a8b93913f55df36..8c4a8cfea45d8961da78d5a1b3179772579fb745 100644
--- a/Source/platform/heap/HeapTest.cpp
+++ b/Source/platform/heap/HeapTest.cpp
@@ -5764,11 +5764,11 @@ TEST(HeapTest, HeapVectorPartObjects)
}
vector1.reserveCapacity(150);
- EXPECT_EQ(150u, vector1.capacity());
+ EXPECT_LE(150u, vector1.capacity());
EXPECT_EQ(10u, vector1.size());
vector2.reserveCapacity(100);
- EXPECT_EQ(100u, vector2.capacity());
+ EXPECT_LE(100u, vector2.capacity());
EXPECT_EQ(10u, vector2.size());
for (int i = 0; i < 4; ++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