# 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.

import("//testing/libfuzzer/fuzzer_test.gni")

source_set("sync") {
  sources = [
    "password_data_type_controller.cc",
    "password_data_type_controller.h",
    "password_local_data_batch_uploader.cc",
    "password_local_data_batch_uploader.h",
    "password_proto_utils.cc",
    "password_proto_utils.h",
    "password_store_sync.cc",
    "password_store_sync.h",
    "password_sync_bridge.cc",
    "password_sync_bridge.h",
  ]
  deps = [
    "//components/password_manager/core/browser:metrics_util",
    "//components/password_manager/core/browser:password_form",
    "//components/password_manager/core/browser/features:password_features",
    "//components/password_manager/core/browser/features:utils",
    "//components/password_manager/core/browser/password_store:password_store_interface",
    "//components/password_manager/core/common",
    "//components/password_manager/core/common:features",
    "//components/prefs",
    "//components/sync/model",
    "//components/sync/protocol:util",
    "//components/sync/service",
    "//sql",
    "//url",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "password_data_type_controller_unittest.cc",
    "password_local_data_batch_uploader_unittest.cc",
    "password_proto_utils_unittest.cc",
    "password_sync_bridge_unittest.cc",
  ]
  deps = [
    ":sync",
    "//base/test:test_support",
    "//components/password_manager/core/browser",
    "//components/password_manager/core/browser:password_form",
    "//components/password_manager/core/browser/features:password_features",
    "//components/password_manager/core/browser/password_store:password_store_interface",
    "//components/password_manager/core/browser/password_store:test_support",
    "//components/password_manager/core/common",
    "//components/prefs",
    "//components/prefs:test_support",
    "//components/signin/public/identity_manager:test_support",
    "//components/sync:test_support",
    "//components/sync/protocol",
    "//sql",
    "//testing/gmock",
    "//testing/gtest",
  ]
}
