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

Unified Diff: components/memory_coordinator/browser/test_memory_monitor.cc

Issue 2310193002: Added MemoryMonitor for Linux (with test) (Closed)
Patch Set: rebased Created 4 years, 3 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 | « components/memory_coordinator/browser/test_memory_monitor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/memory_coordinator/browser/test_memory_monitor.cc
diff --git a/components/memory_coordinator/browser/test_memory_monitor.cc b/components/memory_coordinator/browser/test_memory_monitor.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d17e768babe2a4d05de281f12c9c7c64c011991f
--- /dev/null
+++ b/components/memory_coordinator/browser/test_memory_monitor.cc
@@ -0,0 +1,17 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/memory_coordinator/browser/test_memory_monitor.h"
+
+namespace memory_coordinator {
+
+TestMemoryMonitorDelegate::~TestMemoryMonitorDelegate() {}
+
+void TestMemoryMonitorDelegate::GetSystemMemoryInfo(
+ base::SystemMemoryInfoKB* mem_info) {
+ *mem_info = mem_info_;
+ ++calls_;
+}
+
+} // namespace memory_coordinator
« no previous file with comments | « components/memory_coordinator/browser/test_memory_monitor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698