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