diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-18 19:16:14 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-18 19:16:14 +0000 |
commit | 0260b7a9400bf6ace7d8d16e2c8b45e9f851c615 (patch) | |
tree | 786f777ac0649f02a5adc971d7c051ede22f41c5 /components/BUILD.gn | |
parent | e8e29424bdefed82931b0126382db5eb25c581ce (diff) | |
download | chromium_src-0260b7a9400bf6ace7d8d16e2c8b45e9f851c615.zip chromium_src-0260b7a9400bf6ace7d8d16e2c8b45e9f851c615.tar.gz chromium_src-0260b7a9400bf6ace7d8d16e2c8b45e9f851c615.tar.bz2 |
Add initial components unit tests to GN build.
R=dalecurtis@chromium.org
Review URL: https://codereview.chromium.org/398423007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284178 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/BUILD.gn')
-rw-r--r-- | components/BUILD.gn | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/components/BUILD.gn b/components/BUILD.gn index b2a9fdc..6d5203d 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" ] +} + +} |