#include "base/trace_event/trace_config.h"
#include <stddef.h>
#include <optional>
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/trace_event/memory_dump_manager.h"
#include "base/trace_event/trace_config_memory_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base::trace_event {
namespace {
const char kDefaultTraceConfigString[] = …;
const char kCustomTraceConfigString[] = …;
void CheckDefaultTraceConfigBehavior(const TraceConfig& tc) { … }
std::string SwapWords(const std::string& in_str,
const std::string& word1,
const std::string& word2) { … }
}
TEST(TraceConfigTest, TraceConfigFromValidLegacyFormat) { … }
TEST(TraceConfigTest, TraceConfigFromInvalidLegacyStrings) { … }
TEST(TraceConfigTest, ConstructDefaultTraceConfig) { … }
TEST(TraceConfigTest, EmptyAndAsteriskCategoryFilterString) { … }
TEST(TraceConfigTest, DisabledByDefaultCategoryFilterString) { … }
TEST(TraceConfigTest, TraceConfigFromDict) { … }
TEST(TraceConfigTest, TraceConfigFromValidString) { … }
TEST(TraceConfigTest, TraceConfigFromInvalidString) { … }
TEST(TraceConfigTest, MergingTraceConfigs) { … }
TEST(TraceConfigTest, IsCategoryGroupEnabled) { … }
TEST(TraceConfigTest, IsCategoryNameAllowed) { … }
TEST(TraceConfigTest, SetTraceOptionValues) { … }
TEST(TraceConfigTest, TraceConfigFromMemoryConfigString) { … }
TEST(TraceConfigTest, EmptyMemoryDumpConfigTest) { … }
TEST(TraceConfigTest, LegacyStringToMemoryDumpConfig) { … }
TEST(TraceConfigTest, SystraceEventsSerialization) { … }
TEST(TraceConfigTest, IsConfigEquivalent) { … }
}