1 # Copyright 2015 The Chromium Authors
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/chromeos/ui_mode.gni")
6 import("//build/config/features.gni")
8 static_library("sync_preferences") {
10 "pref_model_associator.cc",
11 "pref_model_associator.h",
12 "pref_model_associator_client.h",
13 "pref_service_syncable.cc",
14 "pref_service_syncable.h",
15 "pref_service_syncable_factory.cc",
16 "pref_service_syncable_factory.h",
17 "pref_service_syncable_observer.h",
18 "synced_pref_observer.h",
23 "//build:chromeos_buildflags",
24 "//components/policy/core/browser",
25 "//components/pref_registry",
30 if (is_chromeos_ash) {
31 deps += [ "//ash/constants" ]
35 static_library("test_support") {
38 "pref_service_mock_factory.cc",
39 "pref_service_mock_factory.h",
40 "testing_pref_service_syncable.cc",
41 "testing_pref_service_syncable.h",
47 "//components/pref_registry",
48 "//components/prefs:test_support",
53 source_set("unit_tests") {
56 "pref_model_associator_unittest.cc",
57 "pref_service_syncable_unittest.cc",
63 "//base/test:test_support",
64 "//build:chromeos_buildflags",
65 "//components/pref_registry",
67 "//components/prefs:test_support",
69 "//components/sync:test_support",
73 if (is_chromeos_ash) {
74 deps += [ "//ash/constants" ]