| // 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 "base/command_line.h" |
| #include "base/i18n/icu_util.h" |
| #include "components/attribution_reporting/os_registration.h" |
| base::CommandLine::Init(0, nullptr); |
| base::i18n::InitializeICU(); |
| extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { |
| std::ignore = attribution_reporting::ParseOsSourceOrTriggerHeader( |
| std::string_view(reinterpret_cast<const char*>(data), size)); |