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