forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.gn
54 lines (47 loc) · 962 Bytes
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright 2017 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("//testing/libfuzzer/fuzzer_test.gni")
component("cbor") {
sources = [
"constants.h",
"diagnostic_writer.cc",
"diagnostic_writer.h",
"reader.cc",
"reader.h",
"values.cc",
"values.h",
"writer.cc",
"writer.h",
]
defines = [ "CBOR_IMPLEMENTATION" ]
deps = [
"//base",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"diagnostic_writer_unittest.cc",
"reader_unittest.cc",
"values_unittest.cc",
"writer_unittest.cc",
]
deps = [
":cbor",
"//base",
"//testing/gmock",
"//testing/gtest",
]
}
fuzzer_test("reader_fuzzer") {
sources = [
"reader_fuzzer.cc",
]
deps = [
":cbor",
"//base",
]
seed_corpus = "reader_fuzzer_corpus/"
libfuzzer_options = [ "max_len=65535" ]
}