chromium/components/segmentation_platform/internal/database/ukm_database_test_utils.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/segmentation_platform/internal/database/ukm_database_test_utils.h"

#include "base/strings/string_number_conversions.h"
#include "components/segmentation_platform/internal/database/ukm_types.h"
#include "sql/database.h"
#include "sql/statement.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace segmentation_platform::test_util {

namespace {

UnorderedElementsAreArray;

UkmMetricsTable::MetricsRow GetMetricsRowWithQuery(sql::Statement& statement) {}

UmaMetricEntry GetUmaMetricsRowWithQuery(sql::Statement& statement) {}

}  // namespace

bool operator==(const UrlMatcher& row1, const UrlMatcher& row2) {}

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

void AssertUrlsInTable(sql::Database& db, const std::vector<UrlMatcher>& urls) {}

std::vector<UmaMetricEntry> GetUmaMetricsRowWithQuery(base::cstring_view query,
                                                      sql::Database& db) {}

std::vector<UmaMetricEntry> GetAllUmaMetrics(sql::Database& db) {}

void ExpectUmaRowIsEqual(const UmaMetricEntry& row1,
                         const UmaMetricEntry& row2) {}

void AssertRowsInUmaMetricsTable(sql::Database& db,
                                 const std::vector<UmaMetricEntry>& rows) {}

}  // namespace segmentation_platform::test_util