#include "base/test/metrics/histogram_enum_reader.h"
#include <optional>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/path_service.h"
#include "base/strings/string_number_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/libxml/chromium/xml_reader.h"
namespace base {
namespace {
std::optional<HistogramEnumEntryMap> ParseEnumFromHistogramsXml(
const std::string& enum_name,
XmlReader* reader) { … }
}
std::optional<HistogramEnumEntryMap> ReadEnumFromEnumsXml(
const std::string& enum_name,
const std::optional<std::string>& subdirectory) { … }
}