| # Copyright 2023 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| static_library("hash_realtime_service") { |
| sources = [ |
| "hash_realtime_service.cc", |
| "hash_realtime_service.h", |
| ] |
| |
| deps = [ |
| ":hash_realtime_utils", |
| "//base:base", |
| "//components/keyed_service/core", |
| "//components/safe_browsing/core/browser/db:v4_protocol_manager_util", |
| "//components/safe_browsing/core/browser/utils", |
| "//components/safe_browsing/core/common", |
| "//components/safe_browsing/core/common/proto:safebrowsingv5_alpha1_proto", |
| "//google_apis:google_apis", |
| "//services/network/public/cpp:cpp", |
| "//url:url", |
| ] |
| } |
| |
| static_library("hash_realtime_utils") { |
| sources = [ |
| "hash_realtime_utils.cc", |
| "hash_realtime_utils.h", |
| ] |
| |
| deps = [ |
| "//base:base", |
| "//components/safe_browsing/core/common/proto:safebrowsingv5_alpha1_proto", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| "hash_realtime_service_unittest.cc", |
| "hash_realtime_utils_unittest.cc", |
| ] |
| deps = [ |
| ":hash_realtime_service", |
| ":hash_realtime_utils", |
| "//base/test:test_support", |
| "//components/safe_browsing/core/browser/db:v4_protocol_manager_util", |
| "//components/safe_browsing/core/common/proto:safebrowsingv5_alpha1_proto", |
| "//components/sync_preferences:test_support", |
| "//google_apis:google_apis", |
| "//services/network:test_support", |
| "//testing/gtest", |
| ] |
| } |