diff options
Diffstat (limited to 'chromium/chromeos/components/string_matching/BUILD.gn')
-rw-r--r-- | chromium/chromeos/components/string_matching/BUILD.gn | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/chromium/chromeos/components/string_matching/BUILD.gn b/chromium/chromeos/components/string_matching/BUILD.gn new file mode 100644 index 00000000000..0080ca90102 --- /dev/null +++ b/chromium/chromeos/components/string_matching/BUILD.gn @@ -0,0 +1,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", + ] +} |