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/layer_tree_host_unittest.cc | |
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/layer_tree_host_unittest.cc')
-rw-r--r-- | cc/layer_tree_host_unittest.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cc/layer_tree_host_unittest.cc b/cc/layer_tree_host_unittest.cc index dcce06c..430e644 100644 --- a/cc/layer_tree_host_unittest.cc +++ b/cc/layer_tree_host_unittest.cc @@ -1429,7 +1429,7 @@ public: context->resetUsedTextures(); break; default: - ASSERT_NOT_REACHED(); + NOTREACHED(); break; } } @@ -1551,7 +1551,7 @@ public: context->resetUsedTextures(); break; default: - ASSERT_NOT_REACHED(); + NOTREACHED(); break; } } @@ -1596,7 +1596,7 @@ public: m_layerTreeHost->setViewportSize(IntSize(10, 20), IntSize(10, 20)); break; default: - ASSERT_NOT_REACHED(); + NOTREACHED(); break; } } @@ -2506,7 +2506,7 @@ public: virtual ~EvictTexturesTask() { } virtual void run() OVERRIDE { - ASSERT(m_test->m_implForEvictTextures); + DCHECK(m_test->m_implForEvictTextures); m_test->m_implForEvictTextures->releaseContentsTextures(); } @@ -2516,7 +2516,7 @@ public: void postEvictTextures() { - ASSERT(webThread()); + DCHECK(webThread()); webThread()->postTask(new EvictTexturesTask(this)); } @@ -2566,7 +2566,7 @@ public: endTest(); break; default: - ASSERT_NOT_REACHED(); + NOTREACHED(); break; } } @@ -2599,7 +2599,7 @@ public: postEvictTextures(); break; default: - ASSERT_NOT_REACHED(); + NOTREACHED(); break; } } @@ -2663,7 +2663,7 @@ public: void evictTexturesOnImplThread() { - ASSERT(m_implForEvictTextures); + DCHECK(m_implForEvictTextures); m_implForEvictTextures->releaseContentsTextures(); } |