Commit 20d2671d authored by Max Moroz's avatar Max Moroz Committed by Commit Bot

[base] Use FuzzedDataProvider included in LLVM package.

Bug: 991200
Change-Id: Iee88e3a81057d509e18a2875a3070c5abc17c959
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1774303
Auto-Submit: Max Moroz <mmoroz@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#691207}
parent 585be79e
...@@ -17,10 +17,3 @@ include_rules = [ ...@@ -17,10 +17,3 @@ include_rules = [
# //base/util can use //base but not vice versa. # //base/util can use //base but not vice versa.
"-util", "-util",
] ]
specific_include_rules = {
# Dependencies specific for fuzz targets and other fuzzing-related code.
".*fuzz.*": [
"+third_party/libFuzzer/src/utils", # This contains FuzzedDataProvider.
],
}
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include <fuzzer/FuzzedDataProvider.h>
#include "base/macros.h" #include "base/macros.h"
#include "base/pickle.h" #include "base/pickle.h"
#include "third_party/libFuzzer/src/utils/FuzzedDataProvider.h"
namespace { namespace {
constexpr int kIterations = 16; constexpr int kIterations = 16;
......
...@@ -13,6 +13,3 @@ per-file BUILD.gn=file://base/test/android/OWNERS ...@@ -13,6 +13,3 @@ per-file BUILD.gn=file://base/test/android/OWNERS
# Linux fontconfig changes # Linux fontconfig changes
per-file *fontconfig*=file://base/nix/OWNERS per-file *fontconfig*=file://base/nix/OWNERS
# FuzzedDataProvider helper class.
per-file *fuzzed_data_provider*=file://testing/libfuzzer/OWNERS
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment