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

Unified Diff: content/browser/memory/test_memory_monitor.cc

Issue 2360433002: Memory-monitor for Mac. (Closed)
Patch Set: rebased Created 4 years, 1 month 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 | « content/browser/memory/test_memory_monitor.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/memory/test_memory_monitor.cc
diff --git a/content/browser/memory/test_memory_monitor.cc b/content/browser/memory/test_memory_monitor.cc
index a9bf419a27694cff1a2128bbca1a9811f2b4aaf0..abb1c002f8ddd2e734299febec9a59fcae0900a7 100644
--- a/content/browser/memory/test_memory_monitor.cc
+++ b/content/browser/memory/test_memory_monitor.cc
@@ -14,4 +14,10 @@ void TestMemoryMonitorDelegate::GetSystemMemoryInfo(
++calls_;
}
+bool TestMemoryMonitorDelegate::GetSystemMemoryPressure(int* mem_pressure) {
+ *mem_pressure = mem_pressure_;
+ ++calls_;
+ return mem_pressure_valid_;
+}
+
} // namespace content
« no previous file with comments | « content/browser/memory/test_memory_monitor.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698