blob: 47f58691431293803dd15bd005085d777827fc8e [file] [log] [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/test/trace_test_utils.h"
#include "base/trace_event/trace_log.h"
#include "third_party/perfetto/include/perfetto/tracing/tracing.h"
namespace base::test {
TracingEnvironment::TracingEnvironment() {
trace_event::TraceLog::ResetForTesting();
}
TracingEnvironment::~TracingEnvironment() {
perfetto::Tracing::ResetForTesting();
}
} // namespace base::test