summaryrefslogtreecommitdiff
path: root/chromium/chromeos/components/string_matching/BUILD.gn
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-12 14:27:29 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-13 09:35:20 +0000
commitc30a6232df03e1efbd9f3b226777b07e087a1122 (patch)
treee992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/chromeos/components/string_matching/BUILD.gn
parent7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff)
downloadqtwebengine-chromium-85-based.tar.gz
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/chromeos/components/string_matching/BUILD.gn')
-rw-r--r--chromium/chromeos/components/string_matching/BUILD.gn62
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",
+ ]
+}