| 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_manager/test_task_manager.h" | 5 #include "chrome/browser/task_manager/test_task_manager.h" |
| 6 | 6 |
| 7 namespace task_manager { | 7 namespace task_manager { |
| 8 | 8 |
| 9 TestTaskManager::TestTaskManager() | 9 TestTaskManager::TestTaskManager() |
| 10 : handle_(base::kNullProcessHandle), | 10 : handle_(base::kNullProcessHandle), |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 return true; | 23 return true; |
| 24 } | 24 } |
| 25 | 25 |
| 26 void TestTaskManager::KillTask(TaskId task_id) { | 26 void TestTaskManager::KillTask(TaskId task_id) { |
| 27 } | 27 } |
| 28 | 28 |
| 29 double TestTaskManager::GetCpuUsage(TaskId task_id) const { | 29 double TestTaskManager::GetCpuUsage(TaskId task_id) const { |
| 30 return 0.0; | 30 return 0.0; |
| 31 } | 31 } |
| 32 | 32 |
| 33 base::Time TestTaskManager::GetStartTime(TaskId task_id) const { |
| 34 return base::Time(); |
| 35 } |
| 36 |
| 37 base::TimeDelta TestTaskManager::GetCpuTime(TaskId task_id) const { |
| 38 return base::TimeDelta(); |
| 39 } |
| 40 |
| 33 int64_t TestTaskManager::GetPhysicalMemoryUsage(TaskId task_id) const { | 41 int64_t TestTaskManager::GetPhysicalMemoryUsage(TaskId task_id) const { |
| 34 return -1; | 42 return -1; |
| 35 } | 43 } |
| 36 | 44 |
| 37 int64_t TestTaskManager::GetPrivateMemoryUsage(TaskId task_id) const { | 45 int64_t TestTaskManager::GetPrivateMemoryUsage(TaskId task_id) const { |
| 38 return -1; | 46 return -1; |
| 39 } | 47 } |
| 40 | 48 |
| 41 int64_t TestTaskManager::GetSharedMemoryUsage(TaskId task_id) const { | 49 int64_t TestTaskManager::GetSharedMemoryUsage(TaskId task_id) const { |
| 42 return -1; | 50 return -1; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 180 |
| 173 base::TimeDelta TestTaskManager::GetRefreshTime() { | 181 base::TimeDelta TestTaskManager::GetRefreshTime() { |
| 174 return GetCurrentRefreshTime(); | 182 return GetCurrentRefreshTime(); |
| 175 } | 183 } |
| 176 | 184 |
| 177 int64_t TestTaskManager::GetEnabledFlags() { | 185 int64_t TestTaskManager::GetEnabledFlags() { |
| 178 return enabled_resources_flags(); | 186 return enabled_resources_flags(); |
| 179 } | 187 } |
| 180 | 188 |
| 181 } // namespace task_manager | 189 } // namespace task_manager |
| OLD | NEW |