| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 #include <stddef.h> | 4 #include <stddef.h> |
| 5 #include <stdio.h> | 5 #include <stdio.h> |
| 6 | 6 |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/googletest/include/gtest/gtest.h" |
| 8 | 8 |
| 9 // TCMalloc header files. | 9 // TCMalloc header files. |
| 10 #include "common.h" // For TCMalloc constants like page size, etc. | 10 #include "common.h" // For TCMalloc constants like page size, etc. |
| 11 | 11 |
| 12 // TCMalloc implementation. | 12 // TCMalloc implementation. |
| 13 #include "debugallocation_shim.cc" | 13 #include "debugallocation_shim.cc" |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 void* TCMallocDoMallocForTest(size_t size) { | 17 void* TCMallocDoMallocForTest(size_t size) { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 ASSERT_DEATH(TCMallocDoFreeForTest(p); TCMallocDoFreeForTest(p), | 87 ASSERT_DEATH(TCMallocDoFreeForTest(p); TCMallocDoFreeForTest(p), |
| 88 "Attempt to double free"); | 88 "Attempt to double free"); |
| 89 } | 89 } |
| 90 } | 90 } |
| 91 #endif | 91 #endif |
| 92 | 92 |
| 93 int main(int argc, char **argv) { | 93 int main(int argc, char **argv) { |
| 94 testing::InitGoogleTest(&argc, argv); | 94 testing::InitGoogleTest(&argc, argv); |
| 95 return RUN_ALL_TESTS(); | 95 return RUN_ALL_TESTS(); |
| 96 } | 96 } |
| OLD | NEW |