summaryrefslogtreecommitdiffstats
path: root/base/allocator
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-01 19:52:56 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-01 19:52:56 +0000
commita1e16e05fb365ad8d29ad6ed95e46bacdaaf83fb (patch)
treed0c960c21c0f7d0bb8f8333a23d9babc91623a03 /base/allocator
parentecd9aa34054396f135981f369105af51dec02793 (diff)
downloadchromium_src-a1e16e05fb365ad8d29ad6ed95e46bacdaaf83fb.zip
chromium_src-a1e16e05fb365ad8d29ad6ed95e46bacdaaf83fb.tar.gz
chromium_src-a1e16e05fb365ad8d29ad6ed95e46bacdaaf83fb.tar.bz2
Add support for CHECK_* macros.
Convert a few places to make sure it works. Review URL: http://codereview.chromium.org/660221 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40289 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/allocator')
-rw-r--r--base/allocator/allocator_unittests.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/base/allocator/allocator_unittests.cc b/base/allocator/allocator_unittests.cc
index 919cfab..fdda081 100644
--- a/base/allocator/allocator_unittests.cc
+++ b/base/allocator/allocator_unittests.cc
@@ -402,7 +402,7 @@ TEST(Allocators, Realloc1) {
// The larger the start-size, the larger the non-reallocing delta.
for (int d = 0; d < s*2; ++d) {
void* new_p = realloc(p, start_sizes[s] + deltas[d]);
- CHECK(p == new_p); // realloc should not allocate new memory
+ CHECK_EQ(p, new_p); // realloc should not allocate new memory
}
// Test again, but this time reallocing smaller first.
for (int d = 0; d < s*2; ++d) {
@@ -487,4 +487,3 @@ int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
-