| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 int64_t* used) const { | 151 int64_t* used) const { |
| 152 return false; | 152 return false; |
| 153 } | 153 } |
| 154 | 154 |
| 155 bool TestTaskManager::GetWebCacheStats( | 155 bool TestTaskManager::GetWebCacheStats( |
| 156 TaskId task_id, | 156 TaskId task_id, |
| 157 blink::WebCache::ResourceTypeStats* stats) const { | 157 blink::WebCache::ResourceTypeStats* stats) const { |
| 158 return false; | 158 return false; |
| 159 } | 159 } |
| 160 | 160 |
| 161 int TestTaskManager::GetKeepaliveCount(TaskId task_id) const { |
| 162 return -1; |
| 163 } |
| 164 |
| 161 const TaskIdList& TestTaskManager::GetTaskIdsList() const { | 165 const TaskIdList& TestTaskManager::GetTaskIdsList() const { |
| 162 return ids_; | 166 return ids_; |
| 163 } | 167 } |
| 164 | 168 |
| 165 TaskIdList TestTaskManager::GetIdsOfTasksSharingSameProcess( | 169 TaskIdList TestTaskManager::GetIdsOfTasksSharingSameProcess( |
| 166 TaskId task_id) const { | 170 TaskId task_id) const { |
| 167 TaskIdList result; | 171 TaskIdList result; |
| 168 result.push_back(task_id); | 172 result.push_back(task_id); |
| 169 return result; | 173 return result; |
| 170 } | 174 } |
| 171 | 175 |
| 172 size_t TestTaskManager::GetNumberOfTasksOnSameProcess(TaskId task_id) const { | 176 size_t TestTaskManager::GetNumberOfTasksOnSameProcess(TaskId task_id) const { |
| 173 return 1; | 177 return 1; |
| 174 } | 178 } |
| 175 | 179 |
| 176 TaskId TestTaskManager::GetTaskIdForWebContents( | 180 TaskId TestTaskManager::GetTaskIdForWebContents( |
| 177 content::WebContents* web_contents) const { | 181 content::WebContents* web_contents) const { |
| 178 return -1; | 182 return -1; |
| 179 } | 183 } |
| 180 | 184 |
| 181 base::TimeDelta TestTaskManager::GetRefreshTime() { | 185 base::TimeDelta TestTaskManager::GetRefreshTime() { |
| 182 return GetCurrentRefreshTime(); | 186 return GetCurrentRefreshTime(); |
| 183 } | 187 } |
| 184 | 188 |
| 185 int64_t TestTaskManager::GetEnabledFlags() { | 189 int64_t TestTaskManager::GetEnabledFlags() { |
| 186 return enabled_resources_flags(); | 190 return enabled_resources_flags(); |
| 187 } | 191 } |
| 188 | 192 |
| 189 } // namespace task_manager | 193 } // namespace task_manager |
| OLD | NEW |