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