chromium/components/attribution_reporting/aggregatable_utils_unittest.cc

// Copyright 2024 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/attribution_reporting/aggregatable_utils.h"

#include <math.h>

#include <optional>

#include "base/time/time.h"
#include "components/attribution_reporting/aggregatable_filtering_id_max_bytes.h"
#include "components/attribution_reporting/aggregatable_trigger_config.h"
#include "components/attribution_reporting/privacy_math.h"
#include "components/attribution_reporting/source_registration_time_config.mojom.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace attribution_reporting {
namespace {

SourceRegistrationTimeConfig;

IsEmpty;
SizeIs;
UnorderedElementsAre;
UnorderedElementsAreArray;

const AggregatableFilteringIdsMaxBytes kFilteringIdMaxBytes;

TEST(AggregatableUtilsTest, RoundDownToWholeDaySinceUnixEpoch) {}

TEST(AggregatableUtilsTest,
     GetNullAggregatableReports_IncludeSourceRegistrationTime) {}

TEST(AggregatableUtilsTest,
     GetNullAggregatableReports_ExcludeSourceRegistrationTime) {}

TEST(AggregatableUtilsTest, GetNullAggregatableReports_RoundedTime) {}

TEST(AggregatableUtilsTest, GetNullAggregatableReportsUnconditionally) {}

int GetNumLookbackDays(SourceRegistrationTimeConfig config) {}

struct NullReportsTestCase {};

const NullReportsTestCase kNullReportsTestCases[] =;

class AggregatableUtilsNullReportsTest
    : public testing::Test,
      public testing::WithParamInterface<NullReportsTestCase> {};

TEST_P(AggregatableUtilsNullReportsTest, ExpectedDistribution) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace
}  // namespace attribution_reporting