chromium/components/safety_check/BUILD.gn

# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

source_set("safety_check") {
  sources = [
    "safety_check.cc",
    "safety_check.h",
    "update_check_helper.cc",
    "update_check_helper.h",
    "url_constants.cc",
    "url_constants.h",
  ]

  public_deps = [ "//base" ]

  deps = [
    "//components/prefs",
    "//components/safe_browsing/core/common:safe_browsing_prefs",
    "//net",
    "//services/network/public/cpp",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [ "update_check_helper_unittest.cc" ]

  deps = [
    ":safety_check",
    "//content/test:test_support",
    "//services/network:test_support",
    "//services/network/public/cpp",
    "//testing/gtest",
  ]
}

source_set("test_support") {
  testonly = true
  sources = [
    "test_update_check_helper.cc",
    "test_update_check_helper.h",
  ]

  deps = [ ":safety_check" ]
}