Index: components/url_matcher/BUILD.gn |
diff --git a/components/url_matcher/BUILD.gn b/components/url_matcher/BUILD.gn |
index 7df189b501f1eba0512ffcc9890787ab42b7287d..9ba616fb81276bc4d7e93325188c8b45f8214bb6 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", |
+ ] |
+} |