chromium/components/attribution_reporting/fuzz_utils.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/fuzz_utils.h"

#include <stddef.h>
#include <stdint.h>

#include <optional>
#include <string>
#include <utility>

#include "base/strings/string_util.h"
#include "base/time/time.h"
#include "components/attribution_reporting/constants.h"
#include "components/attribution_reporting/filters.h"
#include "components/attribution_reporting/max_event_level_reports.h"
#include "components/attribution_reporting/source_type.mojom-shared.h"
#include "third_party/fuzztest/src/fuzztest/fuzztest.h"

namespace attribution_reporting {

namespace {

fuzztest::Domain<std::string> AnyFilterString(std::optional<size_t> max_size) {}

template <typename KeyPred>
fuzztest::Domain<FilterValues> AnyFilterValues(
    const fuzztest::Domain<std::string>& string,
    KeyPred&& key_pred,
    std::optional<size_t> max_values_per_key,
    std::optional<size_t> max_keys) {}

fuzztest::Domain<base::TimeDelta> AnyLookbackWindow() {}

}  // namespace

fuzztest::Domain<mojom::SourceType> AnySourceType() {}

fuzztest::Domain<MaxEventLevelReports> AnyMaxEventLevelReports() {}

fuzztest::Domain<FilterData> AnyFilterData() {}

fuzztest::Domain<FilterConfig> AnyFilterConfig() {}

fuzztest::Domain<FiltersDisjunction> AnyFiltersDisjunction() {}

fuzztest::Domain<FilterPair> AnyFilterPair() {}

}  // namespace attribution_reporting