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

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: Tiny: Change the type of data_byte_index_ and current_word_bit_index_ to unsigned int 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
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 ]
243 }
244
235 source_set("v4_store") { 245 source_set("v4_store") {
236 sources = [ 246 sources = [
237 "v4_store.cc", 247 "v4_store.cc",
238 "v4_store.h", 248 "v4_store.h",
239 ] 249 ]
240 public_deps = [ 250 public_deps = [
241 ":safebrowsing_proto", 251 ":safebrowsing_proto",
242 ":v4_store_proto", 252 ":v4_store_proto",
243 ] 253 ]
244 deps = [ 254 deps = [
245 ":v4_protocol_manager_util", 255 ":v4_protocol_manager_util",
256 ":v4_rice",
246 "//base", 257 "//base",
247 ] 258 ]
248 } 259 }
249 260
250 source_set("v4_update_protocol_manager") { 261 source_set("v4_update_protocol_manager") {
251 sources = [ 262 sources = [
252 "v4_update_protocol_manager.cc", 263 "v4_update_protocol_manager.cc",
253 "v4_update_protocol_manager.h", 264 "v4_update_protocol_manager.h",
254 ] 265 ]
255 deps = [ 266 deps = [
256 ":safebrowsing_proto", 267 ":safebrowsing_proto",
257 ":util", 268 ":util",
258 ":v4_protocol_manager_util", 269 ":v4_protocol_manager_util",
259 "//base", 270 "//base",
260 "//net", 271 "//net",
261 "//url:url", 272 "//url:url",
262 ] 273 ]
263 } 274 }
264 275
265 source_set("unit_tests") { 276 source_set("unit_tests") {
266 testonly = true 277 testonly = true
267 sources = [ 278 sources = [
268 "database_manager_unittest.cc", 279 "database_manager_unittest.cc",
269 "prefix_set_unittest.cc", 280 "prefix_set_unittest.cc",
270 "util_unittest.cc", 281 "util_unittest.cc",
271 "v4_database_unittest.cc", 282 "v4_database_unittest.cc",
272 "v4_get_hash_protocol_manager_unittest.cc", 283 "v4_get_hash_protocol_manager_unittest.cc",
273 "v4_protocol_manager_util_unittest.cc", 284 "v4_protocol_manager_util_unittest.cc",
285 "v4_rice_unittest.cc",
274 "v4_store_unittest.cc", 286 "v4_store_unittest.cc",
275 "v4_update_protocol_manager_unittest.cc", 287 "v4_update_protocol_manager_unittest.cc",
276 ] 288 ]
277 deps = [ 289 deps = [
278 ":database_manager", 290 ":database_manager",
279 ":prefix_set", 291 ":prefix_set",
280 ":safebrowsing_proto", 292 ":safebrowsing_proto",
281 ":test_database_manager", 293 ":test_database_manager",
282 ":util", 294 ":util",
283 ":v4_database", 295 ":v4_database",
284 ":v4_get_hash_protocol_manager", 296 ":v4_get_hash_protocol_manager",
285 ":v4_local_database_manager", 297 ":v4_local_database_manager",
286 ":v4_protocol_manager_util", 298 ":v4_protocol_manager_util",
299 ":v4_rice",
287 ":v4_store", 300 ":v4_store",
288 ":v4_store_proto", 301 ":v4_store_proto",
289 ":v4_update_protocol_manager", 302 ":v4_update_protocol_manager",
290 "//base", 303 "//base",
291 "//content/test:test_support", 304 "//content/test:test_support",
292 "//net", 305 "//net",
293 "//net:test_support", 306 "//net:test_support",
294 "//testing/gtest", 307 "//testing/gtest",
295 "//url", 308 "//url",
296 ] 309 ]
(...skipping 18 matching lines...) Expand all
315 "//base", 328 "//base",
316 "//components/variations", 329 "//components/variations",
317 "//testing/gtest", 330 "//testing/gtest",
318 "//url", 331 "//url",
319 ] 332 ]
320 if (is_win) { 333 if (is_win) {
321 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 334 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
322 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. 335 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'.
323 } 336 }
324 } 337 }
OLDNEW
« no previous file with comments | « no previous file | components/safe_browsing_db/v4_rice.h » ('j') | components/safe_browsing_db/v4_rice.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698