summaryrefslogtreecommitdiffstats
path: root/components/web_cache
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2015-08-23 11:31:40 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-23 18:32:21 +0000
commitb4bb70f08420dadfd13e42658ae3caf180633778 (patch)
treec0002f645264eaf80c98c0c7959e6acf3550b9d7 /components/web_cache
parent82a6993b864314b676265a16e78b7fac9c21423f (diff)
downloadchromium_src-b4bb70f08420dadfd13e42658ae3caf180633778.zip
chromium_src-b4bb70f08420dadfd13e42658ae3caf180633778.tar.gz
chromium_src-b4bb70f08420dadfd13e42658ae3caf180633778.tar.bz2
Add more components tests to GN build.
visitedlink, query_parser, web_cache, autofill CQ_EXTRA_TRYBOTS=tryserver.chromium.mac:mac_chromium_gn_rel;tryserver.chromium.win:win8_chromium_gn_dbg TBR=-dpranke@chromium.org Reland of http://crrev.com/1303013005#ps40001 Review URL: https://codereview.chromium.org/1310133002 Cr-Commit-Position: refs/heads/master@{#345010}
Diffstat (limited to 'components/web_cache')
-rw-r--r--components/web_cache/browser/BUILD.gn16
-rw-r--r--components/web_cache/common/BUILD.gn3
-rw-r--r--components/web_cache/renderer/BUILD.gn3
3 files changed, 16 insertions, 6 deletions
diff --git a/components/web_cache/browser/BUILD.gn b/components/web_cache/browser/BUILD.gn
index e1d24d6..e64a2d5 100644
--- a/components/web_cache/browser/BUILD.gn
+++ b/components/web_cache/browser/BUILD.gn
@@ -2,8 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-static_library("browser") {
- output_name = "web_cache_browser"
+source_set("browser") {
sources = [
"web_cache_manager.cc",
"web_cache_manager.h",
@@ -19,3 +18,16 @@ static_library("browser") {
"//third_party/WebKit/public:blink",
]
}
+
+source_set("unit_tests") {
+ testonly = true
+ sources = [
+ "web_cache_manager_unittest.cc",
+ ]
+ deps = [
+ ":browser",
+ "//base",
+ "//content/test:test_support",
+ "//testing/gtest",
+ ]
+}
diff --git a/components/web_cache/common/BUILD.gn b/components/web_cache/common/BUILD.gn
index 5c7b2ef..d4b7ac7 100644
--- a/components/web_cache/common/BUILD.gn
+++ b/components/web_cache/common/BUILD.gn
@@ -2,8 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-static_library("common") {
- output_name = "web_cache_common"
+source_set("common") {
sources = [
"web_cache_message_generator.cc",
"web_cache_message_generator.h",
diff --git a/components/web_cache/renderer/BUILD.gn b/components/web_cache/renderer/BUILD.gn
index 94b4379..ccea625 100644
--- a/components/web_cache/renderer/BUILD.gn
+++ b/components/web_cache/renderer/BUILD.gn
@@ -2,8 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-static_library("renderer") {
- output_name = "web_cache_renderer"
+source_set("renderer") {
sources = [
"web_cache_memory_dump_provider.cc",
"web_cache_memory_dump_provider.h",