diff options
Diffstat (limited to 'components/precache/core/BUILD.gn')
-rw-r--r-- | components/precache/core/BUILD.gn | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/components/precache/core/BUILD.gn b/components/precache/core/BUILD.gn index ca97225..4aa14d0 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", + ] +} |