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

Unified Diff: components/safe_browsing_db/BUILD.gn

Issue 2233103002: Move full hash caching logic to v4_get_hash_protocol_manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bring back the histogram to check if there were any hits in the response from the server Created 4 years, 3 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
Index: components/safe_browsing_db/BUILD.gn
diff --git a/components/safe_browsing_db/BUILD.gn b/components/safe_browsing_db/BUILD.gn
index f7f58f41ac82cce3c6058c0d727fafa6f7aaec6b..492bbf43e9204e1e92b61e8a725f0c82f59656c0 100644
--- a/components/safe_browsing_db/BUILD.gn
+++ b/components/safe_browsing_db/BUILD.gn
@@ -210,6 +210,7 @@ static_library("v4_local_database_manager") {
":hit_report",
":safebrowsing_proto",
":v4_database",
+ ":v4_get_hash_protocol_manager",
":v4_protocol_manager_util",
":v4_update_protocol_manager",
"//base",
@@ -275,6 +276,57 @@ static_library("v4_update_protocol_manager") {
]
}
+source_set("v4_database_unittest") {
+ testonly = true
+ sources = [
+ "v4_database_unittest.cc",
+ ]
+ deps = [
+ ":v4_database",
+ ":v4_store",
+ "//base",
+ "//base/test:test_support",
+ "//content/test:test_support",
+ "//testing/gtest",
+ ]
+}
+
+source_set("v4_get_hash_protocol_manager_unittest") {
+ testonly = true
+ sources = [
+ "v4_get_hash_protocol_manager_unittest.cc",
+ ]
+ deps = [
+ ":safebrowsing_proto",
+ ":util",
+ ":v4_database",
+ ":v4_get_hash_protocol_manager",
+ ":v4_local_database_manager",
+ "//base",
+ "//base/test:test_support",
+ "//net",
+ "//net:test_support",
+ "//testing/gtest",
+ ]
+}
+
+source_set("v4_local_database_manager_unittest") {
+ testonly = true
+ sources = [
+ "v4_local_database_manager_unittest.cc",
+ ]
+ deps = [
+ ":v4_database",
+ ":v4_local_database_manager",
+ "//base",
+ "//base/test:test_support",
+ "//content/test:test_support",
+ "//net",
+ "//net:test_support",
+ "//testing/gtest",
+ ]
+}
+
source_set("unit_tests") {
testonly = true
sources = [

Powered by Google App Engine
This is Rietveld 408576698