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