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

Side by Side 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, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/safe_browsing_db/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//third_party/protobuf/proto_library.gni") 5 import("//third_party/protobuf/proto_library.gni")
6 6
7 proto_library("safebrowsing_proto") { 7 proto_library("safebrowsing_proto") {
8 sources = [ 8 sources = [
9 "safebrowsing.proto", 9 "safebrowsing.proto",
10 ] 10 ]
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 "v4_protocol_manager_util.h", 225 "v4_protocol_manager_util.h",
226 ] 226 ]
227 deps = [ 227 deps = [
228 ":safebrowsing_proto", 228 ":safebrowsing_proto",
229 "//base", 229 "//base",
230 "//net", 230 "//net",
231 "//url:url", 231 "//url:url",
232 ] 232 ]
233 } 233 }
234 234
235 source_set("v4_rice") {
236 sources = [
237 "v4_rice.cc",
238 "v4_rice.h",
239 ]
240 deps = [
241 "//base",
242 "//third_party/protobuf:protobuf_lite",
243 ]
244 }
245
235 source_set("v4_store") { 246 source_set("v4_store") {
236 sources = [ 247 sources = [
237 "v4_store.cc", 248 "v4_store.cc",
238 "v4_store.h", 249 "v4_store.h",
239 ] 250 ]
240 public_deps = [ 251 public_deps = [
241 ":safebrowsing_proto", 252 ":safebrowsing_proto",
242 ":v4_store_proto", 253 ":v4_store_proto",
243 ] 254 ]
244 deps = [ 255 deps = [
245 ":v4_protocol_manager_util", 256 ":v4_protocol_manager_util",
257 ":v4_rice",
246 "//base", 258 "//base",
247 ] 259 ]
248 } 260 }
249 261
250 source_set("v4_update_protocol_manager") { 262 source_set("v4_update_protocol_manager") {
251 sources = [ 263 sources = [
252 "v4_update_protocol_manager.cc", 264 "v4_update_protocol_manager.cc",
253 "v4_update_protocol_manager.h", 265 "v4_update_protocol_manager.h",
254 ] 266 ]
255 deps = [ 267 deps = [
256 ":safebrowsing_proto", 268 ":safebrowsing_proto",
257 ":util", 269 ":util",
258 ":v4_protocol_manager_util", 270 ":v4_protocol_manager_util",
259 "//base", 271 "//base",
260 "//net", 272 "//net",
261 "//url:url", 273 "//url:url",
262 ] 274 ]
263 } 275 }
264 276
265 source_set("unit_tests") { 277 source_set("unit_tests") {
266 testonly = true 278 testonly = true
267 sources = [ 279 sources = [
268 "database_manager_unittest.cc", 280 "database_manager_unittest.cc",
269 "prefix_set_unittest.cc", 281 "prefix_set_unittest.cc",
270 "util_unittest.cc", 282 "util_unittest.cc",
271 "v4_database_unittest.cc", 283 "v4_database_unittest.cc",
272 "v4_get_hash_protocol_manager_unittest.cc", 284 "v4_get_hash_protocol_manager_unittest.cc",
273 "v4_protocol_manager_util_unittest.cc", 285 "v4_protocol_manager_util_unittest.cc",
286 "v4_rice_unittest.cc",
274 "v4_store_unittest.cc", 287 "v4_store_unittest.cc",
275 "v4_update_protocol_manager_unittest.cc", 288 "v4_update_protocol_manager_unittest.cc",
276 ] 289 ]
277 deps = [ 290 deps = [
278 ":database_manager", 291 ":database_manager",
279 ":prefix_set", 292 ":prefix_set",
280 ":safebrowsing_proto", 293 ":safebrowsing_proto",
281 ":test_database_manager", 294 ":test_database_manager",
282 ":util", 295 ":util",
283 ":v4_database", 296 ":v4_database",
284 ":v4_get_hash_protocol_manager", 297 ":v4_get_hash_protocol_manager",
285 ":v4_local_database_manager", 298 ":v4_local_database_manager",
286 ":v4_protocol_manager_util", 299 ":v4_protocol_manager_util",
300 ":v4_rice",
287 ":v4_store", 301 ":v4_store",
288 ":v4_store_proto", 302 ":v4_store_proto",
289 ":v4_update_protocol_manager", 303 ":v4_update_protocol_manager",
290 "//base", 304 "//base",
291 "//content/test:test_support", 305 "//content/test:test_support",
292 "//net", 306 "//net",
293 "//net:test_support", 307 "//net:test_support",
294 "//testing/gtest", 308 "//testing/gtest",
295 "//url", 309 "//url",
296 ] 310 ]
(...skipping 18 matching lines...) Expand all
315 "//base", 329 "//base",
316 "//components/variations", 330 "//components/variations",
317 "//testing/gtest", 331 "//testing/gtest",
318 "//url", 332 "//url",
319 ] 333 ]
320 if (is_win) { 334 if (is_win) {
321 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 335 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
322 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. 336 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'.
323 } 337 }
324 } 338 }
OLDNEW
« 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