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

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

Issue 2558043007: Fix free memory calculation. (Closed)
Patch Set: Fix integer overflow in unittest. Created 3 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 | « content/browser/memory/memory_monitor_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/memory/memory_monitor_win_unittest.cc
diff --git a/content/browser/memory/memory_monitor_win_unittest.cc b/content/browser/memory/memory_monitor_win_unittest.cc
index 0251fdeb6efa5894a2a890e45a837f8c1967f26f..ea22ac3e6ee657c9376b4c70339fc1d03aee8dc2 100644
--- a/content/browser/memory/memory_monitor_win_unittest.cc
+++ b/content/browser/memory/memory_monitor_win_unittest.cc
@@ -17,7 +17,7 @@ class TestMemoryMonitorWinDelegate : public TestMemoryMonitorDelegate {
TestMemoryMonitorWinDelegate() {}
void SetFreeMemoryKB(int free_memory_kb) {
- mem_info_.free = free_memory_kb;
+ mem_info_.avail_phys = free_memory_kb;
}
private:
« no previous file with comments | « content/browser/memory/memory_monitor_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698