Apply owners taptoclick and mouse buttons swap options on login screen
[chromium-blink-merge.git] / cc / cc_tests.gyp
blob4e4f4382e2c6d6a206be7183cf99414852c9a3d2
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.
6   'variables': {
7     'chromium_code': 1,
8     'cc_unit_tests_source_files': [
9       'animation/animation_unittest.cc',
10       'animation/keyframed_animation_curve_unittest.cc',
11       'animation/layer_animation_controller_unittest.cc',
12       'animation/scrollbar_animation_controller_linear_fade_unittest.cc',
13       'animation/timing_function_unittest.cc',
14       'animation/transform_operations_unittest.cc',
15       'base/float_quad_unittest.cc',
16       'base/math_util_unittest.cc',
17       'base/region_unittest.cc',
18       'base/scoped_ptr_vector_unittest.cc',
19       'base/tiling_data_unittest.cc',
20       'base/util_unittest.cc',
21       'input/top_controls_manager_unittest.cc',
22       'layers/content_layer_unittest.cc',
23       'layers/contents_scaling_layer_unittest.cc',
24       'layers/delegated_renderer_layer_impl_unittest.cc',
25       'layers/heads_up_display_unittest.cc',
26       'layers/layer_impl_unittest.cc',
27       'layers/layer_iterator_unittest.cc',
28       'layers/layer_position_constraint_unittest.cc',
29       'layers/layer_unittest.cc',
30       'layers/nine_patch_layer_impl_unittest.cc',
31       'layers/nine_patch_layer_unittest.cc',
32       'layers/picture_image_layer_impl_unittest.cc',
33       'layers/picture_layer_impl_unittest.cc',
34       'layers/render_surface_unittest.cc',
35       'layers/scrollbar_layer_unittest.cc',
36       'layers/solid_color_layer_impl_unittest.cc',
37       'layers/texture_layer_unittest.cc',
38       'layers/tiled_layer_impl_unittest.cc',
39       'layers/tiled_layer_unittest.cc',
40       'output/delegating_renderer_unittest.cc',
41       'output/filter_operations_unittest.cc',
42       'output/gl_renderer_unittest.cc',
43       'output/output_surface_unittest.cc',
44       'output/renderer_pixeltest.cc',
45       'output/render_surface_filters_unittest.cc',
46       'output/shader_unittest.cc',
47       'output/software_renderer_unittest.cc',
48       'quads/draw_quad_unittest.cc',
49       'quads/render_pass_unittest.cc',
50       'resources/layer_quad_unittest.cc',
51       'resources/picture_layer_tiling_set_unittest.cc',
52       'resources/picture_layer_tiling_unittest.cc',
53       'resources/picture_pile_impl_unittest.cc',
54       'resources/picture_pile_unittest.cc',
55       'resources/picture_unittest.cc',
56       'resources/prioritized_resource_unittest.cc',
57       'resources/prioritized_tile_set_unittest.cc',
58       'resources/raster_worker_pool_unittest.cc',
59       'resources/resource_provider_unittest.cc',
60       'resources/resource_update_controller_unittest.cc',
61       'resources/scoped_resource_unittest.cc',
62       'resources/tile_manager_unittest.cc',
63       'resources/tile_priority_unittest.cc',
64       'resources/video_resource_updater_unittest.cc',
65       'resources/worker_pool_unittest.cc',
66       'scheduler/delay_based_time_source_unittest.cc',
67       'scheduler/frame_rate_controller_unittest.cc',
68       'scheduler/rolling_time_delta_history_unittest.cc',
69       'scheduler/scheduler_state_machine_unittest.cc',
70       'scheduler/scheduler_unittest.cc',
71       'scheduler/texture_uploader_unittest.cc',
72       'test/fake_web_graphics_context_3d_unittest.cc',
73       'trees/damage_tracker_unittest.cc',
74       'trees/layer_sorter_unittest.cc',
75       'trees/layer_tree_host_common_unittest.cc',
76       'trees/layer_tree_host_impl_unittest.cc',
77       'trees/layer_tree_host_pixeltest_filters.cc',
78       'trees/layer_tree_host_pixeltest_masks.cc',
79       'trees/layer_tree_host_pixeltest_on_demand_raster.cc',
80       'trees/layer_tree_host_pixeltest_readback.cc',
81       'trees/layer_tree_host_unittest_animation.cc',
82       'trees/layer_tree_host_unittest.cc',
83       'trees/layer_tree_host_unittest_context.cc',
84       'trees/layer_tree_host_unittest_damage.cc',
85       'trees/layer_tree_host_unittest_delegated.cc',
86       'trees/layer_tree_host_unittest_occlusion.cc',
87       'trees/layer_tree_host_unittest_picture.cc',
88       'trees/layer_tree_host_unittest_scroll.cc',
89       'trees/layer_tree_host_unittest_video.cc',
90       'trees/occlusion_tracker_unittest.cc',
91       'trees/quad_culler_unittest.cc',
92       'trees/tree_synchronizer_unittest.cc',
93     ],
94     'cc_tests_support_files': [
95       'test/animation_test_common.cc',
96       'test/animation_test_common.h',
97       'test/fake_content_layer.cc',
98       'test/fake_content_layer.h',
99       'test/fake_content_layer_client.cc',
100       'test/fake_content_layer_client.h',
101       'test/fake_content_layer_impl.cc',
102       'test/fake_content_layer_impl.h',
103       'test/fake_delegated_renderer_layer.cc',
104       'test/fake_delegated_renderer_layer.h',
105       'test/fake_delegated_renderer_layer_impl.cc',
106       'test/fake_delegated_renderer_layer_impl.h',
107       'test/fake_impl_proxy.h',
108       'test/fake_layer_tree_host_client.cc',
109       'test/fake_layer_tree_host_client.h',
110       'test/fake_layer_tree_host_impl.cc',
111       'test/fake_layer_tree_host_impl_client.cc',
112       'test/fake_layer_tree_host_impl_client.h',
113       'test/fake_layer_tree_host_impl.h',
114       'test/fake_picture_layer.cc',
115       'test/fake_picture_layer.h',
116       'test/fake_picture_layer_impl.cc',
117       'test/fake_picture_layer_impl.h',
118       'test/fake_picture_layer_tiling_client.cc',
119       'test/fake_picture_layer_tiling_client.h',
120       'test/fake_picture_pile_impl.cc',
121       'test/fake_picture_pile_impl.h',
122       'test/fake_proxy.cc',
123       'test/fake_proxy.h',
124       'test/fake_rendering_stats_instrumentation.h',
125       'test/fake_scrollbar.cc',
126       'test/fake_scrollbar.h',
127       'test/fake_scrollbar_layer.cc',
128       'test/fake_scrollbar_layer.h',
129       'test/fake_tile_manager.cc',
130       'test/fake_tile_manager.h',
131       'test/fake_tile_manager_client.h',
132       'test/fake_tile_manager_client.cc',
133       'test/fake_output_surface.cc',
134       'test/fake_output_surface.h',
135       'test/fake_output_surface_client.cc',
136       'test/fake_output_surface_client.h',
137       'test/fake_scoped_ui_resource.cc',
138       'test/fake_scoped_ui_resource.h',
139       'test/fake_video_frame_provider.cc',
140       'test/fake_video_frame_provider.h',
141       'test/geometry_test_utils.cc',
142       'test/geometry_test_utils.h',
143       'test/impl_side_painting_settings.h',
144       'test/layer_test_common.cc',
145       'test/layer_test_common.h',
146       'test/layer_tree_pixel_test.cc',
147       'test/layer_tree_pixel_test.h',
148       'test/layer_tree_test.cc',
149       'test/layer_tree_test.h',
150       'test/layer_tree_json_parser.cc',
151       'test/layer_tree_json_parser.h',
152       'test/mock_quad_culler.cc',
153       'test/mock_quad_culler.h',
154       'test/occlusion_tracker_test_common.h',
155       'test/paths.cc',
156       'test/paths.h',
157       'test/pixel_test.cc',
158       'test/pixel_test.h',
159       'test/pixel_test_output_surface.cc',
160       'test/pixel_test_output_surface.h',
161       'test/pixel_test_software_output_device.cc',
162       'test/pixel_test_software_output_device.h',
163       'test/render_pass_test_common.cc',
164       'test/render_pass_test_common.h',
165       'test/render_pass_test_utils.cc',
166       'test/render_pass_test_utils.h',
167       'test/scheduler_test_common.cc',
168       'test/scheduler_test_common.h',
169       'test/solid_color_content_layer_client.h',
170       'test/solid_color_content_layer_client.cc',
171       'test/skia_common.cc',
172       'test/skia_common.h',
173       'test/test_tile_priorities.cc',
174       'test/test_tile_priorities.h',
175       'test/tiled_layer_test_common.cc',
176       'test/tiled_layer_test_common.h',
177     ],
178   },
179   'targets': [
180     {
181       'target_name': 'cc_unittests',
182       'type': '<(gtest_target_type)',
183       'dependencies': [
184         '../base/base.gyp:test_support_base',
185         '../gpu/gpu.gyp:gpu',
186         '../media/media.gyp:media',
187         '../skia/skia.gyp:skia',
188         '../testing/gmock.gyp:gmock',
189         '../testing/gtest.gyp:gtest',
190         '../ui/ui.gyp:ui',
191         '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
192         'cc.gyp:cc',
193         'cc_test_support',
194         'cc_test_utils',
195       ],
196       'sources': [
197         'test/run_all_unittests.cc',
198         'test/cc_test_suite.cc',
199         '<@(cc_unit_tests_source_files)',
200       ],
201       'include_dirs': [
202         'test',
203         '.',
204       ],
205       'conditions': [
206         ['OS == "android" and gtest_target_type == "shared_library"',
207           {
208             'dependencies': [
209               '../testing/android/native_test.gyp:native_test_native_code',
210             ],
211           }
212         ],
213         [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"',
214           {
215             'conditions': [
216               [ 'linux_use_tcmalloc==1',
217                 {
218                   'dependencies': [
219                     '../base/allocator/allocator.gyp:allocator',
220                   ],
221                 }
222               ],
223             ],
224           }
225         ],
226       ],
227       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
228       'msvs_disabled_warnings': [ 4267, ],
229     },
230     {
231       'target_name': 'cc_perftests',
232       'type': '<(gtest_target_type)',
233       'dependencies': [
234         '../base/base.gyp:test_support_base',
235         '../media/media.gyp:media',
236         '../skia/skia.gyp:skia',
237         '../testing/gmock.gyp:gmock',
238         '../testing/gtest.gyp:gtest',
239         '../ui/ui.gyp:ui',
240         'cc.gyp:cc',
241         'cc_test_support',
242       ],
243       'sources': [
244         'resources/raster_worker_pool_perftest.cc',
245         'resources/tile_manager_perftest.cc',
246         'resources/worker_pool_perftest.cc',
247         'test/cc_test_suite.cc',
248         'test/run_all_unittests.cc',
249         'trees/layer_tree_host_perftest.cc',
250       ],
251       'include_dirs': [
252         'test',
253         '.',
254       ],
255       'conditions': [
256         ['OS == "android" and gtest_target_type == "shared_library"',
257           {
258             'dependencies': [
259               '../testing/android/native_test.gyp:native_test_native_code',
260             ],
261           }
262         ],
263         # See http://crbug.com/162998#c4 for why this is needed.
264         ['OS=="linux" and linux_use_tcmalloc==1',
265           {
266             'dependencies': [
267               '../base/allocator/allocator.gyp:allocator',
268             ],
269           }
270         ],
271       ],
272       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
273       'msvs_disabled_warnings': [ 4267, ],
274     },
275     {
276       'target_name': 'cc_test_support',
277       'type': 'static_library',
278       'include_dirs': [
279         'test',
280         '.',
281         '..',
282       ],
283       'dependencies': [
284         '../skia/skia.gyp:skia',
285         '../testing/gmock.gyp:gmock',
286         '../testing/gtest.gyp:gtest',
287         '../third_party/WebKit/public/blink.gyp:blink_minimal',
288         '../third_party/mesa/mesa.gyp:osmesa',
289         '../ui/gl/gl.gyp:gl',
290         '../ui/ui.gyp:ui',
291       ],
292       'sources': [
293         '<@(cc_tests_support_files)',
294       ],
295       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
296       'msvs_disabled_warnings': [ 4267, ],
297     },
298     {
299       'target_name': 'cc_test_utils',
300       'type': 'static_library',
301       'include_dirs': [
302         '..'
303       ],
304       'sources': [
305         'test/pixel_comparator.cc',
306         'test/pixel_comparator.h',
307         'test/pixel_test_utils.cc',
308         'test/pixel_test_utils.h',
309       ],
310       'dependencies': [
311         '../skia/skia.gyp:skia',
312         '../ui/ui.gyp:ui',  # for png_codec
313       ],
314     },
315   ],
316   'conditions': [
317     # Special target to wrap a gtest_target_type==shared_library
318     # cc_unittests into an android apk for execution.
319     ['OS == "android" and gtest_target_type == "shared_library"',
320       {
321         'targets': [
322           {
323             'target_name': 'cc_unittests_apk',
324             'type': 'none',
325             'dependencies': [
326               'cc_unittests',
327             ],
328             'variables': {
329               'test_suite_name': 'cc_unittests',
330               'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_unittests<(SHARED_LIB_SUFFIX)',
331             },
332             'includes': [ '../build/apk_test.gypi' ],
333           },
334           {
335             'target_name': 'cc_perftests_apk',
336             'type': 'none',
337             'dependencies': [
338               'cc_perftests',
339             ],
340             'variables': {
341               'test_suite_name': 'cc_perftests',
342               'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_perftests<(SHARED_LIB_SUFFIX)',
343             },
344             'includes': [ '../build/apk_test.gypi' ],
345           },
346         ],
347       }
348     ]
349   ],