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

Unified Diff: components/safe_browsing_db/BUILD.gn

Issue 2183433002: PVer4: RICE decode bytes to list of uint32 or 4-byte hash prefixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/RICE/Rice and use safe-math to check integer overflow Created 4 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 | « no previous file | 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 39bcb413d2f3ac84fa885294f9f88f67894b5b1f..8c0a94c96ee612e5108a811e073f2be48af7d654 100644
--- a/components/safe_browsing_db/BUILD.gn
+++ b/components/safe_browsing_db/BUILD.gn
@@ -232,6 +232,17 @@ source_set("v4_protocol_manager_util") {
]
}
+source_set("v4_rice") {
+ sources = [
+ "v4_rice.cc",
+ "v4_rice.h",
+ ]
+ deps = [
+ "//base",
+ "//third_party/protobuf:protobuf_lite",
+ ]
+}
+
source_set("v4_store") {
sources = [
"v4_store.cc",
@@ -243,6 +254,7 @@ source_set("v4_store") {
]
deps = [
":v4_protocol_manager_util",
+ ":v4_rice",
"//base",
]
}
@@ -271,6 +283,7 @@ source_set("unit_tests") {
"v4_database_unittest.cc",
"v4_get_hash_protocol_manager_unittest.cc",
"v4_protocol_manager_util_unittest.cc",
+ "v4_rice_unittest.cc",
"v4_store_unittest.cc",
"v4_update_protocol_manager_unittest.cc",
]
@@ -284,6 +297,7 @@ source_set("unit_tests") {
":v4_get_hash_protocol_manager",
":v4_local_database_manager",
":v4_protocol_manager_util",
+ ":v4_rice",
":v4_store",
":v4_store_proto",
":v4_update_protocol_manager",
« no previous file with comments | « no previous file | components/safe_browsing_db/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698