1 # Copyright 2015 The Chromium Authors. All rights reserved.
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/features.gni")
7 static_library("sync_preferences") {
9 "pref_model_associator.cc",
10 "pref_model_associator.h",
11 "pref_model_associator_client.h",
12 "pref_service_syncable.cc",
13 "pref_service_syncable.h",
14 "pref_service_syncable_factory.cc",
15 "pref_service_syncable_factory.h",
16 "pref_service_syncable_observer.h",
17 "synced_pref_change_registrar.cc",
18 "synced_pref_change_registrar.h",
19 "synced_pref_observer.h",
20 "unknown_user_pref_accessor.cc",
21 "unknown_user_pref_accessor.h",
26 "//components/pref_registry",
29 "//services/preferences/public/cpp",
30 "//services/preferences/public/cpp:service_main",
34 deps += [ "//components/policy/core/browser" ]
38 static_library("test_support") {
41 "pref_service_mock_factory.cc",
42 "pref_service_mock_factory.h",
43 "testing_pref_service_syncable.cc",
44 "testing_pref_service_syncable.h",
50 "//components/pref_registry",
51 "//components/prefs:test_support",
56 source_set("unit_tests") {
59 "pref_model_associator_unittest.cc",
60 "pref_service_syncable_unittest.cc",
66 "//base/test:test_support",
67 "//components/pref_registry",
69 "//components/prefs:test_support",
71 "//components/sync:test_support_model",