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

Unified Diff: base/memory/discardable_memory_unittest.cc

Issue 963233003: base: Remove DiscardableMemoryMach. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 9 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/memory/discardable_memory_mach.cc ('k') | base/memory/discardable_memory_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/discardable_memory_unittest.cc
diff --git a/base/memory/discardable_memory_unittest.cc b/base/memory/discardable_memory_unittest.cc
index 2bee010d547ab40561dc107376ed86275722f396..04555359f6fb0510c7c7f99d8b74eab0f48aab31 100644
--- a/base/memory/discardable_memory_unittest.cc
+++ b/base/memory/discardable_memory_unittest.cc
@@ -38,12 +38,12 @@ TEST_P(DiscardableMemoryTest, IsNamed) {
}
bool IsNativeType(DiscardableMemoryType type) {
- return
#if defined(OS_ANDROID)
// SHMEM is backed by native discardable memory on Android.
- type == DISCARDABLE_MEMORY_TYPE_SHMEM ||
+ return type == DISCARDABLE_MEMORY_TYPE_SHMEM;
+#else
+ return false;
#endif
- type == DISCARDABLE_MEMORY_TYPE_MACH;
}
TEST_P(DiscardableMemoryTest, SupportedNatively) {
« no previous file with comments | « base/memory/discardable_memory_mach.cc ('k') | base/memory/discardable_memory_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698