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