#include "services/tracing/public/cpp/background_tracing/background_tracing_agent_impl.h"
#include <optional>
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/task/thread_pool.h"
#include "base/metrics/histogram_macros.h"
#include "base/test/task_environment.h"
#include "mojo/public/cpp/bindings/unique_receiver_set.h"
#include "services/tracing/public/cpp/background_tracing/background_tracing_agent_provider_impl.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace tracing {
class BackgroundTracingAgentClientRecorder
: public mojom::BackgroundTracingAgentClient { … };
class BackgroundTracingAgentImplTest : public testing::Test { … };
TEST_F(BackgroundTracingAgentImplTest, TestInitialize) { … }
TEST_F(BackgroundTracingAgentImplTest, TestHistogramDoesNotTrigger) { … }
TEST_F(BackgroundTracingAgentImplTest, TestHistogramTriggers_ExistingSample) { … }
TEST_F(BackgroundTracingAgentImplTest, TestHistogramTriggers_SameThread) { … }
TEST_F(BackgroundTracingAgentImplTest, TestHistogramTriggers_CrossThread) { … }
}