1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
static_library("user_prefs_tracked") {
sources = [
"device_id.h",
"device_id_mac.cc",
"device_id_stub.cc",
"device_id_win.cc",
"dictionary_hash_store_contents.cc",
"dictionary_hash_store_contents.h",
"hash_store_contents.h",
"interceptable_pref_filter.cc",
"interceptable_pref_filter.h",
"pref_hash_calculator.cc",
"pref_hash_calculator.h",
"pref_hash_filter.cc",
"pref_hash_filter.h",
"pref_hash_store.h",
"pref_hash_store_impl.cc",
"pref_hash_store_impl.h",
"pref_hash_store_transaction.h",
"pref_names.cc",
"pref_names.h",
"registry_hash_store_contents_win.cc",
"registry_hash_store_contents_win.h",
"segregated_pref_store.cc",
"segregated_pref_store.h",
"tracked_atomic_preference.cc",
"tracked_atomic_preference.h",
"tracked_preference.h",
"tracked_preference_helper.cc",
"tracked_preference_helper.h",
"tracked_preference_histogram_names.cc",
"tracked_preference_histogram_names.h",
"tracked_preference_validation_delegate.h",
"tracked_preferences_migration.cc",
"tracked_preferences_migration.h",
"tracked_split_preference.cc",
"tracked_split_preference.h",
]
if (is_win || is_mac) {
sources -= [ "device_id_stub.cc" ]
}
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
deps = [
"//base:base",
"//components/pref_registry",
"//components/prefs",
"//crypto:crypto",
]
}
static_library("user_prefs_tracked_test_support") {
testonly = true
sources = [
"mock_validation_delegate.cc",
"mock_validation_delegate.h",
]
deps = [
":user_prefs_tracked",
"//base:base",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"device_id_unittest.cc",
"pref_hash_calculator_unittest.cc",
"pref_hash_filter_unittest.cc",
"pref_hash_store_impl_unittest.cc",
"registry_hash_store_contents_win_unittest.cc",
"segregated_pref_store_unittest.cc",
"tracked_preferences_migration_unittest.cc",
]
deps = [
":user_prefs_tracked",
":user_prefs_tracked_test_support",
"//base:base",
"//base/test:test_support",
"//components/prefs:test_support",
"//testing/gtest",
]
}
|