summaryrefslogtreecommitdiffstats
path: root/components/precache/content
diff options
context:
space:
mode:
authorBrett Wilson <brettw@chromium.org>2015-08-22 13:36:49 -0700
committerBrett Wilson <brettw@chromium.org>2015-08-22 20:39:20 +0000
commit817fec0d4f038f90cae45ed78fe71f22336c3c4a (patch)
tree509284cab926558de491cf314ed1451458cd1802 /components/precache/content
parent1ee3626cbd39116f57ede2a22d5acea9f0fbfc32 (diff)
downloadchromium_src-817fec0d4f038f90cae45ed78fe71f22336c3c4a.zip
chromium_src-817fec0d4f038f90cae45ed78fe71f22336c3c4a.tar.gz
chromium_src-817fec0d4f038f90cae45ed78fe71f22336c3c4a.tar.bz2
Add more components_unittests to GN build
This adds tests for: url matcher, precache, sync driver, serialization, proxy config, leveldb proto, error page, storage monitor, search provider logos, translate, json schema, guest view, dom distiller, network hints. CQ_EXTRA_TRYBOTS=tryserver.chromium.mac:mac_chromium_gn_rel TBR=dpranke@chromium.org Reland of issue 1303703004. TBR=dpranke@chromium.org Review URL: https://codereview.chromium.org/1311623002 . Cr-Commit-Position: refs/heads/master@{#344987}
Diffstat (limited to 'components/precache/content')
-rw-r--r--components/precache/content/BUILD.gn14
1 files changed, 13 insertions, 1 deletions
diff --git a/components/precache/content/BUILD.gn b/components/precache/content/BUILD.gn
index f3f7bd9..57ca5e2 100644
--- a/components/precache/content/BUILD.gn
+++ b/components/precache/content/BUILD.gn
@@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-static_library("content") {
+source_set("content") {
sources = [
"precache_manager.cc",
"precache_manager.h",
@@ -17,3 +17,15 @@ static_library("content") {
"//url",
]
}
+
+source_set("unit_tests") {
+ testonly = true
+ sources = [
+ "precache_manager_unittest.cc",
+ ]
+ deps = [
+ ":content",
+ "//testing/gmock",
+ "//testing/gtest",
+ ]
+}