| OLD | NEW |
| (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 static_library("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 "//components/pref_registry", | |
| 25 "//components/prefs", | |
| 26 "//components/sync", | |
| 27 ] | |
| 28 | |
| 29 if (enable_configuration_policy) { | |
| 30 # This define is only used for compiling the .cc files in this target. | |
| 31 defines = [ "SYNCABLE_PREFS_USE_POLICY" ] | |
| 32 | |
| 33 deps += [ "//components/policy/core/browser" ] | |
| 34 } | |
| 35 } | |
| 36 | |
| 37 static_library("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 ":syncable_prefs", | |
| 48 "//base", | |
| 49 "//components/pref_registry", | |
| 50 "//components/prefs:test_support", | |
| 51 "//testing/gtest", | |
| 52 ] | |
| 53 } | |
| 54 | |
| 55 source_set("unit_tests") { | |
| 56 testonly = true | |
| 57 sources = [ | |
| 58 "pref_model_associator_unittest.cc", | |
| 59 "pref_service_syncable_unittest.cc", | |
| 60 ] | |
| 61 | |
| 62 deps = [ | |
| 63 ":syncable_prefs", | |
| 64 ":test_support", | |
| 65 "//components/pref_registry", | |
| 66 "//components/prefs", | |
| 67 "//components/sync", | |
| 68 "//components/sync:test_support_model", | |
| 69 "//testing/gtest", | |
| 70 ] | |
| 71 } | |
| OLD | NEW |