#include "components/system_cpu/pressure_test_support.h"
#include <utility>
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/scoped_refptr.h"
#include "base/sequence_checker.h"
#include "base/task/sequenced_task_runner.h"
namespace system_cpu {
FakeCpuProbe::FakeCpuProbe(base::TimeDelta response_delay)
: … { … }
FakeCpuProbe::~FakeCpuProbe() { … }
void FakeCpuProbe::Update(SampleCallback callback) { … }
base::WeakPtr<CpuProbe> FakeCpuProbe::GetWeakPtr() { … }
void FakeCpuProbe::SetLastSample(std::optional<CpuSample> sample) { … }
StreamingCpuProbe::StreamingCpuProbe(std::vector<CpuSample> samples,
base::OnceClosure callback)
: … { … }
StreamingCpuProbe::~StreamingCpuProbe() { … }
void StreamingCpuProbe::Update(SampleCallback callback) { … }
base::WeakPtr<CpuProbe> StreamingCpuProbe::GetWeakPtr() { … }
}