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