#include "content/browser/tracing/tracing_scenario.h"
#include <memory>
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "base/task/thread_pool.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/test_proto_loader.h"
#include "base/trace_event/named_trigger.h"
#include "content/public/browser/background_tracing_manager.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
namespace {
const char* kDefaultNestedConfig = …;
const char* kDefaultConfig = …;
_;
class TestTracingScenarioDelegate : public TracingScenario::Delegate { … };
class TestNestedTracingScenarioDelegate
: public NestedTracingScenario::Delegate { … };
class TestTracingSession : public perfetto::TracingSession { … };
class TracingScenarioForTesting : public TracingScenario { … };
class NestedTracingScenarioForTesting : public NestedTracingScenario { … };
perfetto::protos::gen::ScenarioConfig ParseScenarioConfigFromText(
const std::string& proto_text) { … }
perfetto::protos::gen::NestedScenarioConfig ParseNestedScenarioConfigFromText(
const std::string& proto_text) { … }
class TracingScenarioTest : public testing::Test { … };
class NestedTracingScenarioTest : public testing::Test { … };
}
TEST_F(TracingScenarioTest, Init) { … }
TEST_F(TracingScenarioTest, Disabled) { … }
TEST_F(TracingScenarioTest, StartStop) { … }
TEST_F(TracingScenarioTest, NestedStartStop) { … }
TEST_F(TracingScenarioTest, StartFail) { … }
TEST_F(TracingScenarioTest, SpuriousStop) { … }
TEST_F(TracingScenarioTest, SetupStop) { … }
TEST_F(TracingScenarioTest, SetupUpload) { … }
TEST_F(TracingScenarioTest, SetupStartStop) { … }
TEST_F(TracingScenarioTest, SetupNestedStartStop) { … }
TEST_F(TracingScenarioTest, Abort) { … }
TEST_F(TracingScenarioTest, Upload) { … }
TEST_F(TracingScenarioTest, StopUpload) { … }
TEST_F(TracingScenarioTest, NestedUpload) { … }
TEST_F(NestedTracingScenarioTest, Disabled) { … }
TEST_F(NestedTracingScenarioTest, StartStop) { … }
TEST_F(NestedTracingScenarioTest, Upload) { … }
TEST_F(NestedTracingScenarioTest, StopUpload) { … }
}