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

Unified Diff: components/precache/core/BUILD.gn

Issue 1311623002: Add more components_unittests to GN build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 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/precache/content/BUILD.gn ('k') | components/proxy_config/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/precache/core/BUILD.gn
diff --git a/components/precache/core/BUILD.gn b/components/precache/core/BUILD.gn
index ca972252b7973fc99d19c119a48e6ad7e39aff99..4aa14d0ee1f54d779088ebcd63cfeb41913de05c 100644
--- a/components/precache/core/BUILD.gn
+++ b/components/precache/core/BUILD.gn
@@ -18,7 +18,7 @@ config("precache_config") {
]
}
-static_library("core") {
+source_set("core") {
sources = [
"precache_database.cc",
"precache_database.h",
@@ -47,3 +47,18 @@ proto_library("proto") {
"proto/precache.proto",
]
}
+
+source_set("unit_tests") {
+ testonly = true
+ sources = [
+ "precache_database_unittest.cc",
+ "precache_fetcher_unittest.cc",
+ "precache_url_table_unittest.cc",
+ ]
+ deps = [
+ ":core",
+ ":proto",
+ "//testing/gmock",
+ "//testing/gtest",
+ ]
+}
« no previous file with comments | « components/precache/content/BUILD.gn ('k') | components/proxy_config/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698