From d7a93adb9f63cb2e71cb017d51aa9af4d1f67b09 Mon Sep 17 00:00:00 2001 From: "kushi.p@gmail.com" Date: Fri, 22 Apr 2011 13:13:07 +0000 Subject: Update DCHECK() usage to utilize the more expressive debugging functions. BUG=58409 Review URL: http://codereview.chromium.org/6891008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82639 0039d316-1c4b-4281-b951-d872f2087c98 --- gpu/command_buffer/service/common_decoder_unittest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gpu/command_buffer/service') diff --git a/gpu/command_buffer/service/common_decoder_unittest.cc b/gpu/command_buffer/service/common_decoder_unittest.cc index 7099265..8f88398 100644 --- a/gpu/command_buffer/service/common_decoder_unittest.cc +++ b/gpu/command_buffer/service/common_decoder_unittest.cc @@ -95,14 +95,14 @@ class MockCommandBufferEngine : public CommandBufferEngine { template T GetSharedMemoryAs(uint32 offset) { - DCHECK(offset < kBufferSize); + DCHECK_LT(offset, kBufferSize); return reinterpret_cast(&buffer_[offset]); } int32 GetSharedMemoryOffset(const void* memory) { ptrdiff_t offset = reinterpret_cast(memory) - &buffer_[0]; DCHECK_GE(offset, 0); - DCHECK(static_cast(offset) < kBufferSize); + DCHECK_LT(static_cast(offset), kBufferSize); return static_cast(offset); } -- cgit v1.1