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

Unified Diff: components/component_updater/BUILD.gn

Issue 493953002: Componentize component_updater: Move a bunch of tests to component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/component_updater.gypi ('k') | components/component_updater/test/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/component_updater/BUILD.gn
diff --git a/components/component_updater/BUILD.gn b/components/component_updater/BUILD.gn
index d57bbf4366c4340e9877233fa70abb28495e4fe4..404a9ae8ad8dba99ade84ecd1811ad4daf3bdd37 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",
+ ]
+}
« no previous file with comments | « components/component_updater.gypi ('k') | components/component_updater/test/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698