diff options
author | tommycli <tommycli@chromium.org> | 2014-08-26 16:31:32 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-26 23:32:28 +0000 |
commit | 0409b4df1414ee0fb3e7c1179a86324944f242e3 (patch) | |
tree | b947249a9bfbb1ce5c12b29be4c54bd08c2b9c6b /components/component_updater/BUILD.gn | |
parent | 94f5566e12eec6c323a06206af24d783645d295f (diff) | |
download | chromium_src-0409b4df1414ee0fb3e7c1179a86324944f242e3.zip chromium_src-0409b4df1414ee0fb3e7c1179a86324944f242e3.tar.gz chromium_src-0409b4df1414ee0fb3e7c1179a86324944f242e3.tar.bz2 |
Componentize component_updater: Move a bunch of tests to component.
BUG=371463
TBR=blundell
Review URL: https://codereview.chromium.org/493953002
Cr-Commit-Position: refs/heads/master@{#292026}
Diffstat (limited to 'components/component_updater/BUILD.gn')
-rw-r--r-- | components/component_updater/BUILD.gn | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/components/component_updater/BUILD.gn b/components/component_updater/BUILD.gn index d57bbf4..404a9ae 100644 --- a/components/component_updater/BUILD.gn +++ b/components/component_updater/BUILD.gn @@ -45,8 +45,43 @@ source_set("component_updater") { "//courgette:courgette_lib", "//crypto", "//third_party/libxml", - "//third_party/zlib", + "//third_party/zlib:zip", "//net", "//ui/base", ] } + +static_library("test_support") { + sources = [ + "test/test_configurator.cc", + "test/test_configurator.h", + "test/test_installer.cc", + "test/test_installer.h", + "test/url_request_post_interceptor.cc", + "test/url_request_post_interceptor.h", + ] + + deps = [ + ":component_updater", + "//testing/gtest", + "//testing/gmock", + ] +} + +source_set("unit_tests") { + sources = [ + "test/component_patcher_unittest.cc", + "test/component_updater_ping_manager_unittest.cc", + "test/crx_downloader_unittest.cc", + "test/update_checker_unittest.cc", + "test/update_response_unittest.cc", + ] + + deps = [ + ":component_updater", + ":test_support", + "//testing/gtest", + "//testing/gmock", + "//third_party/libxml", + ] +} |