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

Unified Diff: components/BUILD.gn

Issue 398423007: Add initial components unit tests to GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « no previous file | components/auto_login_parser/BUILD.gn » ('j') | components/autofill/core/common/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/BUILD.gn
diff --git a/components/BUILD.gn b/components/BUILD.gn
index b2a9fdc75b6987cd011f9c1740819126015342c7..6d5203d3af8f85ce435a5e8c927c46e881d1445f 100644
--- a/components/BUILD.gn
+++ b/components/BUILD.gn
@@ -146,8 +146,32 @@ group("all_components") {
}
}
-# TODO(GYP) components_unittests
-#test("components_unittests") {
-## # Precache tests need these defines.
-# configs += [ "//components/precache/core:precache_config" ]
-#}
+# TODO(GYP) enable when it links.
+if (false) {
+
+# To add a unit test to this target, make a "unit_test" source_set in your
+# component (it's important to use a source_set instead of a static library or
+# no tests will run) and add a reference here. You can add more than one unit
+# test target if convenient.
+test("components_unittests") {
+ sources = [
+ "test/run_all_unittests.cc",
+ ]
+
+ # Add only ":unit_tests" dependencies here. If your tests have dependencies
+ # (this would at least include the component itself), they should be on the
+ # test source set and not here.
+ deps = [
+ "//components/auto_login_parser:unit_tests",
+ "//components/autocomplete:unit_tests",
+ "//components/autofill/content/browser:unit_tests",
+ "//components/autofill/core/browser:unit_tests",
+ "//components/autofill/core/common:unit_tests",
+ ]
+
+
+ # Precache tests need these defines.
+ #configs += [ "//components/precache/core:precache_config" ]
+}
+
+}
« no previous file with comments | « no previous file | components/auto_login_parser/BUILD.gn » ('j') | components/autofill/core/common/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698