chromium/base/trace_event/trace_config_unittest.cc

// Copyright 2015 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/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) {}

// Returns an string in which word1 and word2 are swapped. word1 and word2 must
// be non-overlapping substrings of the input string and word1 must be before
// word2.
std::string SwapWords(const std::string& in_str,
                      const std::string& word1,
                      const std::string& word2) {}

}  // namespace

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) {}

}  // namespace base::trace_event