# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//testing/libfuzzer/fuzzer_test.gni")
import("//third_party/blink/renderer/core/core.gni")
blink_core_sources("url_pattern") {
sources = [
"url_pattern.cc",
"url_pattern.h",
"url_pattern_canon.cc",
"url_pattern_canon.h",
"url_pattern_component.cc",
"url_pattern_component.h",
]
public_deps = [
"//components/url_pattern",
"//third_party/blink/renderer/platform",
"//third_party/liburlpattern",
]
}
fuzzer_test("url_pattern_fuzzer") {
sources = [ "url_pattern_fuzzer.cc" ]
deps = [
"//third_party/blink/renderer/modules:modules",
"//third_party/blink/renderer/platform:blink_fuzzer_test_support",
]
seed_corpus = "fuzzer_seed_corpus"
libfuzzer_options = [ "max_len=4096" ]
}