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

Unified Diff: components/memory_pressure/direct_memory_pressure_calculator_win_unittest.cc

Issue 2558043007: Fix free memory calculation. (Closed)
Patch Set: Fix unittest compilation under Linuxes. 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..dea58851297c1a74b1105f27a07af210832492b8 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_.available = phys_left_mb * kKBperMB;
+ DCHECK_LT(mem_info_.available, mem_info_.total);
}
void SetNone() { SetMemoryFree(moderate_threshold_mb() + 1); }

Powered by Google App Engine
This is Rietveld 408576698