#ifndef COMPONENTS_SEGMENTATION_PLATFORM_INTERNAL_DATABASE_UKM_DATABASE_TEST_UTILS_H_
#define COMPONENTS_SEGMENTATION_PLATFORM_INTERNAL_DATABASE_UKM_DATABASE_TEST_UTILS_H_
#include "base/strings/cstring_view.h"
#include "components/segmentation_platform/internal/database/ukm_metrics_table.h"
#include "components/segmentation_platform/internal/database/ukm_types.h"
#include "url/gurl.h"
namespace segmentation_platform::test_util {
std::vector<UkmMetricsTable::MetricsRow> GetMetricsRowWithQuery(
base::cstring_view query,
sql::Database& db);
std::vector<UkmMetricsTable::MetricsRow> GetAllMetricsRows(sql::Database& db);
void AssertRowsInMetricsTable(
sql::Database& db,
const std::vector<UkmMetricsTable::MetricsRow>& rows);
void ExpectRowIsEqual(const UkmMetricsTable::MetricsRow& row1,
const UkmMetricsTable::MetricsRow& row2);
struct UrlMatcher { … };
void AssertUrlsInTable(sql::Database& db, const std::vector<UrlMatcher>& urls);
std::vector<UmaMetricEntry> GetAllUmaMetrics(sql::Database& db);
std::vector<UmaMetricEntry> GetUmaMetricsRowWithQuery(base::cstring_view query,
sql::Database& db);
void ExpectUmaRowIsEqual(const UmaMetricEntry& row1,
const UmaMetricEntry& row2);
void AssertRowsInUmaMetricsTable(sql::Database& db,
const std::vector<UmaMetricEntry>& rows);
}
#endif