chromium/content/browser/attribution_reporting/aggregatable_attribution_utils_unittest.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/browser/attribution_reporting/aggregatable_attribution_utils.h"

#include <stdint.h>

#include <optional>
#include <string>
#include <tuple>
#include <utility>
#include <vector>

#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "base/time/time.h"
#include "base/values.h"
#include "components/aggregation_service/aggregation_coordinator_utils.h"
#include "components/attribution_reporting/aggregatable_filtering_id_max_bytes.h"
#include "components/attribution_reporting/aggregatable_trigger_data.h"
#include "components/attribution_reporting/aggregatable_values.h"
#include "components/attribution_reporting/aggregation_keys.h"
#include "components/attribution_reporting/constants.h"
#include "components/attribution_reporting/features.h"
#include "components/attribution_reporting/filters.h"
#include "components/attribution_reporting/source_registration_error.mojom.h"
#include "components/attribution_reporting/source_type.mojom.h"
#include "components/attribution_reporting/suitable_origin.h"
#include "content/browser/aggregation_service/aggregatable_report.h"
#include "content/browser/aggregation_service/aggregation_service_features.h"
#include "content/browser/attribution_reporting/attribution_report.h"
#include "content/browser/attribution_reporting/attribution_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/abseil-cpp/absl/numeric/int128.h"
#include "third_party/blink/public/mojom/aggregation_service/aggregatable_report.mojom.h"

namespace content {

namespace {

AggregatableFilteringIdsMaxBytes;
AggregatableValues;
AggregatableValuesValue;
FilterConfig;
FilterPair;
kDefaultFilteringId;
SourceType;
AggregatableReportHistogramContribution;
ElementsAre;

}  // namespace

TEST(AggregatableAttributionUtilsTest, CreateAggregatableHistogram) {}

TEST(AggregatableAttributionUtilsTest,
     CreateAggregatableHistogram_ValuesFiltered) {}

TEST(AggregatableAttributionUtilsTest,
     NoTriggerData_FilteredPercentageNotRecorded) {}

TEST(AggregatableAttributionUtilsTest, RoundsSourceRegistrationTime) {}

TEST(AggregatableAttributionUtilsTest, AggregationCoordinatorSet) {}

TEST(AggregatableAttributionUtilsTest, AggregatableReportRequestForNullReport) {}

TEST(AggregatableAttributionUtilsTest,
     AggregatableReportRequestExcludingSourceRegistrationTime) {}

TEST(AggregatableAttributionUtilsTest, TotalBudgetMetrics) {}

TEST(AggregatableAttributionUtilsTest,
     AggregatableReportRequestWithFilteringIds) {}

TEST(AggregatableAttributionUtilsTest,
     AggregatableReportRequestWithFilteringIdsFeatureDisabled_UnsetInRequest) {}

}  // namespace content