| # Copyright 2020 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//third_party/protobuf/proto_library.gni") |
| |
| proto_library("proto") { |
| sources = [ "safety_tips.proto" ] |
| } |
| |
| static_library("core") { |
| sources = [ |
| "safety_tip_test_utils.cc", |
| "safety_tip_test_utils.h", |
| "safety_tips_config.cc", |
| "safety_tips_config.h", |
| ] |
| deps = [ |
| ":proto", |
| "//components/safe_browsing/core/db:v4_protocol_manager_util", |
| "//components/security_state/core", |
| "//third_party/re2", |
| "//url", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ "safety_tips_config_unittest.cc" ] |
| deps = [ |
| ":core", |
| "//testing/gtest", |
| "//url", |
| ] |
| public_deps = [ "//third_party/boringssl" ] |
| all_dependent_configs = [ "//third_party/protobuf:protobuf_config" ] |
| } |