mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 00:06:09 +03:00
71 lines
1.6 KiB
Plaintext
71 lines
1.6 KiB
Plaintext
# 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.
|
|
|
|
static_library("url_pattern_index") {
|
|
sources = [
|
|
"closed_hash_map.h",
|
|
"copying_file_stream.cc",
|
|
"copying_file_stream.h",
|
|
"fuzzy_pattern_matching.cc",
|
|
"fuzzy_pattern_matching.h",
|
|
"ngram_extractor.h",
|
|
"string_splitter.h",
|
|
"uint64_hasher.h",
|
|
"unindexed_ruleset.cc",
|
|
"unindexed_ruleset.h",
|
|
"url_pattern.cc",
|
|
"url_pattern.h",
|
|
"url_pattern_index.cc",
|
|
"url_pattern_index.h",
|
|
]
|
|
|
|
public_deps = [
|
|
"//components/url_pattern_index/flat:url_pattern_index",
|
|
"//components/url_pattern_index/proto:url_pattern_index",
|
|
]
|
|
|
|
deps = [
|
|
"//base",
|
|
"//third_party/flatbuffers:flatbuffers",
|
|
"//third_party/protobuf:protobuf_lite",
|
|
"//url",
|
|
]
|
|
}
|
|
|
|
static_library("test_support") {
|
|
testonly = true
|
|
sources = [
|
|
"url_rule_test_support.cc",
|
|
"url_rule_test_support.h",
|
|
]
|
|
deps = [
|
|
":url_pattern_index",
|
|
"//base",
|
|
"//net",
|
|
"//third_party/protobuf:protobuf_lite",
|
|
"//url",
|
|
]
|
|
}
|
|
|
|
source_set("unit_tests") {
|
|
testonly = true
|
|
sources = [
|
|
"closed_hash_map_unittest.cc",
|
|
"fuzzy_pattern_matching_unittest.cc",
|
|
"ngram_extractor_unittest.cc",
|
|
"string_splitter_unittest.cc",
|
|
"unindexed_ruleset_unittest.cc",
|
|
"url_pattern_index_unittest.cc",
|
|
"url_pattern_unittest.cc",
|
|
]
|
|
deps = [
|
|
":test_support",
|
|
":url_pattern_index",
|
|
"//base",
|
|
"//testing/gtest",
|
|
"//third_party/protobuf:protobuf_lite",
|
|
"//url",
|
|
]
|
|
}
|