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

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

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

Powered by Google App Engine
This is Rietveld 408576698