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", |
+ ] |
+} |