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

Unified Diff: chrome/installer/setup/memory_unittest.cc

Issue 2907563002: allocator/Windows: delete the old non-unified allocator-shim (Closed)
Patch Set: remove comment Created 3 years, 7 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 | « chrome/installer/setup/BUILD.gn ('k') | media/base/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/setup/memory_unittest.cc
diff --git a/chrome/installer/setup/memory_unittest.cc b/chrome/installer/setup/memory_unittest.cc
index a7968e37dcbe5cc993a34bdc117c3c34ba4efd40..9230162e0373775a292d73d6cce147c6b75ee5db 100644
--- a/chrome/installer/setup/memory_unittest.cc
+++ b/chrome/installer/setup/memory_unittest.cc
@@ -6,6 +6,7 @@
#include <limits>
+#include "base/allocator/features.h"
#include "base/process/memory.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -13,7 +14,7 @@
#include "base/allocator/allocator_interception_mac.h"
#endif
-#if defined(ALLOCATOR_SHIM)
+#if BUILDFLAG(USE_ALLOCATOR_SHIM)
// Test that the allocator shim is in-place so that base::UncheckedMalloc works.
TEST(OutOfMemoryHandledTest, UncheckedMalloc) {
// Enable termination on OOM - just as setup.exe does at early initialization
@@ -40,4 +41,4 @@ TEST(OutOfMemoryHandledTest, UncheckedMalloc) {
base::allocator::UninterceptMallocZonesForTesting();
#endif
}
-#endif // ALLOCATOR_SHIM
+#endif // BUILDFLAG(USE_ALLOCATOR_SHIM)
« no previous file with comments | « chrome/installer/setup/BUILD.gn ('k') | media/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698