chromium/components/segmentation_platform/internal/signals/signal_filter_processor_unittest.cc

// Copyright 2021 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/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) {}

}  // namespace

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

}  // namespace segmentation_platform