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

Side by Side Diff: ui/ui_unittests.gypi

Issue 10224004: Use Android API for GetDisplayNameForLocale(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 'targets': [ 6 'targets': [
7 { 7 {
8 'target_name': 'ui_test_support', 8 'target_name': 'ui_test_support',
9 'dependencies': [ 9 'dependencies': [
10 '../base/base.gyp:base', 10 '../base/base.gyp:base',
(...skipping 11 matching lines...) Expand all
22 'conditions': [ 22 'conditions': [
23 ['OS=="mac"', { 23 ['OS=="mac"', {
24 'type': 'static_library', 24 'type': 'static_library',
25 }, { # OS != "mac" 25 }, { # OS != "mac"
26 'type': 'none', 26 'type': 'none',
27 }], 27 }],
28 ], 28 ],
29 }, 29 },
30 { 30 {
31 'target_name': 'ui_unittests', 31 'target_name': 'ui_unittests',
32 'type': 'executable', 32 'type': '<(gtest_target_type)',
33 'includes': [ 33 'includes': [
34 'base/ime/ime_unittests.gypi', 34 'base/ime/ime_unittests.gypi',
35 ], 35 ],
36 'dependencies': [ 36 'dependencies': [
37 '../base/base.gyp:base', 37 '../base/base.gyp:base',
38 '../base/base.gyp:test_support_base', 38 '../base/base.gyp:test_support_base',
39 '../build/temp_gyp/googleurl.gyp:googleurl', 39 '../build/temp_gyp/googleurl.gyp:googleurl',
40 '../skia/skia.gyp:skia', 40 '../skia/skia.gyp:skia',
41 '../testing/gmock.gyp:gmock', 41 '../testing/gmock.gyp:gmock',
42 '../testing/gtest.gyp:gtest', 42 '../testing/gtest.gyp:gtest',
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 'sources': [ 145 'sources': [
146 'base/x/events_x_unittest.cc', 146 'base/x/events_x_unittest.cc',
147 ], 147 ],
148 }], 148 }],
149 ['OS != "mac"', { 149 ['OS != "mac"', {
150 'sources': [ 150 'sources': [
151 'gfx/transform_unittest.cc', 151 'gfx/transform_unittest.cc',
152 'gfx/interpolated_transform_unittest.cc', 152 'gfx/interpolated_transform_unittest.cc',
153 ], 153 ],
154 }], 154 }],
155 ['OS=="android" and "<(gtest_target_type)"=="shared_library"', {
156 'dependencies': [
157 '../testing/android/native_test.gyp:native_test_native_code',
158 ],
159 }],
155 ['use_glib == 1', { 160 ['use_glib == 1', {
156 'dependencies': [ 161 'dependencies': [
157 '../build/linux/system.gyp:pangocairo', 162 '../build/linux/system.gyp:pangocairo',
158 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', 163 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
159 'base/strings/ui_strings.gyp:ui_unittest_strings', 164 'base/strings/ui_strings.gyp:ui_unittest_strings',
160 ], 165 ],
161 'conditions': [ 166 'conditions': [
162 ['linux_use_tcmalloc==1', { 167 ['linux_use_tcmalloc==1', {
163 'dependencies': [ 168 'dependencies': [
164 '../base/allocator/allocator.gyp:allocator', 169 '../base/allocator/allocator.gyp:allocator',
(...skipping 26 matching lines...) Expand all
191 ], 196 ],
192 }], 197 }],
193 ['use_aura==1 or toolkit_views==1', { 198 ['use_aura==1 or toolkit_views==1', {
194 'sources': [ 199 'sources': [
195 'base/gestures/velocity_calculator_unittest.cc', 200 'base/gestures/velocity_calculator_unittest.cc',
196 ], 201 ],
197 }], 202 }],
198 ], 203 ],
199 }, 204 },
200 ], 205 ],
206 'conditions': [
207 # Special target to wrap a <(gtest_target_type)==shared_library
208 # ui_unittests into an android apk for execution.
209 # See base.gyp for TODO(jrg)s about this strategy.
210 ['OS=="android" and "<(gtest_target_type)"=="shared_library"', {
211 'targets': [
212 {
213 'target_name': 'ui_unittests_apk',
214 'type': 'none',
215 'dependencies': [
216 'ui_unittests',
217 ],
218 'actions': [
219 {
220 # Generate apk files (including source and antfile) from
221 # a template, and builds them.
222 'action_name': 'generate_and_build',
223 'inputs': [
224 '../testing/android/generate_native_test.py',
225 '<(PRODUCT_DIR)/lib.target/libui_unittests.so',
226 '<(PRODUCT_DIR)/chromium_base.jar',
227 ],
228 'outputs': [
229 '<(PRODUCT_DIR)/ChromeNativeTests_ui_unittests-debug.apk',
230 ],
231 'action': [
232 '../testing/android/generate_native_test.py',
233 '--native_library',
234 '<(PRODUCT_DIR)/lib.target/libui_unittests.so',
235 # TODO(jrg): find a better way to specify jar
236 # dependencies. Hard coding seems fragile.
237 '--jar',
238 '<(PRODUCT_DIR)/chromium_base.jar',
239 '--output',
240 '<(PRODUCT_DIR)/ui_unittests_apk',
241 '--ant-args',
242 '-DPRODUCT_DIR=<(PRODUCT_DIR)',
243 '--ant-compile'
244 ],
245 },
246 ]
247 },
248 ],
249 }],
250 ],
201 } 251 }
OLDNEW
« ui/base/l10n/l10n_util.cc ('K') | « ui/base/l10n/l10n_util_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698