summaryrefslogtreecommitdiffstats
path: root/components/url_matcher/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'components/url_matcher/BUILD.gn')
-rw-r--r--components/url_matcher/BUILD.gn17
1 files changed, 16 insertions, 1 deletions
diff --git a/components/url_matcher/BUILD.gn b/components/url_matcher/BUILD.gn
index 7df189b..9ba616f 100644
--- a/components/url_matcher/BUILD.gn
+++ b/components/url_matcher/BUILD.gn
@@ -23,7 +23,7 @@ component("url_matcher") {
defines = [ "URL_MATCHER_IMPLEMENTATION" ]
- deps = [
+ public_deps = [
"//base",
"//base/third_party/dynamic_annotations",
"//third_party/re2",
@@ -32,3 +32,18 @@ component("url_matcher") {
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
}
+
+source_set("unit_tests") {
+ testonly = true
+ sources = [
+ "regex_set_matcher_unittest.cc",
+ "string_pattern_unittest.cc",
+ "substring_set_matcher_unittest.cc",
+ "url_matcher_factory_unittest.cc",
+ "url_matcher_unittest.cc",
+ ]
+ deps = [
+ ":url_matcher",
+ "//testing/gtest",
+ ]
+}