#include "components/segmentation_platform/internal/execution/processing/feature_aggregator_impl.h"
#include <cstdint>
#include <memory>
#include <optional>
#include <vector>
#include "base/metrics/metrics_hashes.h"
#include "base/test/simple_test_clock.h"
#include "base/time/time.h"
#include "components/segmentation_platform/internal/database/signal_database.h"
#include "components/segmentation_platform/public/proto/aggregation.pb.h"
#include "components/segmentation_platform/public/proto/types.pb.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace segmentation_platform::processing {
Sample;
Aggregation;
SignalType;
namespace {
constexpr base::TimeDelta kDefaultBucketDuration = …;
constexpr base::TimeDelta kOneSecond = …;
constexpr base::TimeDelta kTwoSeconds = …;
constexpr base::TimeDelta kThreeSeconds = …;
constexpr base::TimeDelta kFourSeconds = …;
constexpr uint64_t kDefaultBucketCount = …;
}
class FeatureAggregatorImplTest : public testing::Test { … };
TEST_F(FeatureAggregatorImplTest, CountAggregation) { … }
TEST_F(FeatureAggregatorImplTest, CountBooleanAggregation) { … }
TEST_F(FeatureAggregatorImplTest, BucketedCountAggregation) { … }
TEST_F(FeatureAggregatorImplTest, BucketedCountBooleanAggregation) { … }
TEST_F(FeatureAggregatorImplTest, BucketedCountBooleanTrueCountAggregation) { … }
TEST_F(FeatureAggregatorImplTest, BucketedCumulativeCountAggregation) { … }
TEST_F(FeatureAggregatorImplTest, SumAggregation) { … }
TEST_F(FeatureAggregatorImplTest, SumBooleanAggregation) { … }
TEST_F(FeatureAggregatorImplTest, BucketedSumAggregation) { … }
TEST_F(FeatureAggregatorImplTest, BucketedSumBooleanAggregation) { … }
TEST_F(FeatureAggregatorImplTest, BucketedSumBooleanTrueCountAggregation) { … }
TEST_F(FeatureAggregatorImplTest, BucketedCumulativeSumAggregation) { … }
TEST_F(FeatureAggregatorImplTest, LatestOrDefaultAggregation) { … }
TEST_F(FeatureAggregatorImplTest, BucketizationThresholds) { … }
TEST_F(FeatureAggregatorImplTest, BucketsOutOfBounds) { … }
}