| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 int64_t TestTaskManager::GetSwappedMemoryUsage(TaskId task_id) const { | 45 int64_t TestTaskManager::GetSwappedMemoryUsage(TaskId task_id) const { |
| 46 return -1; | 46 return -1; |
| 47 } | 47 } |
| 48 | 48 |
| 49 int64_t TestTaskManager::GetGpuMemoryUsage(TaskId task_id, | 49 int64_t TestTaskManager::GetGpuMemoryUsage(TaskId task_id, |
| 50 bool* has_duplicates) const { | 50 bool* has_duplicates) const { |
| 51 return -1; | 51 return -1; |
| 52 } | 52 } |
| 53 | 53 |
| 54 base::MemoryState TestTaskManager::GetMemoryState(TaskId task_id) const { |
| 55 return base::MemoryState::UNKNOWN; |
| 56 } |
| 57 |
| 54 int TestTaskManager::GetIdleWakeupsPerSecond(TaskId task_id) const { | 58 int TestTaskManager::GetIdleWakeupsPerSecond(TaskId task_id) const { |
| 55 return -1; | 59 return -1; |
| 56 } | 60 } |
| 57 | 61 |
| 58 int TestTaskManager::GetNaClDebugStubPort(TaskId task_id) const { | 62 int TestTaskManager::GetNaClDebugStubPort(TaskId task_id) const { |
| 59 return -1; | 63 return -1; |
| 60 } | 64 } |
| 61 | 65 |
| 62 void TestTaskManager::GetGDIHandles(TaskId task_id, | 66 void TestTaskManager::GetGDIHandles(TaskId task_id, |
| 63 int64_t* current, | 67 int64_t* current, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 172 |
| 169 base::TimeDelta TestTaskManager::GetRefreshTime() { | 173 base::TimeDelta TestTaskManager::GetRefreshTime() { |
| 170 return GetCurrentRefreshTime(); | 174 return GetCurrentRefreshTime(); |
| 171 } | 175 } |
| 172 | 176 |
| 173 int64_t TestTaskManager::GetEnabledFlags() { | 177 int64_t TestTaskManager::GetEnabledFlags() { |
| 174 return enabled_resources_flags(); | 178 return enabled_resources_flags(); |
| 175 } | 179 } |
| 176 | 180 |
| 177 } // namespace task_manager | 181 } // namespace task_manager |
| OLD | NEW |