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

Unified Diff: components/memory_pressure/direct_memory_pressure_calculator_linux_unittest.cc

Issue 2181493002: Return unique_ptrs from base::ProcessMetrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove os_resource_win.* Created 4 years, 5 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_linux_unittest.cc
diff --git a/components/memory_pressure/direct_memory_pressure_calculator_linux_unittest.cc b/components/memory_pressure/direct_memory_pressure_calculator_linux_unittest.cc
index 52c922c72b56bf95df396a01f5b7bfb5468ebd8c..490ffc7c7d5ca57bbca6a52028c12791f5381433 100644
--- a/components/memory_pressure/direct_memory_pressure_calculator_linux_unittest.cc
+++ b/components/memory_pressure/direct_memory_pressure_calculator_linux_unittest.cc
@@ -4,14 +4,15 @@
#include "components/memory_pressure/direct_memory_pressure_calculator_linux.h"
+#include "base/process/process_metrics.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace memory_pressure {
namespace {
-static const int kKBperMB = 1024;
-static const int kTotalMemoryInMB = 4096;
+const int kKBperMB = 1024;
+const int kTotalMemoryInMB = 4096;
} // namespace
@@ -20,7 +21,7 @@ static const int kTotalMemoryInMB = 4096;
class TestDirectMemoryPressureCalculator
: public DirectMemoryPressureCalculator {
public:
- explicit TestDirectMemoryPressureCalculator()
+ TestDirectMemoryPressureCalculator()
: DirectMemoryPressureCalculator(20, 10) {
// The values passed to the MemoryPressureCalculator constructor are dummy
// values that are immediately overwritten by InferTresholds.

Powered by Google App Engine
This is Rietveld 408576698