| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//testing/libfuzzer/fuzzer_test.gni") | 6 import("//testing/libfuzzer/fuzzer_test.gni") |
| 7 | 7 |
| 8 source_set("u2f") { | 8 source_set("u2f") { |
| 9 sources = [ | 9 sources = [ |
| 10 "u2f_apdu_command.cc", | 10 "u2f_apdu_command.cc", |
| 11 "u2f_apdu_command.h", | 11 "u2f_apdu_command.h", |
| 12 "u2f_apdu_response.cc", | 12 "u2f_apdu_response.cc", |
| 13 "u2f_apdu_response.h", | 13 "u2f_apdu_response.h", |
| 14 "u2f_device.cc", | 14 "u2f_device.cc", |
| 15 "u2f_device.h", | 15 "u2f_device.h", |
| 16 "u2f_hid_device.cc", |
| 17 "u2f_hid_device.h", |
| 16 "u2f_message.cc", | 18 "u2f_message.cc", |
| 17 "u2f_message.h", | 19 "u2f_message.h", |
| 18 "u2f_packet.cc", | 20 "u2f_packet.cc", |
| 19 "u2f_packet.h", | 21 "u2f_packet.h", |
| 20 ] | 22 ] |
| 21 | 23 |
| 22 deps = [ | 24 deps = [ |
| 23 "//base", | 25 "//base", |
| 26 "//device/base", |
| 27 "//device/hid", |
| 24 "//net", | 28 "//net", |
| 25 ] | 29 ] |
| 26 } | 30 } |
| 27 | 31 |
| 28 fuzzer_test("u2f_apdu_fuzzer") { | 32 fuzzer_test("u2f_apdu_fuzzer") { |
| 29 sources = [ | 33 sources = [ |
| 30 "u2f_apdu_fuzzer.cc", | 34 "u2f_apdu_fuzzer.cc", |
| 31 ] | 35 ] |
| 32 deps = [ | 36 deps = [ |
| 33 ":u2f", | 37 ":u2f", |
| 34 "//net", | 38 "//net", |
| 35 ] | 39 ] |
| 36 libfuzzer_options = [ "max_len=65537" ] | 40 libfuzzer_options = [ "max_len=65537" ] |
| 37 } | 41 } |
| 38 | 42 |
| 39 fuzzer_test("u2f_message_fuzzer") { | 43 fuzzer_test("u2f_message_fuzzer") { |
| 40 sources = [ | 44 sources = [ |
| 41 "u2f_message_fuzzer.cc", | 45 "u2f_message_fuzzer.cc", |
| 42 ] | 46 ] |
| 43 deps = [ | 47 deps = [ |
| 44 ":u2f", | 48 ":u2f", |
| 45 "//net", | 49 "//net", |
| 46 ] | 50 ] |
| 47 libfuzzer_options = [ "max_len=2048" ] | 51 libfuzzer_options = [ "max_len=2048" ] |
| 48 } | 52 } |
| OLD | NEW |