diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-17 00:50:19 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-17 00:50:19 +0000 |
commit | bc3847a1ba39db7adec20aa9e0565f6e868e8480 (patch) | |
tree | 572eb2450ffd1bcee7f1932974f04de80c179e90 /cc/test/scheduler_test_common.h | |
parent | eff7a36630d6c8f86921dff9128c8be47d7c5021 (diff) | |
download | chromium_src-bc3847a1ba39db7adec20aa9e0565f6e868e8480.zip chromium_src-bc3847a1ba39db7adec20aa9e0565f6e868e8480.tar.gz chromium_src-bc3847a1ba39db7adec20aa9e0565f6e868e8480.tar.bz2 |
cc: Switch to Chromium DCHECKs LOGs
We can't compile-guard code and use DCHECK since it can be enabled at runtime.
This removes all compile-time guards, and makes use of DCHECK instead of ASSERT. We use DCHECK_IS_ON() to early out and avoid extra work just for DCHECK where possible as well.
This also replaces use of LOG_ERROR("Foo") with LOG(ERROR)<<"Foo";
R=enne,jamesr
Review URL: https://chromiumcodereview.appspot.com/11048044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162296 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/scheduler_test_common.h')
-rw-r--r-- | cc/test/scheduler_test_common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/test/scheduler_test_common.h b/cc/test/scheduler_test_common.h index 2f6660b..3b73d0d 100644 --- a/cc/test/scheduler_test_common.h +++ b/cc/test/scheduler_test_common.h @@ -46,7 +46,7 @@ public: bool hasPendingTask() const { return m_pendingTask; } void runPendingTask() { - ASSERT(m_pendingTask); + ASSERT_TRUE(m_pendingTask); OwnPtr<Task> task = m_pendingTask.release(); task->performTask(); } @@ -87,7 +87,7 @@ public: void tick() { - ASSERT(m_active); + ASSERT_TRUE(m_active); if (m_client) m_client->onTimerTick(); } |