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