#include "base/test/metrics/histogram_variants_reader.h"
#include <map>
#include <optional>
#include <string>
#include "base/base_paths.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/libxml/chromium/xml_reader.h"
namespace base {
namespace {
std::optional<HistogramVariantsEntryMap> ParseVariantsFromHistogramsXml(
const std::string& variants_name,
XmlReader& reader) { … }
}
std::optional<HistogramVariantsEntryMap> ReadVariantsFromHistogramsXml(
const std::string& variants_name,
const std::string& subdirectory,
bool from_metadata) { … }
}