blob: 9c1cb6b7e420d2549c4a253ad885c203eb78c616 [file] [log] [blame]
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/features.gni")
import("//testing/libfuzzer/fuzzer_test.gni")
source_set("u2f") {
sources = [
"u2f_apdu_command.cc",
"u2f_apdu_command.h",
"u2f_apdu_response.cc",
"u2f_apdu_response.h",
"u2f_device.cc",
"u2f_device.h",
"u2f_message.cc",
"u2f_message.h",
"u2f_packet.cc",
"u2f_packet.h",
]
deps = [
"//base",
"//net",
]
}
fuzzer_test("u2f_apdu_fuzzer") {
sources = [
"u2f_apdu_fuzzer.cc",
]
deps = [
":u2f",
"//net",
]
libfuzzer_options = [ "max_len=65537" ]
}
fuzzer_test("u2f_message_fuzzer") {
sources = [
"u2f_message_fuzzer.cc",
]
deps = [
":u2f",
"//net",
]
libfuzzer_options = [ "max_len=2048" ]
}