1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
ash / metrics / task_switch_time_tracker_test_api.cc [blame]
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/metrics/task_switch_time_tracker_test_api.h"
#include "ash/metrics/task_switch_time_tracker.h"
namespace ash {
TaskSwitchTimeTrackerTestAPI::TaskSwitchTimeTrackerTestAPI(
const std::string& histogram_name) {
time_tracker_.reset(new TaskSwitchTimeTracker(histogram_name, &tick_clock_));
}
TaskSwitchTimeTrackerTestAPI::~TaskSwitchTimeTrackerTestAPI() {}
void TaskSwitchTimeTrackerTestAPI::Advance(base::TimeDelta time_delta) {
tick_clock_.Advance(time_delta);
}
bool TaskSwitchTimeTrackerTestAPI::HasLastActionTime() const {
return time_tracker_->HasLastActionTime();
}
} // namespace ash