Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: components/sync_driver/BUILD.gn

Issue 1304163005: Sync more GN unit tests with GYP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/suggestions/BUILD.gn ('k') | components/ui/zoom/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 6
7 static_library("sync_driver") { 7 source_set("sync_driver") {
8 sources = [ 8 sources = [
9 "backend_data_type_configurer.cc", 9 "backend_data_type_configurer.cc",
10 "backend_data_type_configurer.h", 10 "backend_data_type_configurer.h",
11 "backend_migrator.cc", 11 "backend_migrator.cc",
12 "backend_migrator.h", 12 "backend_migrator.h",
13 "change_processor.cc", 13 "change_processor.cc",
14 "change_processor.h", 14 "change_processor.h",
15 "data_type_controller.cc", 15 "data_type_controller.cc",
16 "data_type_controller.h", 16 "data_type_controller.h",
17 "data_type_encryption_handler.cc", 17 "data_type_encryption_handler.cc",
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 "ui_data_type_controller.cc", 91 "ui_data_type_controller.cc",
92 "ui_data_type_controller.h", 92 "ui_data_type_controller.h",
93 "user_selectable_sync_type.h", 93 "user_selectable_sync_type.h",
94 ] 94 ]
95 95
96 deps = [ 96 deps = [
97 "//base", 97 "//base",
98 "//components/history/core/browser", 98 "//components/history/core/browser",
99 "//components/invalidation/public", 99 "//components/invalidation/public",
100 "//components/os_crypt", 100 "//components/os_crypt",
101 "//components/sessions",
101 "//components/signin/core/browser", 102 "//components/signin/core/browser",
102 "//net", 103 "//net",
103 "//sync", 104 "//sync",
104 "//third_party/cacheinvalidation", 105 "//third_party/cacheinvalidation",
105 ] 106 ]
106 107
107 if (enable_configuration_policy) { 108 if (enable_configuration_policy) {
108 sources += [ 109 sources += [
109 "sync_policy_handler.cc", 110 "sync_policy_handler.cc",
110 "sync_policy_handler.h", 111 "sync_policy_handler.h",
111 ] 112 ]
113 deps += [
114 "//components/policy",
115 "//components/policy:policy_component",
116 ]
112 } 117 }
113 } 118 }
114 119
115 source_set("unit_tests") { 120 source_set("test_support") {
116 testonly = true
117 sources = [
118 "data_type_manager_impl_unittest.cc",
119 "device_info_data_type_controller_unittest.cc",
120 "device_info_sync_service_unittest.cc",
121 "generic_change_processor_unittest.cc",
122 "model_association_manager_unittest.cc",
123 "non_blocking_data_type_controller_unittest.cc",
124 "non_ui_data_type_controller_unittest.cc",
125 "shared_change_processor_unittest.cc",
126 "sync_policy_handler_unittest.cc",
127 "sync_prefs_unittest.cc",
128 "sync_stopped_reporter_unittest.cc",
129 "system_encryptor_unittest.cc",
130 "tab_node_pool_unittest.cc",
131 "ui_data_type_controller_unittest.cc",
132 ]
133
134 deps = [
135 ":sync_driver",
136 ":test_support",
137 "//base",
138 "//components/os_crypt",
139 "//components/pref_registry",
140 "//sync",
141 "//testing/gmock",
142 "//testing/gtest",
143 ]
144 }
145
146 static_library("test_support") {
147 testonly = true 121 testonly = true
148 sources = [ 122 sources = [
149 "change_processor_mock.cc", 123 "change_processor_mock.cc",
150 "change_processor_mock.h", 124 "change_processor_mock.h",
151 "data_type_controller_mock.cc", 125 "data_type_controller_mock.cc",
152 "data_type_controller_mock.h", 126 "data_type_controller_mock.h",
153 "data_type_error_handler_mock.cc", 127 "data_type_error_handler_mock.cc",
154 "data_type_error_handler_mock.h", 128 "data_type_error_handler_mock.h",
155 "data_type_manager_mock.cc", 129 "data_type_manager_mock.cc",
156 "data_type_manager_mock.h", 130 "data_type_manager_mock.h",
157 "fake_data_type_controller.cc", 131 "fake_data_type_controller.cc",
158 "fake_data_type_controller.h", 132 "fake_data_type_controller.h",
159 "fake_generic_change_processor.cc", 133 "fake_generic_change_processor.cc",
160 "fake_generic_change_processor.h", 134 "fake_generic_change_processor.h",
161 "local_device_info_provider_mock.cc", 135 "local_device_info_provider_mock.cc",
162 "local_device_info_provider_mock.h", 136 "local_device_info_provider_mock.h",
163 "model_associator_mock.cc", 137 "model_associator_mock.cc",
164 "model_associator_mock.h", 138 "model_associator_mock.h",
165 "non_ui_data_type_controller_mock.cc", 139 "non_ui_data_type_controller_mock.cc",
166 "non_ui_data_type_controller_mock.h", 140 "non_ui_data_type_controller_mock.h",
167 ] 141 ]
168 142
143 public_deps = [
144 ":sync_driver",
145 "//sync",
146 ]
147
169 deps = [ 148 deps = [
170 ":sync_driver",
171 "//base", 149 "//base",
172 "//components/sessions", 150 "//components/sessions",
173 "//sync",
174 "//sync:test_support_sync_internal_api", 151 "//sync:test_support_sync_internal_api",
175 "//testing/gmock", 152 "//testing/gmock",
176 "//testing/gtest", 153 "//testing/gtest",
177 ] 154 ]
178 } 155 }
156
157 source_set("unit_tests") {
158 testonly = true
159 sources = [
160 "data_type_manager_impl_unittest.cc",
161 "device_info_data_type_controller_unittest.cc",
162 "device_info_sync_service_unittest.cc",
163 "generic_change_processor_unittest.cc",
164 "model_association_manager_unittest.cc",
165 "non_blocking_data_type_controller_unittest.cc",
166 "non_ui_data_type_controller_unittest.cc",
167 "shared_change_processor_unittest.cc",
168 "sync_policy_handler_unittest.cc",
169 "sync_prefs_unittest.cc",
170 "system_encryptor_unittest.cc",
171 "tab_node_pool_unittest.cc",
172 "ui_data_type_controller_unittest.cc",
173 ]
174 deps = [
175 ":test_support",
176 "//testing/gmock",
177 "//testing/gtest",
178 ]
179 }
OLDNEW
« no previous file with comments | « components/suggestions/BUILD.gn ('k') | components/ui/zoom/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698