BUILD.gn 718 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright 2018 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//testing/libfuzzer/fuzzer_test.gni")
  5. component("apdu") {
  6. sources = [
  7. "apdu_command.cc",
  8. "apdu_command.h",
  9. "apdu_response.cc",
  10. "apdu_response.h",
  11. ]
  12. defines = [ "IS_APDU_IMPL" ]
  13. deps = [ "//base" ]
  14. }
  15. source_set("unit_tests") {
  16. testonly = true
  17. sources = [ "apdu_unittest.cc" ]
  18. deps = [
  19. ":apdu",
  20. "//base",
  21. "//testing/gmock",
  22. "//testing/gtest",
  23. ]
  24. }
  25. fuzzer_test("apdu_fuzzer") {
  26. sources = [ "apdu_fuzzer.cc" ]
  27. deps = [
  28. ":apdu",
  29. "//base",
  30. ]
  31. libfuzzer_options = [ "max_len=65535" ]
  32. }