Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / syncable_prefs / BUILD.gn
blob7d0ceda9c1a1196852460d04bf30a0ce49cd82c0
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 source_set("syncable_prefs") {
8   sources = [
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   ]
22   deps = [
23     "//base",
24     "//base:prefs",
25     "//components/pref_registry",
26     "//sync",
27   ]
29   if (enable_configuration_policy) {
30     deps += [
31       "//components/policy:policy_component_browser",
32       "//components/policy:policy_component_common",
33     ]
34   }
37 source_set("test_support") {
38   testonly = true
39   sources = [
40     "pref_service_mock_factory.cc",
41     "pref_service_mock_factory.h",
42     "testing_pref_service_syncable.cc",
43     "testing_pref_service_syncable.h",
44   ]
46   deps = [
47     "//testing/gtest",
48     ":syncable_prefs",
49   ]
52 source_set("unit_tests") {
53   testonly = true
54   sources = [
55     "pref_model_associator_unittest.cc",
56     "pref_service_syncable_unittest.cc",
57   ]
59   deps = [
60     ":syncable_prefs",
61     ":test_support",
62     "//testing/gtest",
63     "//sync:test_support_sync_api",
64   ]