[chromium] Fix incorrect usage of ASSERT in CCLayerTreeHostTest
https://bugs.webkit.org/show_bug.cgi?id=72026
ASSERT is stripped out in release builds so it shouldn't be used
in unit tests, except when calling debug-only functions like
isMainThread().
Replacing with ASSERT_TRUE (or EXPECT_TRUE in constructors, where
we can't return a value).
Patch by Iain Merrick <husky@google.com> on 2011-11-14
Reviewed by Tony Gentilcore.
* tests/CCLayerTreeHostTest.cpp:
(WTF::MockLayerTreeHost::MockLayerTreeHost):
(WTF::CCLayerTreeHostTest::onEndTest):
(WTF::CCLayerTreeHostTest::dispatchSetNeedsCommit):
(WTF::CCLayerTreeHostTest::dispatchSetNeedsRedraw):
(WTF::CCLayerTreeHostTest::runTest):
(WTF::CCLayerTreeHostTest::doBeginTest):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100127 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2 files changed