summaryrefslogtreecommitdiffstats
path: root/base/allocator/allocator_unittests.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/allocator/allocator_unittests.cc')
-rw-r--r--base/allocator/allocator_unittests.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/allocator/allocator_unittests.cc b/base/allocator/allocator_unittests.cc
index d935cf9..d6556ce 100644
--- a/base/allocator/allocator_unittests.cc
+++ b/base/allocator/allocator_unittests.cc
@@ -398,16 +398,16 @@ TEST(Allocators, Realloc1) {
for (int s = 0; s < sizeof(start_sizes)/sizeof(*start_sizes); ++s) {
void* p = malloc(start_sizes[s]);
- CHECK(p);
+ ASSERT_TRUE(p);
// 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_EQ(p, new_p); // realloc should not allocate new memory
+ ASSERT_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) {
void* new_p = realloc(p, start_sizes[s] - deltas[d]);
- CHECK_EQ(p, new_p); // realloc should not allocate new memory
+ ASSERT_EQ(p, new_p); // realloc should not allocate new memory
}
free(p);
}