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

Unified Diff: base/process/memory_unittest.cc

Issue 1683153002: Allocator cleanup: remove reundant tc_set_new_mode in ProcessMemoryTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/memory_unittest.cc
diff --git a/base/process/memory_unittest.cc b/base/process/memory_unittest.cc
index 6137c1c932d23ad8fa9ca481153ed4beb54a47bf..c4728c52371263dd6f731998761959c08407eda7 100644
--- a/base/process/memory_unittest.cc
+++ b/base/process/memory_unittest.cc
@@ -148,12 +148,6 @@ TEST(ProcessMemoryTest, MacTerminateOnHeapCorruption) {
!(defined(OS_WIN) && !defined(ALLOCATOR_SHIM)) && \
!defined(MEMORY_TOOL_REPLACES_ALLOCATOR)
-#if defined(USE_TCMALLOC)
-extern "C" {
-int tc_set_new_mode(int mode);
-}
-#endif // defined(USE_TCMALLOC)
-
namespace {
const char *kOomRegex = "Out of memory";
} // namespace
@@ -171,12 +165,6 @@ class OutOfMemoryTest : public testing::Test {
signed_test_size_(std::numeric_limits<ssize_t>::max()) {
}
-#if defined(USE_TCMALLOC)
- void SetUp() override { tc_set_new_mode(1); }
-
- void TearDown() override { tc_set_new_mode(0); }
-#endif // defined(USE_TCMALLOC)
-
protected:
void* value_;
size_t test_size_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698