Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: components/syncable_prefs/BUILD.gn

Issue 1305213009: Componentize PrefSyncableService and support classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pref_service_syncable
Patch Set: Add missing dependency on //sync:test_support_sync_api for unit tests with gn Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/syncable_prefs.gypi ('k') | components/syncable_prefs/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 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 ]
21
22 deps = [
23 "//base",
24 "//base:prefs",
25 "//components/pref_registry",
26 "//sync",
27 ]
28
29 if (enable_configuration_policy) {
30 deps += [
31 "//components/policy:policy_component_browser",
32 "//components/policy:policy_component_common",
33 ]
34 }
35 }
36
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 ]
45
46 deps = [
47 "//testing/gtest",
48 ":syncable_prefs",
49 ]
50 }
51
52 source_set("unit_tests") {
53 testonly = true
54 sources = [
55 "pref_model_associator_unittest.cc",
56 "pref_service_syncable_unittest.cc",
57 ]
58
59 deps = [
60 ":syncable_prefs",
61 ":test_support",
62 "//testing/gtest",
63 "//sync:test_support_sync_api",
64 ]
65 }
OLDNEW
« no previous file with comments | « components/syncable_prefs.gypi ('k') | components/syncable_prefs/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698