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

Unified Diff: components/memory_pressure/direct_memory_pressure_calculator_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
Index: components/memory_pressure/direct_memory_pressure_calculator_win_unittest.cc
diff --git a/components/memory_pressure/direct_memory_pressure_calculator_win_unittest.cc b/components/memory_pressure/direct_memory_pressure_calculator_win_unittest.cc
index c7c48e6f1998122b71bcb6dbc4d959f3bc601567..a8f0ec5aafceba34d08fdb66286d74b15037d462 100644
--- a/components/memory_pressure/direct_memory_pressure_calculator_win_unittest.cc
+++ b/components/memory_pressure/direct_memory_pressure_calculator_win_unittest.cc
@@ -59,8 +59,8 @@ class TestDirectMemoryPressureCalculator
// |total| is set in the constructor and not modified.
// Set the amount of free memory.
- mem_info_.free = phys_left_mb * kKBperMB;
- DCHECK_LT(mem_info_.free, mem_info_.total);
+ mem_info_.avail_phys = phys_left_mb * kKBperMB;
+ DCHECK_LT(mem_info_.avail_phys, mem_info_.total);
}
void SetNone() { SetMemoryFree(moderate_threshold_mb() + 1); }
« no previous file with comments | « components/memory_pressure/direct_memory_pressure_calculator_win.cc ('k') | content/browser/memory/memory_monitor_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698