#include "components/segmentation_platform/internal/signals/signal_filter_processor.h"
#include "base/metrics/metrics_hashes.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "components/segmentation_platform/internal/database/config_holder.h"
#include "components/segmentation_platform/internal/database/mock_signal_storage_config.h"
#include "components/segmentation_platform/internal/database/segment_info_database.h"
#include "components/segmentation_platform/internal/database/signal_database.h"
#include "components/segmentation_platform/internal/database/signal_storage_config.h"
#include "components/segmentation_platform/internal/database/storage_service.h"
#include "components/segmentation_platform/internal/database/test_segment_info_database.h"
#include "components/segmentation_platform/internal/execution/mock_model_provider.h"
#include "components/segmentation_platform/internal/mock_ukm_data_manager.h"
#include "components/segmentation_platform/internal/signals/histogram_signal_handler.h"
#include "components/segmentation_platform/internal/signals/history_service_observer.h"
#include "components/segmentation_platform/internal/signals/mock_histogram_signal_handler.h"
#include "components/segmentation_platform/internal/signals/mock_user_action_signal_handler.h"
#include "components/segmentation_platform/internal/signals/user_action_signal_handler.h"
#include "components/segmentation_platform/public/proto/aggregation.pb.h"
#include "components/segmentation_platform/public/proto/types.pb.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
Contains;
Invoke;
IsEmpty;
SaveArg;
namespace segmentation_platform {
namespace {
constexpr UkmEventHash TestEvent(uint64_t val) { … }
constexpr UkmMetricHash TestMetric(uint64_t val) { … }
}
class MockHistoryObserver : public HistoryServiceObserver { … };
class SignalFilterProcessorTest : public testing::Test { … };
TEST_F(SignalFilterProcessorTest, UserActionRegistrationFlow) { … }
TEST_F(SignalFilterProcessorTest, HistogramRegistrationFlow) { … }
TEST_F(SignalFilterProcessorTest, UkmMetricsConfig) { … }
TEST_F(SignalFilterProcessorTest, EnableMetrics) { … }
}