| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 TaskId task_id) const { | 154 TaskId task_id) const { |
| 155 TaskIdList result; | 155 TaskIdList result; |
| 156 result.push_back(task_id); | 156 result.push_back(task_id); |
| 157 return result; | 157 return result; |
| 158 } | 158 } |
| 159 | 159 |
| 160 size_t TestTaskManager::GetNumberOfTasksOnSameProcess(TaskId task_id) const { | 160 size_t TestTaskManager::GetNumberOfTasksOnSameProcess(TaskId task_id) const { |
| 161 return 1; | 161 return 1; |
| 162 } | 162 } |
| 163 | 163 |
| 164 TaskId TestTaskManager::GetTaskIdForWebContents( |
| 165 content::WebContents* web_contents) const { |
| 166 return -1; |
| 167 } |
| 168 |
| 164 base::TimeDelta TestTaskManager::GetRefreshTime() { | 169 base::TimeDelta TestTaskManager::GetRefreshTime() { |
| 165 return GetCurrentRefreshTime(); | 170 return GetCurrentRefreshTime(); |
| 166 } | 171 } |
| 167 | 172 |
| 168 int64_t TestTaskManager::GetEnabledFlags() { | 173 int64_t TestTaskManager::GetEnabledFlags() { |
| 169 return enabled_resources_flags(); | 174 return enabled_resources_flags(); |
| 170 } | 175 } |
| 171 | 176 |
| 172 } // namespace task_management | 177 } // namespace task_management |
| OLD | NEW |