#include "components/history_clusters/core/filter_cluster_processor.h"
#include <vector>
#include "base/test/metrics/histogram_tester.h"
#include "components/history_clusters/core/clustering_test_utils.h"
#include "components/history_clusters/core/config.h"
#include "components/history_clusters/core/history_clusters_types.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace history_clusters {
namespace {
ElementsAre;
std::vector<history::Cluster> GetTestClusters() { … }
class FilterClusterProcessorTest : public ::testing::Test { … };
TEST_F(FilterClusterProcessorTest,
ShouldShowOnProminentUiSurfacesIsSetIfFilterParamsConditionIsSet) { … }
TEST_F(FilterClusterProcessorTest, NoFunctionalFilter) { … }
TEST_F(FilterClusterProcessorTest, OnlyVisitsConstraint) { … }
TEST_F(FilterClusterProcessorTest, OnlyImageConstraint) { … }
TEST_F(FilterClusterProcessorTest, OnlyCategoryAllowlistConstraint) { … }
TEST_F(FilterClusterProcessorTest, OnlyCategoryBlocklistConstraint) { … }
TEST_F(FilterClusterProcessorTest, OnlySearchInitiated) { … }
TEST_F(FilterClusterProcessorTest, OnlyRelatedSearches) { … }
TEST_F(FilterClusterProcessorTest, OnlyShownOnProminentUiSurfacesNoEngagement) { … }
TEST_F(FilterClusterProcessorTest,
OnlyShownOnProminentUiSurfacesWithEngagement) { … }
TEST_F(FilterClusterProcessorTest, FullFilter) { … }
}
}