Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: chrome/browser/task_manager/test_task_manager.cc

Issue 2905403002: plumb network upload into the task manager (Closed)
Patch Set: fixed comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/task_manager/test_task_manager.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 base::TerminationStatus* out_status, 128 base::TerminationStatus* out_status,
129 int* out_error_code) const { 129 int* out_error_code) const {
130 DCHECK(out_status); 130 DCHECK(out_status);
131 DCHECK(out_error_code); 131 DCHECK(out_error_code);
132 132
133 *out_status = base::TERMINATION_STATUS_STILL_RUNNING; 133 *out_status = base::TERMINATION_STATUS_STILL_RUNNING;
134 *out_error_code = 0; 134 *out_error_code = 0;
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 0;
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 0;
147 }
148
149 int64_t TestTaskManager::GetCumulativeProcessTotalNetworkUsage(
150 TaskId task_id) const {
151 return 0;
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
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
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/test_task_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698