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

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: Put test data file move in separate CLs. 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
Index: components/component_updater/BUILD.gn
diff --git a/components/component_updater/BUILD.gn b/components/component_updater/BUILD.gn
index d57bbf4366c4340e9877233fa70abb28495e4fe4..8e2c8f23b043c77674f60fc603d120ce15b82265 100644
--- a/components/component_updater/BUILD.gn
+++ b/components/component_updater/BUILD.gn
@@ -50,3 +50,38 @@ source_set("component_updater") {
"//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",
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698