Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Unified Diff: components/url_matcher/BUILD.gn

Issue 1311623002: Add more components_unittests to GN build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/translate/core/language_detection/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
+ ]
+}
« no previous file with comments | « components/translate/core/language_detection/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698