Remove chromeos==0 blacklist for test_isolation_mode.
[chromium-blink-merge.git] / ui / gfx / gfx_tests.gyp
blob9108b0ffa329d00c280644ea99cb65e1b978db4e
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
3 # found in the LICENSE file.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       'target_name': 'gfx_unittests',
12       'type': '<(gtest_target_type)',
13       # iOS uses a small subset of ui. common_sources are the only files that
14       # are built on iOS.
15       'common_sources' : [
16         'font_unittest.cc',
17         'image/image_family_unittest.cc',
18         'image/image_ios_unittest.mm',
19         'image/image_skia_unittest.cc',
20         'image/image_unittest.cc',
21         'ios/NSString+CrStringDrawing_unittest.mm',
22         'ios/uikit_util_unittest.mm',
23         'screen_unittest.cc',
24         'test/run_all_unittests.cc',
25         'text_elider_unittest.cc',
26         'text_utils_unittest.cc',
27       ],
28       'all_sources': [
29         '<@(_common_sources)',
30         'animation/animation_container_unittest.cc',
31         'animation/animation_unittest.cc',
32         'animation/multi_animation_unittest.cc',
33         'animation/slide_animation_unittest.cc',
34         'animation/tween_unittest.cc',
35         'blit_unittest.cc',
36         'break_list_unittest.cc',
37         'canvas_unittest.cc',
38         'canvas_unittest_mac.mm',
39         'codec/jpeg_codec_unittest.cc',
40         'codec/png_codec_unittest.cc',
41         'color_analysis_unittest.cc',
42         'color_utils_unittest.cc',
43         'display_change_notifier_unittest.cc',
44         'display_unittest.cc',
45         'font_fallback_mac_unittest.cc',
46         'font_list_unittest.cc',
47         'font_render_params_linux_unittest.cc',
48         'geometry/box_unittest.cc',
49         'geometry/cubic_bezier_unittest.cc',
50         'geometry/insets_unittest.cc',
51         'geometry/matrix3_unittest.cc',
52         'geometry/point3_unittest.cc',
53         'geometry/point_unittest.cc',
54         'geometry/quad_unittest.cc',
55         'geometry/rect_unittest.cc',
56         'geometry/safe_integer_conversions_unittest.cc',
57         'geometry/scroll_offset_unittest.cc',
58         'geometry/size_unittest.cc',
59         'geometry/vector2d_unittest.cc',
60         'geometry/vector3d_unittest.cc',
61         'image/image_mac_unittest.mm',
62         'image/image_util_unittest.cc',
63         'mac/coordinate_conversion_unittest.mm',
64         'nine_image_painter_unittest.cc',
65         'platform_font_linux_unittest.cc',
66         'platform_font_mac_unittest.mm',
67         'range/range_mac_unittest.mm',
68         'range/range_unittest.cc',
69         'range/range_win_unittest.cc',
70         'render_text_unittest.cc',
71         'sequential_id_generator_unittest.cc',
72         'shadow_value_unittest.cc',
73         'skbitmap_operations_unittest.cc',
74         'skrect_conversion_unittest.cc',
75         'transform_util_unittest.cc',
76         'utf16_indexing_unittest.cc',
77       ],
78       'dependencies': [
79         '../../base/base.gyp:base',
80         '../../base/base.gyp:test_support_base',
81         '../../skia/skia.gyp:skia',
82         '../../testing/gtest.gyp:gtest',
83         '../../third_party/libpng/libpng.gyp:libpng',
84         '../base/ui_base.gyp:ui_base',
85         '../resources/ui_resources.gyp:ui_test_pak',
86         'gfx.gyp:gfx',
87         'gfx.gyp:gfx_geometry',
88         'gfx.gyp:gfx_test_support',
89       ],
90       'conditions': [
91         ['OS == "ios"', {
92           'sources': ['<@(_common_sources)'],
93         }, {  # OS != "ios"
94           'sources': ['<@(_all_sources)'],
95         }],
96         ['OS != "mac" and OS != "ios"', {
97           'sources': [
98             'interpolated_transform_unittest.cc',
99             'transform_unittest.cc',
100           ],
101         }],
102         ['OS == "android"', {
103           'dependencies': [
104             '../../testing/android/native_test.gyp:native_test_native_code',
105           ],
106           # Do not run display_change_notifier_unittest.cc on Android because it
107           # does not compile display_observer.cc
108           'sources!': [
109             'display_change_notifier_unittest.cc',
110           ],
111         }],
112         ['OS=="android" or OS=="ios"', {
113           'sources!': [
114             'render_text_unittest.cc',
115           ],
116         }],
117         ['chromeos==1', {
118           'sources': [
119             'chromeos/codec/jpeg_codec_robust_slow_unittest.cc',
120           ],
121         }],
122         ['use_aura==1', {
123           'sources!': [
124             'screen_unittest.cc',
125           ],
126         },{
127           'sources!': [
128             'nine_image_painter_unittest.cc',
129           ],
130         }],
131         ['OS == "win"', {
132           'sources': [
133             'font_fallback_win_unittest.cc',
134             'icon_util_unittest.cc',
135             'icon_util_unittests.rc',
136             'path_win_unittest.cc',
137             'platform_font_win_unittest.cc',
138           ],
139           'msvs_settings': {
140             'VCLinkerTool': {
141               'DelayLoadDLLs': [
142                 'd2d1.dll',
143                 'd3d10_1.dll',
144               ],
145               'AdditionalDependencies': [
146                 'd2d1.lib',
147                 'd3d10_1.lib',
148               ],
149             },
150           },
151           'link_settings': {
152             'libraries': [
153               '-limm32.lib',
154               '-loleacc.lib',
155             ],
156           },
157           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
158           'msvs_disabled_warnings': [ 4267, ],
159         }],
160       ],
161     }
162   ],
163   'conditions': [
164     ['OS == "android"', {
165       'targets': [
166         {
167           'target_name': 'gfx_unittests_apk',
168           'type': 'none',
169           'dependencies': [
170             '../android/ui_android.gyp:ui_java',
171             'gfx_unittests',
172           ],
173           'variables': {
174             'test_suite_name': 'gfx_unittests',
175           },
176           'includes': [ '../../build/apk_test.gypi' ],
177         },
178       ],
179     }],
180     ['test_isolation_mode != "noop"', {
181       'targets': [
182         {
183           'target_name': 'gfx_unittests_run',
184           'type': 'none',
185           'dependencies': [
186             'gfx_unittests',
187           ],
188           'includes': [
189             '../../build/isolate.gypi',
190           ],
191           'sources': [
192             'gfx_unittests.isolate',
193           ],
194           'conditions': [
195             ['use_x11 == 1', {
196               'dependencies': [
197                 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
198               ],
199             }],
200           ],
201         },
202       ],
203     }],
204   ],