OLD | NEW |
| (Empty) |
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. | |
4 | |
5 static_library("user_prefs_tracked") { | |
6 sources = [ | |
7 "device_id.h", | |
8 "device_id_mac.cc", | |
9 "device_id_stub.cc", | |
10 "device_id_win.cc", | |
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", | |
19 "pref_hash_filter.h", | |
20 "pref_hash_store.h", | |
21 "pref_hash_store_impl.cc", | |
22 "pref_hash_store_impl.h", | |
23 "pref_hash_store_transaction.h", | |
24 "pref_names.cc", | |
25 "pref_names.h", | |
26 "registry_hash_store_contents_win.cc", | |
27 "registry_hash_store_contents_win.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_histogram_names.cc", | |
36 "tracked_preference_histogram_names.h", | |
37 "tracked_preferences_migration.cc", | |
38 "tracked_preferences_migration.h", | |
39 "tracked_split_preference.cc", | |
40 "tracked_split_preference.h", | |
41 ] | |
42 | |
43 if (is_win || is_mac) { | |
44 sources -= [ "device_id_stub.cc" ] | |
45 } | |
46 | |
47 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
48 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | |
49 | |
50 public_deps = [ | |
51 "//services/preferences/public/interfaces", | |
52 ] | |
53 | |
54 deps = [ | |
55 "//base:base", | |
56 "//components/pref_registry", | |
57 "//components/prefs", | |
58 "//crypto:crypto", | |
59 ] | |
60 } | |
61 | |
62 static_library("user_prefs_tracked_test_support") { | |
63 testonly = true | |
64 sources = [ | |
65 "mock_validation_delegate.cc", | |
66 "mock_validation_delegate.h", | |
67 ] | |
68 | |
69 deps = [ | |
70 ":user_prefs_tracked", | |
71 "//base:base", | |
72 ] | |
73 } | |
74 | |
75 source_set("unit_tests") { | |
76 testonly = true | |
77 sources = [ | |
78 "device_id_unittest.cc", | |
79 "pref_hash_calculator_unittest.cc", | |
80 "pref_hash_filter_unittest.cc", | |
81 "pref_hash_store_impl_unittest.cc", | |
82 "registry_hash_store_contents_win_unittest.cc", | |
83 "segregated_pref_store_unittest.cc", | |
84 "tracked_preferences_migration_unittest.cc", | |
85 ] | |
86 | |
87 deps = [ | |
88 ":user_prefs_tracked", | |
89 ":user_prefs_tracked_test_support", | |
90 "//base:base", | |
91 "//base/test:test_support", | |
92 "//components/prefs:test_support", | |
93 "//testing/gtest", | |
94 ] | |
95 } | |
OLD | NEW |