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
3 # found in the LICENSE file.
8 'target_name': 'ui_test_support',
9 'type': 'static_library',
11 'base/ime/ime_test_support.gypi',
14 '../base/base.gyp:base',
15 '../testing/gtest.gyp:gtest',
18 'base/test/cocoa_test_event_utils.h',
19 'base/test/cocoa_test_event_utils.mm',
20 'base/test/ui_cocoa_test_helper.h',
21 'base/test/ui_cocoa_test_helper.mm',
22 'base/test/dummy_input_method.cc',
23 'base/test/dummy_input_method.h',
31 '../chromeos/chromeos.gyp:chromeos_test_support_without_gmock',
32 '../skia/skia.gyp:skia',
38 'target_name': 'ui_unittests',
39 'type': '<(gtest_target_type)',
41 'base/ime/ime_unittests.gypi',
44 '../base/base.gyp:base',
45 '../base/base.gyp:test_support_base',
46 '../build/temp_gyp/googleurl.gyp:googleurl',
47 '../skia/skia.gyp:skia',
48 '../testing/gmock.gyp:gmock',
49 '../testing/gtest.gyp:gtest',
50 '../third_party/icu/icu.gyp:icui18n',
51 '../third_party/icu/icu.gyp:icuuc',
52 '../third_party/libpng/libpng.gyp:libpng',
58 'base/accelerators/accelerator_manager_unittest.cc',
59 'base/animation/animation_container_unittest.cc',
60 'base/animation/animation_unittest.cc',
61 'base/animation/multi_animation_unittest.cc',
62 'base/animation/slide_animation_unittest.cc',
63 'base/clipboard/clipboard_unittest.cc',
64 'base/clipboard/custom_data_helper_unittest.cc',
65 'base/cocoa/base_view_unittest.mm',
66 'base/cocoa/fullscreen_window_manager_unittest.mm',
67 'base/cocoa/events_mac_unittest.mm',
68 'base/cocoa/focus_tracker_unittest.mm',
69 'base/dialogs/select_file_dialog_win_unittest.cc',
70 'base/event_unittest.cc',
71 'base/gtk/gtk_expanded_container_unittest.cc',
72 'base/gtk/gtk_im_context_util_unittest.cc',
73 'base/gtk/menu_label_accelerator_util_unittest.cc',
74 'base/l10n/l10n_util_mac_unittest.mm',
75 'base/l10n/l10n_util_unittest.cc',
76 'base/models/list_model_unittest.cc',
77 'base/models/tree_node_iterator_unittest.cc',
78 'base/models/tree_node_model_unittest.cc',
79 'base/range/range_unittest.cc',
80 'base/range/range_mac_unittest.mm',
81 'base/range/range_win_unittest.cc',
82 'base/resource/data_pack_literal.cc',
83 'base/resource/data_pack_unittest.cc',
84 'base/resource/resource_bundle_unittest.cc',
85 'base/text/bytes_formatting_unittest.cc',
86 'base/test/data/resource.h',
87 'base/text/text_elider_unittest.cc',
88 'base/text/utf16_indexing_unittest.cc',
89 'base/view_prop_unittest.cc',
90 'gfx/blit_unittest.cc',
91 'gfx/canvas_unittest.cc',
92 'gfx/codec/jpeg_codec_unittest.cc',
93 'gfx/codec/png_codec_unittest.cc',
94 'gfx/color_analysis_unittest.cc',
95 'gfx/color_utils_unittest.cc',
96 'gfx/display_unittest.cc',
97 'gfx/font_list_unittest.cc',
98 'gfx/font_unittest.cc',
99 'gfx/image/image_mac_unittest.mm',
100 'gfx/image/image_skia_unittest.cc',
101 'gfx/image/image_unittest.cc',
102 'gfx/image/image_unittest_util.cc',
103 'gfx/image/image_unittest_util.h',
104 'gfx/image/image_unittest_util_mac.mm',
105 'gfx/image/image_util_unittest.cc',
106 'gfx/insets_unittest.cc',
107 'gfx/rect_unittest.cc',
108 'gfx/render_text_unittest.cc',
109 'gfx/screen_unittest.cc',
110 'gfx/shadow_value_unittest.cc',
111 'gfx/skbitmap_operations_unittest.cc',
112 'gfx/skia_util_unittest.cc',
113 'gfx/transform_util_unittest.cc',
114 'gfx/video_decode_acceleration_support_mac_unittest.mm',
115 'test/run_all_unittests.cc',
116 'test/test_suite.cc',
125 'base/dragdrop/os_exchange_data_win_unittest.cc',
126 'base/native_theme/native_theme_win_unittest.cc',
127 'base/win/hwnd_subclass_unittest.cc',
128 'base/win/tsf_text_store_unittest.cc',
129 'gfx/icon_util_unittest.cc',
130 'gfx/platform_font_win_unittest.cc',
134 '../third_party/wtl/include',
142 'AdditionalDependencies': [
157 'gfx/platform_font_pango_unittest.cc',
160 ['OS == "linux" and toolkit_views==1', {
162 'base/x/events_x_unittest.cc',
167 'gfx/transform_unittest.cc',
168 'gfx/interpolated_transform_unittest.cc',
171 ['OS == "android" and gtest_target_type == "shared_library"', {
173 '../testing/android/native_test.gyp:native_test_native_code',
178 '../build/linux/system.gyp:pangocairo',
179 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
180 'base/strings/ui_strings.gyp:ui_unittest_strings',
183 ['linux_use_tcmalloc==1', {
185 '../base/allocator/allocator.gyp:allocator',
188 ['toolkit_views==1', {
190 'browser/ui/gtk/gtk_expanded_container_unittest.cc',
195 ['toolkit_uses_gtk == 1', {
197 'base/dragdrop/gtk_dnd_util_unittest.cc',
200 '../build/linux/system.gyp:gtk',
203 ['OS=="android" or OS=="ios"', {
205 'gfx/render_text_unittest.cc',
208 ['OS!="win" or use_aura==0', {
210 'base/view_prop_unittest.cc',
213 ['use_aura==1 or toolkit_views==1', {
215 'base/gestures/velocity_calculator_unittest.cc',
219 'base/event_unittest.cc',
224 'base/dialogs/select_file_dialog_win_unittest.cc',
225 'base/dragdrop/os_exchange_data_win_unittest.cc',
226 'base/native_theme/native_theme_win_unittest.cc',
227 'gfx/screen_unittest.cc',
234 # Special target to wrap a gtest_target_type==shared_library
235 # ui_unittests into an android apk for execution.
236 # See base.gyp for TODO(jrg)s about this strategy.
237 ['OS == "android" and gtest_target_type == "shared_library"', {
240 'target_name': 'ui_unittests_apk',
243 '../base/base.gyp:base_java',
247 'test_suite_name': 'ui_unittests',
248 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)ui_unittests<(SHARED_LIB_SUFFIX)',
250 'includes': [ '../build/apk_test.gypi' ],