chromium/components/safe_browsing/core/browser/sync/BUILD.gn

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

import("//build/config/features.gni")

source_set("sync") {
  sources = [
    "safe_browsing_primary_account_token_fetcher.cc",
    "safe_browsing_primary_account_token_fetcher.h",
    "safe_browsing_sync_observer_impl.cc",
    "safe_browsing_sync_observer_impl.h",
    "sync_utils.cc",
    "sync_utils.h",
  ]

  configs += [ "//build/config/compiler:wexit_time_destructors" ]

  deps = [
    "//base",
    "//components/safe_browsing/core/browser:sync_observer",
    "//components/safe_browsing/core/browser:token_fetcher",
    "//components/signin/public/identity_manager",
    "//components/sync/service",
    "//google_apis",
  ]
}

source_set("unittests") {
  testonly = true
  sources = [
    "safe_browsing_primary_account_token_fetcher_unittest.cc",
    "safe_browsing_sync_observer_impl_unittest.cc",
    "sync_utils_unittest.cc",
  ]

  deps = [
    ":sync",
    "//base/test:test_support",
    "//components/safe_browsing/core/browser:token_fetcher",
    "//components/signin/public/identity_manager:test_support",
    "//components/sync:test_support",
    "//testing/gtest",
  ]
}