mac: Load the system hotkeys after launch. (reland)
[chromium-blink-merge.git] / cc / cc_tests.gyp
blob18d38f94e0bee2c283e79559c645e4a4d3e10490
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/scroll_offset_animation_curve_unittest.cc',
13       'animation/scrollbar_animation_controller_linear_fade_unittest.cc',
14       'animation/scrollbar_animation_controller_thinning_unittest.cc',
15       'animation/transform_operations_unittest.cc',
16       'base/delayed_unique_notifier_unittest.cc',
17       'base/float_quad_unittest.cc',
18       'base/math_util_unittest.cc',
19       'base/region_unittest.cc',
20       'base/rolling_time_delta_history_unittest.cc',
21       'base/scoped_ptr_vector_unittest.cc',
22       'base/tiling_data_unittest.cc',
23       'base/unique_notifier_unittest.cc',
24       'base/util_unittest.cc',
25       'debug/micro_benchmark_controller_unittest.cc',
26       'debug/rendering_stats_unittest.cc',
27       'input/top_controls_manager_unittest.cc',
28       'layers/content_layer_unittest.cc',
29       'layers/contents_scaling_layer_unittest.cc',
30       'layers/delegated_frame_provider_unittest.cc',
31       'layers/delegated_frame_resource_collection_unittest.cc',
32       'layers/delegated_renderer_layer_impl_unittest.cc',
33       'layers/heads_up_display_unittest.cc',
34       'layers/heads_up_display_layer_impl_unittest.cc',
35       'layers/io_surface_layer_impl_unittest.cc',
36       'layers/layer_impl_unittest.cc',
37       'layers/layer_iterator_unittest.cc',
38       'layers/layer_position_constraint_unittest.cc',
39       'layers/layer_unittest.cc',
40       'layers/layer_utils_unittest.cc',
41       'layers/nine_patch_layer_impl_unittest.cc',
42       'layers/nine_patch_layer_unittest.cc',
43       'layers/painted_scrollbar_layer_impl_unittest.cc',
44       'layers/picture_image_layer_impl_unittest.cc',
45       'layers/picture_layer_impl_unittest.cc',
46       'layers/picture_layer_unittest.cc',
47       'layers/render_surface_unittest.cc',
48       'layers/render_surface_impl_unittest.cc',
49       'layers/scrollbar_layer_unittest.cc',
50       'layers/solid_color_layer_impl_unittest.cc',
51       'layers/solid_color_scrollbar_layer_impl_unittest.cc',
52       'layers/surface_layer_impl_unittest.cc',
53       'layers/texture_layer_unittest.cc',
54       'layers/texture_layer_impl_unittest.cc',
55       'layers/tiled_layer_impl_unittest.cc',
56       'layers/tiled_layer_unittest.cc',
57       'layers/ui_resource_layer_impl_unittest.cc',
58       'layers/ui_resource_layer_unittest.cc',
59       'layers/video_layer_impl_unittest.cc',
60       'output/begin_frame_args_unittest.cc',
61       'output/bsp_tree_unittest.cc',
62       'output/delegating_renderer_unittest.cc',
63       'output/filter_operations_unittest.cc',
64       'output/gl_renderer_unittest.cc',
65       'output/output_surface_unittest.cc',
66       'output/overlay_unittest.cc',
67       'output/renderer_pixeltest.cc',
68       'output/renderer_unittest.cc',
69       'output/shader_unittest.cc',
70       'output/software_renderer_unittest.cc',
71       'quads/draw_polygon_unittest.cc',
72       'quads/draw_quad_unittest.cc',
73       'quads/render_pass_unittest.cc',
74       'resources/layer_quad_unittest.cc',
75       'resources/picture_layer_tiling_set_unittest.cc',
76       'resources/picture_layer_tiling_unittest.cc',
77       'resources/picture_pile_impl_unittest.cc',
78       'resources/picture_pile_unittest.cc',
79       'resources/picture_unittest.cc',
80       'resources/prioritized_resource_unittest.cc',
81       'resources/prioritized_tile_set_unittest.cc',
82       'resources/raster_worker_pool_unittest.cc',
83       'resources/resource_provider_unittest.cc',
84       'resources/resource_update_controller_unittest.cc',
85       'resources/scoped_resource_unittest.cc',
86       'resources/task_graph_runner_unittest.cc',
87       'resources/texture_mailbox_deleter_unittest.cc',
88       'resources/texture_uploader_unittest.cc',
89       'resources/tile_manager_unittest.cc',
90       'resources/tile_priority_unittest.cc',
91       'resources/video_resource_updater_unittest.cc',
92       'scheduler/delay_based_time_source_unittest.cc',
93       'scheduler/scheduler_state_machine_unittest.cc',
94       'scheduler/scheduler_unittest.cc',
95       'test/layer_tree_json_parser_unittest.cc',
96       'test/ordered_simple_task_runner_unittest.cc',
97       'test/test_web_graphics_context_3d_unittest.cc',
98       'trees/damage_tracker_unittest.cc',
99       'trees/layer_sorter_unittest.cc',
100       'trees/layer_tree_host_common_unittest.cc',
101       'trees/layer_tree_host_impl_unittest.cc',
102       'trees/layer_tree_host_pixeltest_blending.cc',
103       'trees/layer_tree_host_pixeltest_filters.cc',
104       'trees/layer_tree_host_pixeltest_masks.cc',
105       'trees/layer_tree_host_pixeltest_on_demand_raster.cc',
106       'trees/layer_tree_host_pixeltest_readback.cc',
107       'trees/layer_tree_host_unittest.cc',
108       'trees/layer_tree_host_unittest_animation.cc',
109       'trees/layer_tree_host_unittest_context.cc',
110       'trees/layer_tree_host_unittest_copyrequest.cc',
111       'trees/layer_tree_host_unittest_damage.cc',
112       'trees/layer_tree_host_unittest_delegated.cc',
113       'trees/layer_tree_host_unittest_occlusion.cc',
114       'trees/layer_tree_host_unittest_no_message_loop.cc',
115       'trees/layer_tree_host_unittest_picture.cc',
116       'trees/layer_tree_host_unittest_proxy.cc',
117       'trees/layer_tree_host_unittest_scroll.cc',
118       'trees/layer_tree_host_unittest_video.cc',
119       'trees/layer_tree_impl_unittest.cc',
120       'trees/occlusion_tracker_unittest.cc',
121       'trees/tree_synchronizer_unittest.cc',
122     ],
123     'cc_surfaces_unit_tests_source_files': [
124       'surfaces/surface_aggregator_test_helpers.cc',
125       'surfaces/surface_aggregator_test_helpers.h',
126       'surfaces/surface_aggregator_unittest.cc',
127       'surfaces/surface_factory_unittest.cc',
128       'surfaces/surface_unittest.cc',
129       'surfaces/surfaces_pixeltest.cc',
130     ],
131     'cc_tests_support_files': [
132       'test/animation_test_common.cc',
133       'test/animation_test_common.h',
134       'test/begin_frame_args_test.cc',
135       'test/begin_frame_args_test.h',
136       'test/fake_content_layer.cc',
137       'test/fake_content_layer.h',
138       'test/fake_content_layer_client.cc',
139       'test/fake_content_layer_client.h',
140       'test/fake_content_layer_impl.cc',
141       'test/fake_content_layer_impl.h',
142       'test/fake_delegated_renderer_layer.cc',
143       'test/fake_delegated_renderer_layer.h',
144       'test/fake_delegated_renderer_layer_impl.cc',
145       'test/fake_delegated_renderer_layer_impl.h',
146       'test/fake_impl_proxy.h',
147       'test/fake_layer_tree_host.cc',
148       'test/fake_layer_tree_host.h',
149       'test/fake_layer_tree_host_client.cc',
150       'test/fake_layer_tree_host_client.h',
151       'test/fake_layer_tree_host_impl.cc',
152       'test/fake_layer_tree_host_impl.h',
153       'test/fake_layer_tree_host_impl_client.cc',
154       'test/fake_layer_tree_host_impl_client.h',
155       'test/fake_output_surface.cc',
156       'test/fake_output_surface.h',
157       'test/fake_output_surface_client.cc',
158       'test/fake_output_surface_client.h',
159       'test/fake_painted_scrollbar_layer.cc',
160       'test/fake_painted_scrollbar_layer.h',
161       'test/fake_picture_layer.cc',
162       'test/fake_picture_layer.h',
163       'test/fake_picture_layer_impl.cc',
164       'test/fake_picture_layer_impl.h',
165       'test/fake_picture_layer_tiling_client.cc',
166       'test/fake_picture_layer_tiling_client.h',
167       'test/fake_picture_pile_impl.cc',
168       'test/fake_picture_pile_impl.h',
169       'test/fake_proxy.cc',
170       'test/fake_proxy.h',
171       'test/fake_renderer_client.cc',
172       'test/fake_renderer_client.h',
173       'test/fake_rendering_stats_instrumentation.h',
174       'test/fake_scoped_ui_resource.cc',
175       'test/fake_scoped_ui_resource.h',
176       'test/fake_scrollbar.cc',
177       'test/fake_scrollbar.h',
178       'test/fake_tile_manager.cc',
179       'test/fake_tile_manager.h',
180       'test/fake_tile_manager_client.cc',
181       'test/fake_tile_manager_client.h',
182       'test/fake_ui_resource_layer_tree_host_impl.cc',
183       'test/fake_ui_resource_layer_tree_host_impl.h',
184       'test/fake_video_frame_provider.cc',
185       'test/fake_video_frame_provider.h',
186       'test/geometry_test_utils.cc',
187       'test/geometry_test_utils.h',
188       'test/test_in_process_context_provider.cc',
189       'test/test_in_process_context_provider.h',
190       'test/impl_side_painting_settings.h',
191       'test/layer_test_common.cc',
192       'test/layer_test_common.h',
193       'test/layer_tree_host_common_test.cc',
194       'test/layer_tree_host_common_test.h',
195       'test/layer_tree_json_parser.cc',
196       'test/layer_tree_json_parser.h',
197       'test/layer_tree_pixel_test.cc',
198       'test/layer_tree_pixel_test.h',
199       'test/layer_tree_test.cc',
200       'test/layer_tree_test.h',
201       'test/mock_occlusion_tracker.h',
202       'test/ordered_simple_task_runner.cc',
203       'test/ordered_simple_task_runner.h',
204       'test/ordered_texture_map.cc',
205       'test/ordered_texture_map.h',
206       'test/paths.cc',
207       'test/paths.h',
208       'test/pixel_comparator.cc',
209       'test/pixel_comparator.h',
210       'test/pixel_test.cc',
211       'test/pixel_test.h',
212       'test/pixel_test_output_surface.cc',
213       'test/pixel_test_output_surface.h',
214       'test/pixel_test_software_output_device.cc',
215       'test/pixel_test_software_output_device.h',
216       'test/pixel_test_utils.cc',
217       'test/pixel_test_utils.h',
218       'test/render_pass_test_common.cc',
219       'test/render_pass_test_common.h',
220       'test/render_pass_test_utils.cc',
221       'test/render_pass_test_utils.h',
222       'test/scheduler_test_common.cc',
223       'test/scheduler_test_common.h',
224       'test/skia_common.cc',
225       'test/skia_common.h',
226       'test/solid_color_content_layer_client.cc',
227       'test/solid_color_content_layer_client.h',
228       'test/test_context_provider.cc',
229       'test/test_context_provider.h',
230       'test/test_context_support.cc',
231       'test/test_context_support.h',
232       'test/test_gles2_interface.cc',
233       'test/test_gles2_interface.h',
234       'test/test_occlusion_tracker.h',
235       'test/test_shared_bitmap_manager.cc',
236       'test/test_shared_bitmap_manager.h',
237       'test/test_texture.cc',
238       'test/test_texture.h',
239       'test/test_tile_priorities.cc',
240       'test/test_tile_priorities.h',
241       'test/test_web_graphics_context_3d.cc',
242       'test/test_web_graphics_context_3d.h',
243       'test/tiled_layer_test_common.cc',
244       'test/tiled_layer_test_common.h',
245     ],
246   },
247   'targets': [
248     {
249       'target_name': 'cc_unittests',
250       'type': '<(gtest_target_type)',
251       'dependencies': [
252         '../base/base.gyp:test_support_base',
253         '../gpu/gpu.gyp:gpu',
254         '../gpu/gpu.gyp:gpu_unittest_utils',
255         '../media/media.gyp:media',
256         '../skia/skia.gyp:skia',
257         '../testing/gmock.gyp:gmock',
258         '../testing/gtest.gyp:gtest',
259         '../ui/events/events.gyp:events_base',
260         '../ui/gfx/gfx.gyp:gfx',
261         '../ui/gfx/gfx.gyp:gfx_geometry',
262         'cc.gyp:cc',
263         'cc.gyp:cc_surfaces',
264         'cc_test_support',
265       ],
266       'sources': [
267         'test/run_all_unittests.cc',
268         'test/cc_test_suite.cc',
269         '<@(cc_unit_tests_source_files)',
270         '<@(cc_surfaces_unit_tests_source_files)',
271       ],
272       'include_dirs': [
273         'test',
274         '.',
275       ],
276       'conditions': [
277         ['OS == "android"',
278           {
279             'dependencies': [
280               '../testing/android/native_test.gyp:native_test_native_code',
281             ],
282           }
283         ],
284         [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"',
285           {
286             'conditions': [
287               [ 'use_allocator!="none"',
288                 {
289                   'dependencies': [
290                     '../base/allocator/allocator.gyp:allocator',
291                   ],
292                 }
293               ],
294             ],
295           }
296         ],
297       ],
298       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
299       'msvs_disabled_warnings': [ 4267, ],
300     },
301     {
302       # GN version: //cc/cc_perftests
303       'target_name': 'cc_perftests',
304       'type': '<(gtest_target_type)',
305       'dependencies': [
306         '../base/base.gyp:test_support_base',
307         '../gpu/gpu.gyp:gpu',
308         '../gpu/gpu.gyp:gpu_unittest_utils',
309         '../media/media.gyp:media',
310         '../skia/skia.gyp:skia',
311         '../testing/gmock.gyp:gmock',
312         '../testing/gtest.gyp:gtest',
313         '../testing/perf/perf_test.gyp:*',
314         '../ui/gfx/gfx.gyp:gfx',
315         '../ui/gfx/gfx.gyp:gfx_geometry',
316         'cc.gyp:cc',
317         'cc_test_support',
318       ],
319       'sources': [
320         # Note: sources list duplicated in GN build.
321         'layers/layer_perftest.cc',
322         'layers/picture_layer_impl_perftest.cc',
323         'resources/picture_layer_tiling_perftest.cc',
324         'resources/picture_pile_impl_perftest.cc',
325         'resources/raster_worker_pool_perftest.cc',
326         'resources/task_graph_runner_perftest.cc',
327         'resources/tile_manager_perftest.cc',
328         'test/cc_test_suite.cc',
329         'test/run_all_perftests.cc',
330         'trees/layer_tree_host_common_perftest.cc',
331         'trees/layer_tree_host_perftest.cc',
332         'trees/occlusion_tracker_perftest.cc',
333       ],
334       'include_dirs': [
335         'test',
336         '.',
337       ],
338       'conditions': [
339         ['OS == "android"',
340           {
341             'dependencies': [
342               '../testing/android/native_test.gyp:native_test_native_code',
343             ],
344           }
345         ],
346         # See http://crbug.com/162998#c4 for why this is needed.
347         ['OS=="linux" and use_allocator!="none"',
348           {
349             'dependencies': [
350               '../base/allocator/allocator.gyp:allocator',
351             ],
352           }
353         ],
354       ],
355       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
356       'msvs_disabled_warnings': [ 4267, ],
357     },
358     {
359       'target_name': 'cc_test_support',
360       'type': 'static_library',
361       'include_dirs': [
362         'test',
363         '.',
364         '..',
365       ],
366       'dependencies': [
367         '../base/base.gyp:base',
368         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
369         '../gpu/gpu.gyp:gles2_c_lib',
370         '../gpu/gpu.gyp:gles2_implementation',
371         '../gpu/gpu.gyp:gl_in_process_context',
372         '../gpu/gpu.gyp:gpu_unittest_utils',
373         '../gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings',
374         '../skia/skia.gyp:skia',
375         '../testing/gmock.gyp:gmock',
376         '../testing/gtest.gyp:gtest',
377         '../third_party/mesa/mesa.gyp:osmesa',
378         '../ui/gfx/gfx.gyp:gfx',
379         '../ui/gfx/gfx.gyp:gfx_geometry',
380         '../ui/gfx/gfx.gyp:gfx_test_support',
381         '../ui/gl/gl.gyp:gl',
382       ],
383       'sources': [
384         '<@(cc_tests_support_files)',
385       ],
386       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
387       'msvs_disabled_warnings': [ 4267, ],
388     },
389   ],
390   'conditions': [
391     ['OS == "android"',
392       {
393         'targets': [
394           {
395             'target_name': 'cc_unittests_apk',
396             'type': 'none',
397             'dependencies': [
398               'cc_unittests',
399             ],
400             'variables': {
401               'test_suite_name': 'cc_unittests',
402             },
403             'includes': [ '../build/apk_test.gypi' ],
404           },
405           {
406             'target_name': 'cc_perftests_apk',
407             'type': 'none',
408             'dependencies': [
409               'cc_perftests',
410             ],
411             'variables': {
412               'test_suite_name': 'cc_perftests',
413             },
414             'includes': [ '../build/apk_test.gypi' ],
415           },
416         ],
417       }
418     ]
419   ],