diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-02 00:41:12 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-02 00:41:12 +0000 |
commit | e150c038b4bc92ce5518688737d32bc5208fa250 (patch) | |
tree | 55049a108f68c9804276c4603f0f0c6c32c12589 /base/allocator | |
parent | 2a040cd88b04d101c2b1612c6c3c92cb6f68176b (diff) | |
download | chromium_src-e150c038b4bc92ce5518688737d32bc5208fa250.zip chromium_src-e150c038b4bc92ce5518688737d32bc5208fa250.tar.gz chromium_src-e150c038b4bc92ce5518688737d32bc5208fa250.tar.bz2 |
Reland r40289: "Add support for CHECK_* macros.""
Make sure DEFINE_CHECK_OP_IMPL isn't omitted for official builds.
Review URL: http://codereview.chromium.org/661325
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40327 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/allocator')
-rw-r--r-- | base/allocator/allocator_unittests.cc | 3 |
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(); } - |