| 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", |
| 15 "u2f_device.h", |
| 14 "u2f_message.cc", | 16 "u2f_message.cc", |
| 15 "u2f_message.h", | 17 "u2f_message.h", |
| 16 "u2f_packet.cc", | 18 "u2f_packet.cc", |
| 17 "u2f_packet.h", | 19 "u2f_packet.h", |
| 20 "u2f_responses.cc", |
| 21 "u2f_responses.h", |
| 18 ] | 22 ] |
| 19 | 23 |
| 20 deps = [ | 24 deps = [ |
| 21 "//base", | 25 "//base", |
| 22 "//net", | 26 "//net", |
| 23 ] | 27 ] |
| 24 } | 28 } |
| 25 | 29 |
| 26 fuzzer_test("u2f_apdu_fuzzer") { | 30 fuzzer_test("u2f_apdu_fuzzer") { |
| 27 sources = [ | 31 sources = [ |
| 28 "u2f_apdu_fuzzer.cc", | 32 "u2f_apdu_fuzzer.cc", |
| 29 ] | 33 ] |
| 30 deps = [ | 34 deps = [ |
| 31 ":u2f", | 35 ":u2f", |
| 32 "//net", | 36 "//net", |
| 33 ] | 37 ] |
| 34 libfuzzer_options = [ "max_len=65537" ] | 38 libfuzzer_options = [ "max_len=65537" ] |
| 35 } | 39 } |
| 36 | 40 |
| 37 fuzzer_test("u2f_message_fuzzer") { | 41 fuzzer_test("u2f_message_fuzzer") { |
| 38 sources = [ | 42 sources = [ |
| 39 "u2f_message_fuzzer.cc", | 43 "u2f_message_fuzzer.cc", |
| 40 ] | 44 ] |
| 41 deps = [ | 45 deps = [ |
| 42 ":u2f", | 46 ":u2f", |
| 43 "//net", | 47 "//net", |
| 44 ] | 48 ] |
| 45 libfuzzer_options = [ "max_len=2048" ] | 49 libfuzzer_options = [ "max_len=2048" ] |
| 46 } | 50 } |
| OLD | NEW |