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