cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / components / user_prefs / tracked / BUILD.gn
blobe749217357d13d76a6b368cdfeb741c79af3eb51
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") {
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     "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",
40   ]
42   if (is_win || (is_mac && !is_ios)) {
43     sources -= [ "device_id_stub.cc" ]
44   }
46   if (is_ios) {
47     sources -= [ "device_id_mac.cc" ]
48   }
50   # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
51   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
53   deps = [
54     "//base:base",
55     "//base:prefs",
56     "//crypto:crypto",
57     "//components/pref_registry",
58   ]
61 source_set("user_prefs_tracked_test_support") {
62   testonly = true
63   sources = [
64     "mock_validation_delegate.cc",
65     "mock_validation_delegate.h",
66   ]
68   deps = [
69     ":user_prefs_tracked",
70     "//base:base",
71   ]
74 source_set("unit_tests") {
75   testonly = true
76   sources = [
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",
84   ]
86   deps = [
87     ":user_prefs_tracked",
88     ":user_prefs_tracked_test_support",
89     "//base:base",
90     "//base:prefs",
91     "//base:prefs_test_support",
92     "//testing/gtest",
93   ]