Index: cc/gl_renderer_unittest.cc |
diff --git a/cc/gl_renderer_unittest.cc b/cc/gl_renderer_unittest.cc |
index 078c066db03e0b16bca898f85cf7d14fdfbe40bb..4aa121bd854976d9e023de2605a3161582d106c5 100644 |
--- a/cc/gl_renderer_unittest.cc |
+++ b/cc/gl_renderer_unittest.cc |
@@ -43,7 +43,7 @@ public: |
int frameCount() { return m_frame; } |
void setMemoryAllocation(WebGraphicsMemoryAllocation allocation) |
{ |
- ASSERT(CCProxy::isImplThread()); |
+ DCHECK(CCProxy::isImplThread()); |
// In single threaded mode we expect this callback on main thread. |
DebugScopedSetMainThread main; |
m_memoryAllocationChangedCallback->onMemoryAllocationChanged(allocation); |
@@ -403,7 +403,7 @@ TEST(CCRendererGLTest2, opaqueBackground) |
// On DEBUG builds, render passes with opaque background clear to blue to |
// easily see regions that were not drawn on the screen. |
-#if defined(NDEBUG) |
+#ifdef NDEBUG |
EXPECT_EQ(0, context->clearCount()); |
#else |
EXPECT_EQ(1, context->clearCount()); |