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