1 # Copyright 2014 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 static_library("user_prefs_tracked") {
11 "dictionary_hash_store_contents.cc",
12 "dictionary_hash_store_contents.h",
13 "hash_store_contents.h",
14 "interceptable_pref_filter.cc",
15 "interceptable_pref_filter.h",
16 "pref_hash_calculator.cc",
17 "pref_hash_calculator.h",
18 "pref_hash_filter.cc",
21 "pref_hash_store_impl.cc",
22 "pref_hash_store_impl.h",
23 "pref_hash_store_transaction.h",
26 "pref_service_hash_store_contents.cc",
27 "pref_service_hash_store_contents.h",
28 "segregated_pref_store.cc",
29 "segregated_pref_store.h",
30 "tracked_atomic_preference.cc",
31 "tracked_atomic_preference.h",
32 "tracked_preference.h",
33 "tracked_preference_helper.cc",
34 "tracked_preference_helper.h",
35 "tracked_preference_validation_delegate.h",
36 "tracked_preferences_migration.cc",
37 "tracked_preferences_migration.h",
38 "tracked_split_preference.cc",
39 "tracked_split_preference.h",
42 if (is_win || (is_mac && !is_ios)) {
43 sources -= [ "device_id_stub.cc" ]
47 sources -= [ "device_id_mac.cc" ]
50 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
51 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
57 "//components/pref_registry",
61 source_set("user_prefs_tracked_test_support") {
64 "mock_validation_delegate.cc",
65 "mock_validation_delegate.h",
69 ":user_prefs_tracked",
74 source_set("unit_tests") {
77 "device_id_unittest.cc",
78 "pref_hash_calculator_unittest.cc",
79 "pref_hash_filter_unittest.cc",
80 "pref_hash_store_impl_unittest.cc",
81 "pref_service_hash_store_contents_unittest.cc",
82 "segregated_pref_store_unittest.cc",
83 "tracked_preferences_migration_unittest.cc",
87 ":user_prefs_tracked",
88 ":user_prefs_tracked_test_support",
91 "//base:prefs_test_support",