| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chrome/browser/task_management/test_task_manager.h" | 5 #include "chrome/browser/task_management/test_task_manager.h" |
| 6 | 6 |
| 7 namespace task_management { | 7 namespace task_management { |
| 8 | 8 |
| 9 TestTaskManager::TestTaskManager() | 9 TestTaskManager::TestTaskManager() |
| 10 : handle_(base::kNullProcessHandle), | 10 : handle_(base::kNullProcessHandle), |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 int64_t TestTaskManager::GetPrivateMemoryUsage(TaskId task_id) const { | 34 int64_t TestTaskManager::GetPrivateMemoryUsage(TaskId task_id) const { |
| 35 return -1; | 35 return -1; |
| 36 } | 36 } |
| 37 | 37 |
| 38 int64_t TestTaskManager::GetSharedMemoryUsage(TaskId task_id) const { | 38 int64_t TestTaskManager::GetSharedMemoryUsage(TaskId task_id) const { |
| 39 return -1; | 39 return -1; |
| 40 } | 40 } |
| 41 | 41 |
| 42 int64_t TestTaskManager::GetSwappedMemoryUsage(TaskId task_id) const { |
| 43 return -1; |
| 44 } |
| 45 |
| 42 int64_t TestTaskManager::GetGpuMemoryUsage(TaskId task_id, | 46 int64_t TestTaskManager::GetGpuMemoryUsage(TaskId task_id, |
| 43 bool* has_duplicates) const { | 47 bool* has_duplicates) const { |
| 44 return -1; | 48 return -1; |
| 45 } | 49 } |
| 46 | 50 |
| 47 int TestTaskManager::GetIdleWakeupsPerSecond(TaskId task_id) const { | 51 int TestTaskManager::GetIdleWakeupsPerSecond(TaskId task_id) const { |
| 48 return -1; | 52 return -1; |
| 49 } | 53 } |
| 50 | 54 |
| 51 int TestTaskManager::GetNaClDebugStubPort(TaskId task_id) const { | 55 int TestTaskManager::GetNaClDebugStubPort(TaskId task_id) const { |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 160 |
| 157 base::TimeDelta TestTaskManager::GetRefreshTime() { | 161 base::TimeDelta TestTaskManager::GetRefreshTime() { |
| 158 return GetCurrentRefreshTime(); | 162 return GetCurrentRefreshTime(); |
| 159 } | 163 } |
| 160 | 164 |
| 161 int64_t TestTaskManager::GetEnabledFlags() { | 165 int64_t TestTaskManager::GetEnabledFlags() { |
| 162 return enabled_resources_flags(); | 166 return enabled_resources_flags(); |
| 163 } | 167 } |
| 164 | 168 |
| 165 } // namespace task_management | 169 } // namespace task_management |
| OLD | NEW |