| Index: components/safe_browsing_db/BUILD.gn
|
| diff --git a/components/safe_browsing_db/BUILD.gn b/components/safe_browsing_db/BUILD.gn
|
| index 2eb7921a2cd8824a5e383eb3745bda85717efebb..91935c4ac03c56e2d380bef41734c0740341db5a 100644
|
| --- a/components/safe_browsing_db/BUILD.gn
|
| +++ b/components/safe_browsing_db/BUILD.gn
|
| @@ -51,6 +51,7 @@ source_set("database_manager") {
|
| ":hit_report",
|
| ":util",
|
| ":v4_get_hash_protocol_manager",
|
| + ":v4_update_protocol_manager",
|
| "//base:base",
|
| "//content/public/browser",
|
| "//content/public/common",
|
| @@ -123,6 +124,17 @@ source_set("safe_browsing_api_handler_util") {
|
| ]
|
| }
|
|
|
| +source_set("test_database_manager") {
|
| + sources = [
|
| + "test_database_manager.cc",
|
| + "test_database_manager.h",
|
| + ]
|
| + deps = [
|
| + ":database_manager",
|
| + "//base:base",
|
| + ]
|
| +}
|
| +
|
| source_set("util") {
|
| sources = [
|
| "util.cc",
|
| @@ -130,8 +142,10 @@ source_set("util") {
|
| ]
|
| deps = [
|
| "//base",
|
| + "//base:base",
|
| "//crypto",
|
| "//net",
|
| + "//url:url",
|
| ]
|
| if (is_win) {
|
| # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
|
| @@ -139,18 +153,6 @@ source_set("util") {
|
| }
|
| }
|
|
|
| -source_set("test_database_manager") {
|
| - sources = [
|
| - "test_database_manager.cc",
|
| - "test_database_manager.h",
|
| - ]
|
| - deps = [
|
| - ":database_manager",
|
| - "//base:base",
|
| - "//net",
|
| - ]
|
| -}
|
| -
|
| source_set("v4_get_hash_protocol_manager") {
|
| sources = [
|
| "v4_get_hash_protocol_manager.cc",
|
| @@ -173,36 +175,26 @@ source_set("v4_protocol_manager_util") {
|
| "v4_protocol_manager_util.cc",
|
| "v4_protocol_manager_util.h",
|
| ]
|
| - deps = [
|
| - "//base",
|
| - "//net",
|
| - "//url:url",
|
| - ]
|
| -}
|
| -
|
| -source_set("v4_get_hash_protocol_manager") {
|
| - sources = [
|
| - "v4_get_hash_protocol_manager.cc",
|
| - "v4_get_hash_protocol_manager.h",
|
| - ]
|
| public_deps = [
|
| ":proto",
|
| ]
|
| deps = [
|
| - ":util",
|
| - ":v4_protocol_manager_util",
|
| + ":proto",
|
| "//base",
|
| "//net",
|
| "//url:url",
|
| ]
|
| }
|
|
|
| -source_set("v4_protocol_manager_util") {
|
| +source_set("v4_update_protocol_manager") {
|
| sources = [
|
| - "v4_protocol_manager_util.cc",
|
| - "v4_protocol_manager_util.h",
|
| + "v4_update_protocol_manager.cc",
|
| + "v4_update_protocol_manager.h",
|
| ]
|
| deps = [
|
| + ":proto",
|
| + ":util",
|
| + ":v4_protocol_manager_util",
|
| "//base",
|
| "//net",
|
| "//url:url",
|
| @@ -216,6 +208,7 @@ source_set("unit_tests") {
|
| "util_unittest.cc",
|
| "v4_get_hash_protocol_manager_unittest.cc",
|
| "v4_protocol_manager_util_unittest.cc",
|
| + "v4_update_protocol_manager_unittest.cc",
|
| ]
|
| deps = [
|
| ":prefix_set",
|
| @@ -223,6 +216,7 @@ source_set("unit_tests") {
|
| ":util",
|
| ":v4_get_hash_protocol_manager",
|
| ":v4_protocol_manager_util",
|
| + ":v4_update_protocol_manager",
|
| "//base",
|
| "//net",
|
| "//net:test_support",
|
|
|