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

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

Issue 2585673002: Replace ASSERT, ENABLE(ASSERT), and ASSERT_NOT_REACHED in wtf (Closed)
Patch Set: Fix an Asan issue with LinkedHashSetNodeBase::unlink Created 4 years 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/HashCountedSet.h ('k') | third_party/WebKit/Source/wtf/HashTable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/HashMapTest.cpp
diff --git a/third_party/WebKit/Source/wtf/HashMapTest.cpp b/third_party/WebKit/Source/wtf/HashMapTest.cpp
index 7a6e32b6bb5a4f28df40d70d7e226c5a5d36860e..733fa73ebde6d80b5945552c1f6ab5e9e56196e2 100644
--- a/third_party/WebKit/Source/wtf/HashMapTest.cpp
+++ b/third_party/WebKit/Source/wtf/HashMapTest.cpp
@@ -141,18 +141,18 @@ class DummyRefCounted : public RefCounted<DummyRefCounted> {
m_isDeleted = false;
}
~DummyRefCounted() {
- ASSERT(!m_isDeleted);
+ DCHECK(!m_isDeleted);
m_isDeleted = true;
}
void ref() {
- ASSERT(!m_isDeleted);
+ DCHECK(!m_isDeleted);
WTF::RefCounted<DummyRefCounted>::ref();
++m_refInvokesCount;
}
void deref() {
- ASSERT(!m_isDeleted);
+ DCHECK(!m_isDeleted);
WTF::RefCounted<DummyRefCounted>::deref();
}
« no previous file with comments | « third_party/WebKit/Source/wtf/HashCountedSet.h ('k') | third_party/WebKit/Source/wtf/HashTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698