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
55
56
57
58
59
60
61
62
|
# Copyright 2019 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")
assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos")
source_set("string_matching") {
sources = [
"fuzzy_tokenized_string_match.cc",
"fuzzy_tokenized_string_match.h",
"prefix_matcher.cc",
"prefix_matcher.h",
"sequence_matcher.cc",
"sequence_matcher.h",
"term_break_iterator.cc",
"term_break_iterator.h",
"tokenized_string.cc",
"tokenized_string.h",
"tokenized_string_char_iterator.cc",
"tokenized_string_char_iterator.h",
"tokenized_string_match.cc",
"tokenized_string_match.h",
]
deps = [
"//base:i18n",
"//cc",
]
public_deps = [
"//base",
"//ui/gfx",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"fuzzy_tokenized_string_match_unittest.cc",
"sequence_matcher_unittest.cc",
"term_break_iterator_unittest.cc",
"tokenized_string_char_iterator_unittest.cc",
"tokenized_string_match_unittest.cc",
"tokenized_string_unittest.cc",
]
deps = [
":string_matching",
"//testing/gtest",
]
}
fuzzer_test("tokenized_string_fuzzer") {
sources = [ "tokenized_string_fuzzer.cc" ]
deps = [
":string_matching",
"//base",
]
}
|