| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/memory/test_memory_monitor.h" | 5 #include "content/browser/memory/test_memory_monitor.h" |
| 6 | 6 |
| 7 namespace content { | 7 namespace content { |
| 8 | 8 |
| 9 TestMemoryMonitorDelegate::~TestMemoryMonitorDelegate() {} | 9 TestMemoryMonitorDelegate::~TestMemoryMonitorDelegate() {} |
| 10 | 10 |
| 11 void TestMemoryMonitorDelegate::GetSystemMemoryInfo( | 11 void TestMemoryMonitorDelegate::GetSystemMemoryInfo( |
| 12 base::SystemMemoryInfoKB* mem_info) { | 12 base::SystemMemoryInfoKB* mem_info) { |
| 13 *mem_info = mem_info_; | 13 *mem_info = mem_info_; |
| 14 ++calls_; | 14 ++calls_; |
| 15 } | 15 } |
| 16 | 16 |
| 17 bool TestMemoryMonitorDelegate::GetSystemMemoryPressure(int* mem_pressure) { |
| 18 *mem_pressure = mem_pressure_; |
| 19 ++calls_; |
| 20 return mem_pressure_valid_; |
| 21 } |
| 22 |
| 17 } // namespace content | 23 } // namespace content |
| OLD | NEW |