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

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

Issue 406683004: Add more components tests to the GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/data_reduction_proxy/common/BUILD.gn ('k') | components/domain_reliability/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/core/BUILD.gn
diff --git a/components/dom_distiller/core/BUILD.gn b/components/dom_distiller/core/BUILD.gn
index da998ae28f706e3e813755c07765d8f93a21025f..aeef9927136b8896d7bce76f21e30583c4ad26c8 100644
--- a/components/dom_distiller/core/BUILD.gn
+++ b/components/dom_distiller/core/BUILD.gn
@@ -45,6 +45,7 @@ static_library("core") {
deps = [
"//base",
"//components/dom_distiller/core/proto",
+ "//components/leveldb_proto",
"//components/resources",
"//components/strings",
"//net",
@@ -53,7 +54,11 @@ static_library("core") {
"//third_party/dom_distiller_js/package/proto",
"//ui/base",
"//url",
- #'components.gyp:leveldb_proto', TODO(GYP)
+ ]
+
+ forward_dependent_configs_from = [
+ "//components/dom_distiller/core/proto",
+ "//third_party/dom_distiller_js/package/proto",
]
if (is_android) {
@@ -74,10 +79,32 @@ static_library("test_support") {
deps = [
":core",
- #'components.gyp:leveldb_proto_test_support', TODO(GYP)
+ "//components/leveldb_proto:test_support",
"//sync",
"//testing/gmock",
"//testing/gtest",
]
}
+source_set("unit_tests") {
+ sources = [
+ "article_entry_unittest.cc",
+ "distilled_content_store_unittest.cc",
+ "distilled_page_prefs_unittests.cc",
+ "distiller_unittest.cc",
+ "distiller_url_fetcher_unittest.cc",
+ "dom_distiller_model_unittest.cc",
+ "dom_distiller_service_unittest.cc",
+ "dom_distiller_store_unittest.cc",
+ "task_tracker_unittest.cc",
+ "url_utils_unittest.cc",
+ "viewer_unittest.cc",
+ ]
+
+ deps = [
+ ":core",
+ ":test_support",
+ "//testing/gmock",
+ "//testing/gtest",
+ ]
+}
« no previous file with comments | « components/data_reduction_proxy/common/BUILD.gn ('k') | components/domain_reliability/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698