#include "base/test/trace_test_utils.h"
#include "base/no_destructor.h"
#include "base/task/sequenced_task_runner.h"
#include "base/tracing/perfetto_platform.h"
#include "third_party/perfetto/include/perfetto/tracing/core/data_source_config.h"
namespace base {
namespace test {
namespace {
class RebindableTaskRunner : public base::SequencedTaskRunner { … };
RebindableTaskRunner::RebindableTaskRunner() = default;
RebindableTaskRunner::~RebindableTaskRunner() = default;
bool RebindableTaskRunner::PostDelayedTask(const base::Location& from_here,
base::OnceClosure task,
base::TimeDelta delay) { … }
bool RebindableTaskRunner::PostNonNestableDelayedTask(
const base::Location& from_here,
base::OnceClosure task,
base::TimeDelta delay) { … }
bool RebindableTaskRunner::RunsTasksInCurrentSequence() const { … }
RebindableTaskRunner* GetClientLibTaskRunner() { … }
}
TracingEnvironment::TracingEnvironment() { … }
TracingEnvironment::TracingEnvironment(
TaskEnvironment& task_environment,
scoped_refptr<SequencedTaskRunner> task_runner)
: … { … }
TracingEnvironment::~TracingEnvironment() { … }
perfetto::protos::gen::TraceConfig TracingEnvironment::GetDefaultTraceConfig() { … }
}
}