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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
135 } | 135 } |
136 | 136 |
137 int64_t TestTaskManager::GetNetworkUsage(TaskId task_id) const { | 137 int64_t TestTaskManager::GetNetworkUsage(TaskId task_id) const { |
138 return -1; | 138 return -1; |
139 } | 139 } |
140 | 140 |
141 int64_t TestTaskManager::GetProcessTotalNetworkUsage(TaskId task_id) const { | 141 int64_t TestTaskManager::GetProcessTotalNetworkUsage(TaskId task_id) const { |
142 return -1; | 142 return -1; |
143 } | 143 } |
144 | 144 |
145 int64_t TestTaskManager::GetCumulativeNetworkUsage(TaskId task_id) const { | |
146 return -1; | |
147 } | |
148 | |
149 int64_t TestTaskManager::GetCumulativeProcessTotalNetworkUsage( | |
150 TaskId task_id) const { | |
151 return -1; | |
ncarter (slow)
2017/06/17 00:21:02
return 0;
(afaik the real implementation of this
cburn
2017/06/19 22:07:08
Done.
| |
152 } | |
153 | |
145 int64_t TestTaskManager::GetSqliteMemoryUsed(TaskId task_id) const { | 154 int64_t TestTaskManager::GetSqliteMemoryUsed(TaskId task_id) const { |
146 return -1; | 155 return -1; |
147 } | 156 } |
148 | 157 |
149 bool TestTaskManager::GetV8Memory(TaskId task_id, | 158 bool TestTaskManager::GetV8Memory(TaskId task_id, |
150 int64_t* allocated, | 159 int64_t* allocated, |
151 int64_t* used) const { | 160 int64_t* used) const { |
152 return false; | 161 return false; |
153 } | 162 } |
154 | 163 |
(...skipping 29 matching lines...) Expand all Loading... | |
184 | 193 |
185 base::TimeDelta TestTaskManager::GetRefreshTime() { | 194 base::TimeDelta TestTaskManager::GetRefreshTime() { |
186 return GetCurrentRefreshTime(); | 195 return GetCurrentRefreshTime(); |
187 } | 196 } |
188 | 197 |
189 int64_t TestTaskManager::GetEnabledFlags() { | 198 int64_t TestTaskManager::GetEnabledFlags() { |
190 return enabled_resources_flags(); | 199 return enabled_resources_flags(); |
191 } | 200 } |
192 | 201 |
193 } // namespace task_manager | 202 } // namespace task_manager |
OLD | NEW |