#include "chrome/browser/task_manager/test_task_manager.h"
#include "base/timer/mock_timer.h"
namespace task_manager {
TestTaskManager::TestTaskManager()
: … { … }
TestTaskManager::~TestTaskManager() { … }
void TestTaskManager::ActivateTask(TaskId task_id) { … }
bool TestTaskManager::IsTaskKillable(TaskId task_id) { … }
void TestTaskManager::KillTask(TaskId task_id) { … }
double TestTaskManager::GetPlatformIndependentCPUUsage(TaskId task_id) const { … }
base::Time TestTaskManager::GetStartTime(TaskId task_id) const { … }
base::TimeDelta TestTaskManager::GetCpuTime(TaskId task_id) const { … }
int64_t TestTaskManager::GetMemoryFootprintUsage(TaskId task_id) const { … }
int64_t TestTaskManager::GetSwappedMemoryUsage(TaskId task_id) const { … }
int64_t TestTaskManager::GetGpuMemoryUsage(TaskId task_id,
bool* has_duplicates) const { … }
int TestTaskManager::GetIdleWakeupsPerSecond(TaskId task_id) const { … }
int TestTaskManager::GetHardFaultsPerSecond(TaskId task_id) const { … }
int TestTaskManager::GetNaClDebugStubPort(TaskId task_id) const { … }
void TestTaskManager::GetGDIHandles(TaskId task_id,
int64_t* current,
int64_t* peak) const { … }
void TestTaskManager::GetUSERHandles(TaskId task_id,
int64_t* current,
int64_t* peak) const { … }
int TestTaskManager::GetOpenFdCount(TaskId task_id) const { … }
bool TestTaskManager::IsTaskOnBackgroundedProcess(TaskId task_id) const { … }
const std::u16string& TestTaskManager::GetTitle(TaskId task_id) const { … }
std::u16string TestTaskManager::GetProfileName(TaskId task_id) const { … }
const gfx::ImageSkia& TestTaskManager::GetIcon(TaskId task_id) const { … }
const base::ProcessHandle& TestTaskManager::GetProcessHandle(
TaskId task_id) const { … }
const base::ProcessId& TestTaskManager::GetProcessId(TaskId task_id) const { … }
Task::Type TestTaskManager::GetType(TaskId task_id) const { … }
SessionID TestTaskManager::GetTabId(TaskId task_id) const { … }
int TestTaskManager::GetChildProcessUniqueId(TaskId task_id) const { … }
void TestTaskManager::GetTerminationStatus(TaskId task_id,
base::TerminationStatus* out_status,
int* out_error_code) const { … }
int64_t TestTaskManager::GetNetworkUsage(TaskId task_id) const { … }
int64_t TestTaskManager::GetProcessTotalNetworkUsage(TaskId task_id) const { … }
int64_t TestTaskManager::GetCumulativeNetworkUsage(TaskId task_id) const { … }
int64_t TestTaskManager::GetCumulativeProcessTotalNetworkUsage(
TaskId task_id) const { … }
int64_t TestTaskManager::GetSqliteMemoryUsed(TaskId task_id) const { … }
bool TestTaskManager::GetV8Memory(TaskId task_id,
int64_t* allocated,
int64_t* used) const { … }
bool TestTaskManager::GetWebCacheStats(
TaskId task_id,
blink::WebCacheResourceTypeStats* stats) const { … }
int TestTaskManager::GetKeepaliveCount(TaskId task_id) const { … }
const TaskIdList& TestTaskManager::GetTaskIdsList() const { … }
TaskIdList TestTaskManager::GetIdsOfTasksSharingSameProcess(
TaskId task_id) const { … }
size_t TestTaskManager::GetNumberOfTasksOnSameProcess(TaskId task_id) const { … }
bool TestTaskManager::IsRunningInVM(TaskId task_id) const { … }
TaskId TestTaskManager::GetTaskIdForWebContents(
content::WebContents* web_contents) const { … }
base::TimeDelta TestTaskManager::GetRefreshTime() { … }
int64_t TestTaskManager::GetEnabledFlags() { … }
}