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

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

Issue 1306153002: Revert of Sync more GN unit tests with GYP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tests3
Patch Set: 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 source_set("sync_driver") { 7 static_library("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",
102 "//components/signin/core/browser", 101 "//components/signin/core/browser",
103 "//net", 102 "//net",
104 "//sync", 103 "//sync",
105 "//third_party/cacheinvalidation", 104 "//third_party/cacheinvalidation",
106 ] 105 ]
107 106
108 if (enable_configuration_policy) { 107 if (enable_configuration_policy) {
109 sources += [ 108 sources += [
110 "sync_policy_handler.cc", 109 "sync_policy_handler.cc",
111 "sync_policy_handler.h", 110 "sync_policy_handler.h",
112 ] 111 ]
113 deps += [
114 "//components/policy",
115 "//components/policy:policy_component",
116 ]
117 } 112 }
118 } 113 }
119 114
120 source_set("test_support") { 115 source_set("unit_tests") {
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") {
121 testonly = true 147 testonly = true
122 sources = [ 148 sources = [
123 "change_processor_mock.cc", 149 "change_processor_mock.cc",
124 "change_processor_mock.h", 150 "change_processor_mock.h",
125 "data_type_controller_mock.cc", 151 "data_type_controller_mock.cc",
126 "data_type_controller_mock.h", 152 "data_type_controller_mock.h",
127 "data_type_error_handler_mock.cc", 153 "data_type_error_handler_mock.cc",
128 "data_type_error_handler_mock.h", 154 "data_type_error_handler_mock.h",
129 "data_type_manager_mock.cc", 155 "data_type_manager_mock.cc",
130 "data_type_manager_mock.h", 156 "data_type_manager_mock.h",
131 "fake_data_type_controller.cc", 157 "fake_data_type_controller.cc",
132 "fake_data_type_controller.h", 158 "fake_data_type_controller.h",
133 "fake_generic_change_processor.cc", 159 "fake_generic_change_processor.cc",
134 "fake_generic_change_processor.h", 160 "fake_generic_change_processor.h",
135 "local_device_info_provider_mock.cc", 161 "local_device_info_provider_mock.cc",
136 "local_device_info_provider_mock.h", 162 "local_device_info_provider_mock.h",
137 "model_associator_mock.cc", 163 "model_associator_mock.cc",
138 "model_associator_mock.h", 164 "model_associator_mock.h",
139 "non_ui_data_type_controller_mock.cc", 165 "non_ui_data_type_controller_mock.cc",
140 "non_ui_data_type_controller_mock.h", 166 "non_ui_data_type_controller_mock.h",
141 ] 167 ]
142 168
143 public_deps = [ 169 deps = [
144 ":sync_driver", 170 ":sync_driver",
145 "//sync",
146 ]
147
148 deps = [
149 "//base", 171 "//base",
150 "//components/sessions", 172 "//components/sessions",
173 "//sync",
151 "//sync:test_support_sync_internal_api", 174 "//sync:test_support_sync_internal_api",
152 "//testing/gmock", 175 "//testing/gmock",
153 "//testing/gtest", 176 "//testing/gtest",
154 ] 177 ]
155 } 178 }
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