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

Side by Side Diff: ui/base/ui_base_tests.gyp

Issue 588963002: Start the process of renaming ui_unittests to ui_base_unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add more TODOS Created 6 years, 2 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 | « no previous file | ui/base/ui_base_tests.gypi » ('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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'targets': [ 9 'targets': [
10 { 10 {
11 # TODO(tfarina): Rename this target to ui_base_unittests. 11 # TODO(tfarina): Remove this target after all traces of it are updated to
12 # In order to do this we will need to keep this target, add a dummy 12 # point to ui_base_unittests. That means updating buildbot code and some
13 # ui_base_unittests target that just points to ui_unittests, change 13 # references in chromium too. crbug.com/331829
14 # buildbot code to reference the new 'ui_base_unittests' target.
15 # After buildbot is updated, we can make the changes in Chromium and
16 # remove 'ui_unittests' target. crbug.com/331829
17 # GN version: //ui/base:unittests 14 # GN version: //ui/base:unittests
18 'target_name': 'ui_unittests', 15 'target_name': 'ui_unittests',
19 'type': '<(gtest_target_type)', 16 'includes': [ 'ui_base_tests.gypi' ],
20 'dependencies': [ 17 },
21 '../../base/base.gyp:base', 18 {
22 '../../base/base.gyp:test_support_base', 19 # GN version: //ui/base:unittests
23 '../../net/net.gyp:net', 20 'target_name': 'ui_base_unittests',
24 '../../skia/skia.gyp:skia', 21 # TODO(tfarina): When ui_unittests is removed, move the content of the
25 '../../testing/gmock.gyp:gmock', 22 # gypi file back here.
26 '../../testing/gtest.gyp:gtest', 23 'includes': [ 'ui_base_tests.gypi' ],
27 '../../third_party/icu/icu.gyp:icui18n',
28 '../../third_party/icu/icu.gyp:icuuc',
29 '../../url/url.gyp:url_lib',
30 '../events/events.gyp:events_base',
31 '../gfx/gfx.gyp:gfx_test_support',
32 '../resources/ui_resources.gyp:ui_resources',
33 '../resources/ui_resources.gyp:ui_test_pak',
34 '../strings/ui_strings.gyp:ui_strings',
35 'ui_base.gyp:ui_base',
36 'ui_base.gyp:ui_base_test_support',
37 ],
38 # iOS uses a small subset of ui. common_sources are the only files that
39 # are built on iOS.
40 'common_sources' : [
41 # Note: file list duplicated in GN build.
42 'layout_unittest.cc',
43 'l10n/l10n_util_mac_unittest.mm',
44 'l10n/l10n_util_unittest.cc',
45 'l10n/l10n_util_win_unittest.cc',
46 'l10n/time_format_unittest.cc',
47 'models/tree_node_iterator_unittest.cc',
48 'resource/data_pack_literal.cc',
49 'resource/data_pack_unittest.cc',
50 'resource/resource_bundle_unittest.cc',
51 'test/run_all_unittests.cc',
52 ],
53 'all_sources': [
54 # Note: file list duplicated in GN build.
55 '<@(_common_sources)',
56 'accelerators/accelerator_manager_unittest.cc',
57 'accelerators/menu_label_accelerator_util_linux_unittest.cc',
58 'clipboard/custom_data_helper_unittest.cc',
59 'cocoa/base_view_unittest.mm',
60 'cocoa/cocoa_base_utils_unittest.mm',
61 'cocoa/controls/blue_label_button_unittest.mm',
62 'cocoa/controls/hover_image_menu_button_unittest.mm',
63 'cocoa/controls/hyperlink_button_cell_unittest.mm',
64 'cocoa/focus_tracker_unittest.mm',
65 'cocoa/fullscreen_window_manager_unittest.mm',
66 'cocoa/hover_image_button_unittest.mm',
67 'cocoa/menu_controller_unittest.mm',
68 'cocoa/nsgraphics_context_additions_unittest.mm',
69 'cocoa/tracking_area_unittest.mm',
70 'dragdrop/os_exchange_data_provider_aurax11_unittest.cc',
71 'ime/candidate_window_unittest.cc',
72 'ime/chromeos/character_composer_unittest.cc',
73 'ime/composition_text_util_pango_unittest.cc',
74 'ime/input_method_base_unittest.cc',
75 'ime/input_method_chromeos_unittest.cc',
76 'ime/remote_input_method_win_unittest.cc',
77 'ime/win/imm32_manager_unittest.cc',
78 'ime/win/tsf_input_scope_unittest.cc',
79 'models/list_model_unittest.cc',
80 'models/list_selection_model_unittest.cc',
81 'models/tree_node_model_unittest.cc',
82 'test/data/resource.h',
83 'text/bytes_formatting_unittest.cc',
84 'view_prop_unittest.cc',
85 'webui/web_ui_util_unittest.cc',
86 'x/selection_requestor_unittest.cc',
87 ],
88 'include_dirs': [
89 '../..',
90 ],
91 'conditions': [
92 ['OS!="ios"', {
93 'sources' : ['<@(_all_sources)'],
94 }, { # OS=="ios"
95 'sources' : [
96 '<@(_common_sources)',
97 ],
98 # The ResourceBundle unittest expects a locale.pak file to exist in
99 # the bundle for English-US. Copy it in from where it was generated
100 # by ui_resources.gyp:ui_test_pak.
101 'mac_bundle_resources': [
102 '<(PRODUCT_DIR)/ui/en.lproj/locale.pak',
103 ],
104 'actions': [
105 {
106 'action_name': 'copy_test_data',
107 'variables': {
108 'test_data_files': [
109 'test/data',
110 ],
111 'test_data_prefix' : 'ui/base',
112 },
113 'includes': [ '../../build/copy_test_data_ios.gypi' ],
114 },
115 ],
116 }],
117 ['OS == "win"', {
118 'sources': [
119 'dragdrop/os_exchange_data_win_unittest.cc',
120 'win/hwnd_subclass_unittest.cc',
121 'win/open_file_name_win_unittest.cc',
122 ],
123 'msvs_settings': {
124 'VCLinkerTool': {
125 'DelayLoadDLLs': [
126 'd2d1.dll',
127 'd3d10_1.dll',
128 ],
129 'AdditionalDependencies': [
130 'd2d1.lib',
131 'd3d10_1.lib',
132 ],
133 },
134 },
135 'link_settings': {
136 'libraries': [
137 '-limm32.lib',
138 '-loleacc.lib',
139 ],
140 },
141 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
142 'msvs_disabled_warnings': [ 4267, ],
143 }],
144 ['OS == "android"', {
145 'dependencies': [
146 '../../testing/android/native_test.gyp:native_test_native_code',
147 ],
148 }],
149 ['use_pango == 1', {
150 'dependencies': [
151 '../../build/linux/system.gyp:pangocairo',
152 ],
153 'conditions': [
154 ['use_allocator!="none"', {
155 'dependencies': [
156 '../../base/allocator/allocator.gyp:allocator',
157 ],
158 }],
159 ],
160 }],
161 ['use_x11==1', {
162 'dependencies': [
163 '../../build/linux/system.gyp:x11',
164 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
165 '../events/platform/x11/x11_events_platform.gyp:x11_events_platform' ,
166 '../gfx/x/gfx_x11.gyp:gfx_x11',
167 ],
168 }],
169 ['OS!="win" or use_aura==0', {
170 'sources!': [
171 'view_prop_unittest.cc',
172 ],
173 }],
174 ['use_x11==1 and use_aura==1', {
175 'sources': [
176 'cursor/cursor_loader_x11_unittest.cc',
177 ],
178 }],
179 ['OS=="mac"', {
180 'dependencies': [
181 '../../third_party/mozilla/mozilla.gyp:mozilla',
182 '../events/events.gyp:events_test_support',
183 'ui_base_tests_bundle',
184 ],
185 'conditions': [
186 ['component=="static_library"', {
187 # Needed for mozilla.gyp.
188 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
189 }],
190 ],
191 }],
192 ['use_aura==1 or toolkit_views==1', {
193 'sources': [
194 'dragdrop/os_exchange_data_unittest.cc',
195 ],
196 'dependencies': [
197 '../events/events.gyp:events',
198 '../events/events.gyp:events_base',
199 '../events/events.gyp:events_test_support',
200 '../events/platform/events_platform.gyp:events_platform',
201 ],
202 }],
203 ['chromeos==1', {
204 'dependencies': [
205 '../../chromeos/chromeos.gyp:chromeos',
206 '../aura/aura.gyp:aura_test_support',
207 '../chromeos/ui_chromeos.gyp:ui_chromeos',
208 '../events/events.gyp:gesture_detection',
209 ],
210 'sources': [
211 '../chromeos/touch_exploration_controller_unittest.cc'
212 ],
213 'sources!': [
214 'dragdrop/os_exchange_data_provider_aurax11_unittest.cc',
215 'x/selection_requestor_unittest.cc',
216 ],
217 }],
218 ['use_x11==0', {
219 'sources!': [
220 'ime/chromeos/character_composer_unittest.cc',
221 'ime/input_method_chromeos_unittest.cc',
222 'ime/composition_text_util_pango_unittest.cc',
223 ],
224 }],
225 ],
226 'target_conditions': [
227 ['OS == "ios"', {
228 'sources/': [
229 # Pull in specific Mac files for iOS (which have been filtered out
230 # by file name rules).
231 ['include', '^l10n/l10n_util_mac_unittest\\.mm$'],
232 ],
233 }],
234 ],
235 }, 24 },
236 ], 25 ],
237 'conditions': [ 26 'conditions': [
238 # Mac target to build a test Framework bundle to mock out resource loading. 27 # Mac target to build a test Framework bundle to mock out resource loading.
239 ['OS == "mac"', { 28 ['OS == "mac"', {
240 'targets': [ 29 'targets': [
241 { 30 {
242 'target_name': 'ui_base_tests_bundle', 31 'target_name': 'ui_base_tests_bundle',
243 'type': 'shared_library', 32 'type': 'shared_library',
244 'dependencies': [ 33 'dependencies': [
245 '../resources/ui_resources.gyp:ui_test_pak', 34 '../resources/ui_resources.gyp:ui_test_pak',
246 ], 35 ],
247 'includes': [ 'ui_base_tests_bundle.gypi' ], 36 'includes': [ 'ui_base_tests_bundle.gypi' ],
248 }, 37 },
249 ], 38 ],
250 }], 39 }],
251 ['OS == "android"', { 40 ['OS == "android"', {
252 'targets': [ 41 'targets': [
253 { 42 {
43 # TODO(tfarina): Remove this target after all traces of it are updated
44 # to point to ui_base_unittests_apk. crbug.com/331829
254 'target_name': 'ui_unittests_apk', 45 'target_name': 'ui_unittests_apk',
255 'type': 'none', 46 'type': 'none',
256 'dependencies': [ 47 'dependencies': [
257 'ui_unittests', 48 'ui_unittests',
258 ], 49 ],
259 'variables': { 50 'variables': {
260 'test_suite_name': 'ui_unittests', 51 'test_suite_name': 'ui_unittests',
261 }, 52 },
262 'includes': [ '../../build/apk_test.gypi' ], 53 'includes': [ '../../build/apk_test.gypi' ],
263 }, 54 },
55 {
56 'target_name': 'ui_base_unittests_apk',
57 'type': 'none',
58 'dependencies': [
59 'ui_base_unittests',
60 ],
61 'variables': {
62 'test_suite_name': 'ui_base_unittests',
63 },
64 'includes': [ '../../build/apk_test.gypi' ],
65 },
264 ], 66 ],
265 }], 67 }],
266 ], 68 ],
267 } 69 }
OLDNEW
« no previous file with comments | « no previous file | ui/base/ui_base_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698