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

Unified Diff: components/safe_browsing_db/BUILD.gn

Issue 1579403002: Move remote_db_manager into the safe_browsing_db component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Define a variable for safe_browsing_db_mobile_unittest_sources Created 4 years, 11 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/safe_browsing_db.gypi ('k') | components/safe_browsing_db/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/BUILD.gn
diff --git a/components/safe_browsing_db/BUILD.gn b/components/safe_browsing_db/BUILD.gn
index 513aef45159aad99c0af5a4937e83e31b819974c..5315e6eb6bee490af46e25c9e3e58c95056e22ab 100644
--- a/components/safe_browsing_db/BUILD.gn
+++ b/components/safe_browsing_db/BUILD.gn
@@ -10,7 +10,14 @@ proto_library("proto") {
]
}
-group("safe_browsing_db") {
+# GYP version: components/safe_browsing_db.gypi:safe_browsing_metadata_proto
+proto_library("metadata_proto") {
+ sources = [
+ "metadata.proto",
+ ]
+}
+
+group("safe_browsing_db_shared") {
deps = [
":database_manager",
":hit_report",
@@ -20,6 +27,21 @@ group("safe_browsing_db") {
]
}
+group("safe_browsing_db") {
+ deps = [
+ ":safe_browsing_db_shared",
+ ]
+}
+
+group("safe_browsing_db_mobile") {
+ deps = [
+ ":remote_database_manager",
+ ":safe_browsing_api_handler",
+ ":safe_browsing_api_handler_util",
+ ":safe_browsing_db_shared",
+ ]
+}
+
source_set("database_manager") {
sources = [
"database_manager.cc",
@@ -57,6 +79,45 @@ source_set("prefix_set") {
]
}
+source_set("remote_database_manager") {
+ sources = [
+ "remote_database_manager.cc",
+ "remote_database_manager.h",
+ ]
+ deps = [
+ ":database_manager",
+ ":safe_browsing_api_handler",
+ "//base:base",
+ "//components/variations",
+ "//content/public/browser",
+ "//url:url",
+ ]
+}
+
+source_set("safe_browsing_api_handler") {
+ sources = [
+ "safe_browsing_api_handler.cc",
+ "safe_browsing_api_handler.h",
+ ]
+ deps = [
+ ":util",
+ "//base:base",
+ "//url:url",
+ ]
+}
+
+source_set("safe_browsing_api_handler_util") {
+ sources = [
+ "safe_browsing_api_handler_util.cc",
+ "safe_browsing_api_handler_util.h",
+ ]
+ deps = [
+ ":metadata_proto",
+ ":util",
+ "//base:base",
+ ]
+}
+
source_set("util") {
sources = [
"util.cc",
@@ -102,3 +163,26 @@ source_set("unit_tests") {
cflags = [ "/wd4267" ] # Conversion from size_t to 'type'.
}
}
+
+source_set("unit_tests_mobile") {
+ testonly = true
+ sources = [
+ "remote_database_manager_unittest.cc",
+ "safe_browsing_api_handler_unittest.cc",
+ ]
+ deps = [
+ ":metadata_proto",
+ ":remote_database_manager",
+ ":safe_browsing_api_handler",
+ ":safe_browsing_api_handler_util",
+ ":util",
+ "//base",
+ "//components/variations",
+ "//testing/gtest",
+ "//url",
+ ]
+ if (is_win) {
+ # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
+ cflags = [ "/wd4267" ] # Conversion from size_t to 'type'.
+ }
+}
« no previous file with comments | « components/safe_browsing_db.gypi ('k') | components/safe_browsing_db/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698