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

Unified Diff: third_party/WebKit/Source/wtf/ListHashSetTest.cpp

Issue 1813693002: Fix ListHashSet::AddResult storing a Node* instead of a ValueType*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « third_party/WebKit/Source/wtf/ListHashSet.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/ListHashSetTest.cpp
diff --git a/third_party/WebKit/Source/wtf/ListHashSetTest.cpp b/third_party/WebKit/Source/wtf/ListHashSetTest.cpp
index 20d8827e9b3be694b80294195e837795777dad85..f8cb8c6f5d88d264c40ff080af50ab09d1eceb80 100644
--- a/third_party/WebKit/Source/wtf/ListHashSetTest.cpp
+++ b/third_party/WebKit/Source/wtf/ListHashSetTest.cpp
@@ -560,7 +560,7 @@ TEST(ListHashSetTest, WithOwnPtr)
// AddResult in a separate scope to avoid assertion hit,
// since we modify the container further.
OwnPtrSet::AddResult res1 = set.add(adoptPtr(ptr1));
- EXPECT_EQ(res1.storedValue->m_value.get(), ptr1);
+ EXPECT_EQ(res1.storedValue->get(), ptr1);
}
EXPECT_FALSE(deleted1);
@@ -572,7 +572,7 @@ TEST(ListHashSetTest, WithOwnPtr)
Dummy* ptr2 = new Dummy(deleted2);
{
OwnPtrSet::AddResult res2 = set.add(adoptPtr(ptr2));
- EXPECT_EQ(res2.storedValue->m_value.get(), ptr2);
+ EXPECT_EQ(res2.storedValue->get(), ptr2);
}
EXPECT_FALSE(deleted2);
« no previous file with comments | « third_party/WebKit/Source/wtf/ListHashSet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698