blob: 0fcfe4b126856721056d1e5c68316e82183c1894 [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_hid_device.cc",
"u2f_hid_device.h",
"u2f_message.cc",
"u2f_message.h",
"u2f_packet.cc",
"u2f_packet.h",
"u2f_register.cc",
"u2f_register.h",
"u2f_request.cc",
"u2f_request.h",
"u2f_return_code.h",
"u2f_sign.cc",
"u2f_sign.h",
]
deps = [
"//base",
"//crypto",
"//device/base",
"//device/hid",
"//net",
]
}
source_set("mocks") {
testonly = true
sources = [
"mock_u2f_device.cc",
"mock_u2f_device.h",
]
deps = [
":u2f",
"//base",
"//testing/gmock",
]
}
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" ]
}