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

Side by Side 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: Move another test from database_manager to get_hash_manager 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 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 static_library("v4_local_database_manager") { 203 static_library("v4_local_database_manager") {
204 sources = [ 204 sources = [
205 "v4_local_database_manager.cc", 205 "v4_local_database_manager.cc",
206 "v4_local_database_manager.h", 206 "v4_local_database_manager.h",
207 ] 207 ]
208 deps = [ 208 deps = [
209 ":database_manager", 209 ":database_manager",
210 ":hit_report", 210 ":hit_report",
211 ":safebrowsing_proto", 211 ":safebrowsing_proto",
212 ":v4_database", 212 ":v4_database",
213 ":v4_get_hash_protocol_manager",
213 ":v4_protocol_manager_util", 214 ":v4_protocol_manager_util",
214 ":v4_update_protocol_manager", 215 ":v4_update_protocol_manager",
215 "//base", 216 "//base",
216 "//content/public/browser", 217 "//content/public/browser",
217 "//net", 218 "//net",
218 "//url", 219 "//url",
219 ] 220 ]
220 } 221 }
221 222
222 source_set("v4_protocol_manager_util") { 223 source_set("v4_protocol_manager_util") {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 deps = [ 269 deps = [
269 ":safebrowsing_proto", 270 ":safebrowsing_proto",
270 ":util", 271 ":util",
271 ":v4_protocol_manager_util", 272 ":v4_protocol_manager_util",
272 "//base", 273 "//base",
273 "//net", 274 "//net",
274 "//url", 275 "//url",
275 ] 276 ]
276 } 277 }
277 278
279 source_set("v4_database_unittest") {
280 testonly = true
281 sources = [
282 "v4_database_unittest.cc",
283 ]
284 deps = [
285 ":v4_database",
286 ":v4_store",
287 "//base",
288 "//base/test:test_support",
289 "//content/test:test_support",
290 "//testing/gtest",
291 ]
292 }
293
294 source_set("v4_get_hash_protocol_manager_unittest") {
295 testonly = true
296 sources = [
297 "v4_get_hash_protocol_manager_unittest.cc",
298 ]
299 deps = [
300 ":safebrowsing_proto",
301 ":util",
302 ":v4_database",
303 ":v4_get_hash_protocol_manager",
304 ":v4_local_database_manager",
305 "//base",
306 "//base/test:test_support",
307 "//net",
308 "//net:test_support",
309 "//testing/gtest",
310 ]
311 }
312
313 source_set("v4_local_database_manager_unittest") {
314 testonly = true
315 sources = [
316 "v4_local_database_manager_unittest.cc",
317 ]
318 deps = [
319 ":v4_database",
320 ":v4_local_database_manager",
321 "//base",
322 "//base/test:test_support",
323 "//content/test:test_support",
324 "//net",
325 "//net:test_support",
326 "//testing/gtest",
327 ]
328 }
329
278 source_set("unit_tests") { 330 source_set("unit_tests") {
279 testonly = true 331 testonly = true
280 sources = [ 332 sources = [
281 "database_manager_unittest.cc", 333 # "database_manager_unittest.cc",
282 "prefix_set_unittest.cc", 334 "prefix_set_unittest.cc",
283 "util_unittest.cc", 335 "util_unittest.cc",
284 "v4_database_unittest.cc", 336 "v4_database_unittest.cc",
285 "v4_get_hash_protocol_manager_unittest.cc", 337 "v4_get_hash_protocol_manager_unittest.cc",
286 "v4_local_database_manager_unittest.cc", 338 "v4_local_database_manager_unittest.cc",
287 "v4_protocol_manager_util_unittest.cc", 339 "v4_protocol_manager_util_unittest.cc",
288 "v4_rice_unittest.cc", 340 "v4_rice_unittest.cc",
289 "v4_store_unittest.cc", 341 "v4_store_unittest.cc",
290 "v4_update_protocol_manager_unittest.cc", 342 "v4_update_protocol_manager_unittest.cc",
291 ] 343 ]
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 "//base", 384 "//base",
333 "//components/variations", 385 "//components/variations",
334 "//testing/gtest", 386 "//testing/gtest",
335 "//url", 387 "//url",
336 ] 388 ]
337 if (is_win) { 389 if (is_win) {
338 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 390 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
339 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. 391 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'.
340 } 392 }
341 } 393 }
OLDNEW
« no previous file with comments | « no previous file | components/safe_browsing_db/database_manager.h » ('j') | components/safe_browsing_db/database_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698