Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: base/allocator/tcmalloc_unittest.cc

Issue 1466413002: Update gtest to 786564fa4a3c, switch to googlemock in gtest Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « base/allocator/allocator_unittest.cc ('k') | base/android/application_status_listener_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698