#include "components/keyed_service/core/dependency_graph.h"
#include <string_view>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "components/keyed_service/core/dependency_node.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/re2/src/re2/re2.h"
namespace {
class DependencyGraphTest : public testing::Test { … };
class DummyNode : public DependencyNode { … };
TEST_F(DependencyGraphTest, SingleCase) { … }
TEST_F(DependencyGraphTest, SimpleDependency) { … }
TEST_F(DependencyGraphTest, TwoChildrenOneParent) { … }
TEST_F(DependencyGraphTest, MConfiguration) { … }
TEST_F(DependencyGraphTest, DiamondConfiguration) { … }
std::string NodeNameProvider(const std::string& name, DependencyNode* node) { … }
bool IsValidDotId(std::string_view name) { … }
std::string_view LocateNodeNameInGraph(std::string_view graphstr) { … }
TEST_F(DependencyGraphTest, DumpAsGraphviz_Escaping) { … }
}