# Copyright 2018 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/chromeos/ui_mode.gni")
assert(is_chromeos_ash, "Non-ChromeOS builds cannot depend on //ash")
source_set("cpp") {
sources = [
"client_app_metadata_provider.h",
"cryptauth_device_id_provider.h",
"device_sync_client.cc",
"device_sync_client.h",
"device_sync_client_impl.cc",
"device_sync_client_impl.h",
"gcm_constants.cc",
"gcm_constants.h",
"gcm_device_info_provider.h",
]
public_deps = [
"//ash/constants",
"//base",
"//chromeos/ash/components/multidevice",
"//chromeos/ash/components/multidevice/logging",
"//chromeos/ash/services/device_sync:feature_status_change",
"//chromeos/ash/services/device_sync/public/mojom",
]
deps = [ "//mojo/public/cpp/bindings" ]
}
source_set("prefs") {
sources = [
"device_sync_prefs.cc",
"device_sync_prefs.h",
]
public_deps = [
"//ash/constants",
"//base",
"//chromeos/ash/components/multidevice",
"//chromeos/ash/components/multidevice/logging",
"//chromeos/ash/services/device_sync:feature_status_change",
"//chromeos/ash/services/device_sync/public/mojom",
]
deps = [
"//chromeos/ash/services/device_sync",
"//components/prefs",
]
}
static_library("test_support") {
testonly = true
sources = [
"fake_client_app_metadata_provider.cc",
"fake_client_app_metadata_provider.h",
"fake_device_sync_client.cc",
"fake_device_sync_client.h",
"fake_gcm_device_info_provider.cc",
"fake_gcm_device_info_provider.h",
]
public_deps = [ ":cpp" ]
deps = [ "//base" ]
}
source_set("unit_tests") {
testonly = true
sources = [ "device_sync_client_impl_unittest.cc" ]
deps = [
":cpp",
":prefs",
":test_support",
"//base",
"//base/test:test_support",
"//chromeos/ash/components/multidevice",
"//chromeos/ash/components/multidevice:test_support",
"//chromeos/ash/services/device_sync",
"//chromeos/ash/services/device_sync:test_support",
"//components/gcm_driver:test_support",
"//components/prefs:test_support",
"//components/signin/public/identity_manager:test_support",
"//net",
"//services/network:test_support",
"//testing/gtest",
]
}