chromium/components/history_clusters/core/history_clusters_util_unittest.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.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "components/history_clusters/core/history_clusters_util.h"

#include "base/ranges/algorithm.h"
#include "base/strings/stringprintf.h"
#include "base/test/metrics/histogram_tester.h"
#include "components/history/core/browser/history_types.h"
#include "components/history_clusters/core/clustering_test_utils.h"
#include "components/history_clusters/core/config.h"
#include "components/history_clusters/core/history_clusters_service_test_api.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace history_clusters {
namespace {

ElementsAre;

TEST(HistoryClustersUtilTest, ComputeURLForDeduping) {}

TEST(HistoryClustersUtilTest, FilterClustersMatchingQuery) {}

TEST(HistoryClustersUtilTest, PromoteMatchingVisitsAboveNonMatchingVisits) {}

TEST(HistoryClustersUtilTest, SortClustersWithinBatchForQuery) {}

TEST(HistoryClustersUtilTest, CullVisitsThatShouldBeHidden) {}

TEST(HistoryClustersUtilTest, CoalesceRelatedSearches) {}

// Verifies crbug.com/1426657.
TEST(HistoryClustersUtilTest,
     CoalesceRelatedSearchesHandlesMultipleClustersTruncation) {}

TEST(HistoryClustersUtilTest, SortClusters) {}

TEST(HistoryClustersUtilTest, IsShownVisitCandidateZeroScore) {}

TEST(HistoryClustersUtilTest, IsShownVisitCandidateHidden) {}

TEST(HistoryClustersUtilTest, IsShownVisitCandidateNoTitle) {}

TEST(HistoryClustersUtilTest, IsShownVisitCandidate) {}

}  // namespace
}  // namespace history_clusters