#ifdef UNSAFE_BUFFERS_BUILD
#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) { … }
TEST(HistoryClustersUtilTest,
CoalesceRelatedSearchesHandlesMultipleClustersTruncation) { … }
TEST(HistoryClustersUtilTest, SortClusters) { … }
TEST(HistoryClustersUtilTest, IsShownVisitCandidateZeroScore) { … }
TEST(HistoryClustersUtilTest, IsShownVisitCandidateHidden) { … }
TEST(HistoryClustersUtilTest, IsShownVisitCandidateNoTitle) { … }
TEST(HistoryClustersUtilTest, IsShownVisitCandidate) { … }
}
}