Upload upstream chromium 73.0.3683.0
[platform/framework/web/chromium-efl.git] / components / sync_preferences / BUILD.gn
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.
4
5 import("//build/config/features.gni")
6
7 static_library("sync_preferences") {
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     "unknown_user_pref_accessor.cc",
21     "unknown_user_pref_accessor.h",
22   ]
23
24   deps = [
25     "//base",
26     "//components/pref_registry",
27     "//components/prefs",
28     "//components/sync",
29     "//services/preferences/public/cpp",
30     "//services/preferences/public/cpp:service_main",
31   ]
32
33   if (!is_ios) {
34     deps += [ "//components/policy/core/browser" ]
35   }
36 }
37
38 static_library("test_support") {
39   testonly = true
40   sources = [
41     "pref_service_mock_factory.cc",
42     "pref_service_mock_factory.h",
43     "testing_pref_service_syncable.cc",
44     "testing_pref_service_syncable.h",
45   ]
46
47   deps = [
48     ":sync_preferences",
49     "//base",
50     "//components/pref_registry",
51     "//components/prefs:test_support",
52     "//testing/gtest",
53   ]
54 }
55
56 source_set("unit_tests") {
57   testonly = true
58   sources = [
59     "pref_model_associator_unittest.cc",
60     "pref_service_syncable_unittest.cc",
61   ]
62
63   deps = [
64     ":sync_preferences",
65     ":test_support",
66     "//base/test:test_support",
67     "//components/pref_registry",
68     "//components/prefs",
69     "//components/prefs:test_support",
70     "//components/sync",
71     "//components/sync:test_support_model",
72     "//testing/gtest",
73   ]
74 }