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

Unified Diff: base/memory/discardable_memory_unittest.cc

Issue 448173002: Re-land: base: Introduce an explicit call for reducing emulated discardable memory usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable EmulatedDiscardableMemoryDiscardedWhenWidgetsHidden with lsan Created 6 years, 4 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_manager_unittest.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 dc0e2cd21262b4d7da8dd3edb891b91bb8f2d5b7..516a96b5a4fa2576a6cb031877ddf7d7bff0cfac 100644
--- a/base/memory/discardable_memory_unittest.cc
+++ b/base/memory/discardable_memory_unittest.cc
@@ -6,7 +6,6 @@
#include <algorithm>
-#include "base/run_loop.h"
#include "testing/gtest/include/gtest/gtest.h"
#if defined(OS_ANDROID)
@@ -19,12 +18,8 @@ namespace {
class DiscardableMemoryTest
: public testing::TestWithParam<DiscardableMemoryType> {
public:
- DiscardableMemoryTest() : message_loop_(MessageLoop::TYPE_IO) {
- // Register memory pressure listeners now that we have a message loop.
- DiscardableMemory::RegisterMemoryPressureListeners();
- }
+ DiscardableMemoryTest() {}
virtual ~DiscardableMemoryTest() {
- DiscardableMemory::UnregisterMemoryPressureListeners();
}
protected:
@@ -32,9 +27,6 @@ class DiscardableMemoryTest
return DiscardableMemory::CreateLockedMemoryWithType(
GetParam(), size).Pass();
}
-
- private:
- MessageLoop message_loop_;
};
const size_t kSize = 1024;
« no previous file with comments | « base/memory/discardable_memory_manager_unittest.cc ('k') | base/memory/discardable_memory_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698