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

Unified Diff: base/process_util_unittest.cc

Issue 660118: Merge the LINUX_TC_MALLOC #define with the existing TC_MALLOC #define.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | « base/process_util_linux.cc ('k') | build/build_config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util_unittest.cc
===================================================================
--- base/process_util_unittest.cc (revision 39977)
+++ base/process_util_unittest.cc (working copy)
@@ -250,7 +250,7 @@
NOTREACHED();
file_handle_mapping_vector fd_mapping_vec;
- fd_mapping_vec.push_back(std::pair<int,int>(fds[1], kChildPipe));
+ fd_mapping_vec.push_back(std::pair<int, int>(fds[1], kChildPipe));
ProcessHandle handle = this->SpawnChild(L"ProcessUtilsLeakFDChildProcess",
fd_mapping_vec,
false);
@@ -408,11 +408,11 @@
// TODO(vandebo) make this work on Windows and Mac too.
#if defined(OS_LINUX)
-#if defined(LINUX_USE_TCMALLOC)
+#if defined(USE_TCMALLOC)
extern "C" {
int tc_set_new_mode(int mode);
}
-#endif // defined(LINUX_USE_TCMALLOC)
+#endif // defined(USE_TCMALLOC)
class OutOfMemoryTest : public testing::Test {
public:
@@ -427,13 +427,13 @@
// Must call EnableTerminationOnOutOfMemory() because that is called from
// chrome's main function and therefore hasn't been called yet.
EnableTerminationOnOutOfMemory();
-#if defined(LINUX_USE_TCMALLOC)
+#if defined(USE_TCMALLOC)
tc_set_new_mode(1);
}
virtual void TearDown() {
tc_set_new_mode(0);
-#endif // defined(LINUX_USE_TCMALLOC)
+#endif // defined(USE_TCMALLOC)
}
void* value_;
« no previous file with comments | « base/process_util_linux.cc ('k') | build/build_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698