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.
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 'input/top_controls_manager_unittest.cc',
23 'layers/content_layer_unittest.cc',
24 'layers/contents_scaling_layer_unittest.cc',
25 'layers/delegated_frame_provider_unittest.cc',
26 'layers/delegated_renderer_layer_impl_unittest.cc',
27 'layers/heads_up_display_unittest.cc',
28 'layers/layer_impl_unittest.cc',
29 'layers/layer_iterator_unittest.cc',
30 'layers/layer_position_constraint_unittest.cc',
31 'layers/layer_unittest.cc',
32 'layers/nine_patch_layer_impl_unittest.cc',
33 'layers/nine_patch_layer_unittest.cc',
34 'layers/picture_image_layer_impl_unittest.cc',
35 'layers/picture_layer_impl_unittest.cc',
36 'layers/render_surface_unittest.cc',
37 'layers/scrollbar_layer_unittest.cc',
38 'layers/solid_color_layer_impl_unittest.cc',
39 'layers/texture_layer_unittest.cc',
40 'layers/tiled_layer_impl_unittest.cc',
41 'layers/tiled_layer_unittest.cc',
42 'layers/ui_resource_layer_impl_unittest.cc',
43 'layers/ui_resource_layer_unittest.cc',
44 'output/delegating_renderer_unittest.cc',
45 'output/filter_operations_unittest.cc',
46 'output/gl_renderer_unittest.cc',
47 'output/output_surface_unittest.cc',
48 'output/renderer_pixeltest.cc',
49 'output/shader_unittest.cc',
50 'output/software_renderer_unittest.cc',
51 'quads/draw_quad_unittest.cc',
52 'quads/render_pass_unittest.cc',
53 'resources/layer_quad_unittest.cc',
54 'resources/picture_layer_tiling_set_unittest.cc',
55 'resources/picture_layer_tiling_unittest.cc',
56 'resources/picture_pile_impl_unittest.cc',
57 'resources/picture_pile_unittest.cc',
58 'resources/picture_unittest.cc',
59 'resources/prioritized_resource_unittest.cc',
60 'resources/prioritized_tile_set_unittest.cc',
61 'resources/raster_worker_pool_unittest.cc',
62 'resources/resource_provider_unittest.cc',
63 'resources/resource_update_controller_unittest.cc',
64 'resources/scoped_resource_unittest.cc',
65 'resources/texture_mailbox_deleter_unittest.cc',
66 'resources/tile_manager_unittest.cc',
67 'resources/tile_priority_unittest.cc',
68 'resources/video_resource_updater_unittest.cc',
69 'resources/worker_pool_unittest.cc',
70 'scheduler/delay_based_time_source_unittest.cc',
71 'scheduler/frame_rate_controller_unittest.cc',
72 'scheduler/rolling_time_delta_history_unittest.cc',
73 'scheduler/scheduler_state_machine_unittest.cc',
74 'scheduler/scheduler_unittest.cc',
75 'scheduler/texture_uploader_unittest.cc',
76 'test/fake_web_graphics_context_3d_unittest.cc',
77 'trees/damage_tracker_unittest.cc',
78 'trees/layer_sorter_unittest.cc',
79 'trees/layer_tree_host_common_unittest.cc',
80 'trees/layer_tree_host_impl_unittest.cc',
81 'trees/layer_tree_host_pixeltest_filters.cc',
82 'trees/layer_tree_host_pixeltest_masks.cc',
83 'trees/layer_tree_host_pixeltest_on_demand_raster.cc',
84 'trees/layer_tree_host_pixeltest_readback.cc',
85 'trees/layer_tree_host_unittest_animation.cc',
86 'trees/layer_tree_host_unittest.cc',
87 'trees/layer_tree_host_unittest_context.cc',
88 'trees/layer_tree_host_unittest_damage.cc',
89 'trees/layer_tree_host_unittest_delegated.cc',
90 'trees/layer_tree_host_unittest_occlusion.cc',
91 'trees/layer_tree_host_unittest_picture.cc',
92 'trees/layer_tree_host_unittest_scroll.cc',
93 'trees/layer_tree_host_unittest_video.cc',
94 'trees/occlusion_tracker_unittest.cc',
95 'trees/quad_culler_unittest.cc',
96 'trees/tree_synchronizer_unittest.cc',
98 'cc_tests_support_files': [
99 'test/animation_test_common.cc',
100 'test/animation_test_common.h',
101 'test/fake_content_layer.cc',
102 'test/fake_content_layer.h',
103 'test/fake_content_layer_client.cc',
104 'test/fake_content_layer_client.h',
105 'test/fake_content_layer_impl.cc',
106 'test/fake_content_layer_impl.h',
107 'test/fake_delegated_renderer_layer.cc',
108 'test/fake_delegated_renderer_layer.h',
109 'test/fake_delegated_renderer_layer_impl.cc',
110 'test/fake_delegated_renderer_layer_impl.h',
111 'test/fake_impl_proxy.h',
112 'test/fake_layer_tree_host_client.cc',
113 'test/fake_layer_tree_host_client.h',
114 'test/fake_layer_tree_host_impl.cc',
115 'test/fake_layer_tree_host_impl_client.cc',
116 'test/fake_layer_tree_host_impl_client.h',
117 'test/fake_layer_tree_host_impl.h',
118 'test/fake_painted_scrollbar_layer.cc',
119 'test/fake_painted_scrollbar_layer.h',
120 'test/fake_picture_layer.cc',
121 'test/fake_picture_layer.h',
122 'test/fake_picture_layer_impl.cc',
123 'test/fake_picture_layer_impl.h',
124 'test/fake_picture_layer_tiling_client.cc',
125 'test/fake_picture_layer_tiling_client.h',
126 'test/fake_picture_pile_impl.cc',
127 'test/fake_picture_pile_impl.h',
128 'test/fake_proxy.cc',
130 'test/fake_rendering_stats_instrumentation.h',
131 'test/fake_scrollbar.cc',
132 'test/fake_scrollbar.h',
133 'test/fake_tile_manager.cc',
134 'test/fake_tile_manager.h',
135 'test/fake_tile_manager_client.h',
136 'test/fake_tile_manager_client.cc',
137 'test/fake_ui_resource_layer_tree_host_impl.h',
138 'test/fake_ui_resource_layer_tree_host_impl.cc',
139 'test/fake_output_surface.cc',
140 'test/fake_output_surface.h',
141 'test/fake_output_surface_client.cc',
142 'test/fake_output_surface_client.h',
143 'test/fake_scoped_ui_resource.cc',
144 'test/fake_scoped_ui_resource.h',
145 'test/fake_video_frame_provider.cc',
146 'test/fake_video_frame_provider.h',
147 'test/geometry_test_utils.cc',
148 'test/geometry_test_utils.h',
149 'test/impl_side_painting_settings.h',
150 'test/layer_test_common.cc',
151 'test/layer_test_common.h',
152 'test/layer_tree_pixel_test.cc',
153 'test/layer_tree_pixel_test.h',
154 'test/layer_tree_test.cc',
155 'test/layer_tree_test.h',
156 'test/layer_tree_json_parser.cc',
157 'test/layer_tree_json_parser.h',
158 'test/mock_quad_culler.cc',
159 'test/mock_quad_culler.h',
160 'test/occlusion_tracker_test_common.h',
163 'test/pixel_test.cc',
165 'test/pixel_test_output_surface.cc',
166 'test/pixel_test_output_surface.h',
167 'test/pixel_test_software_output_device.cc',
168 'test/pixel_test_software_output_device.h',
169 'test/render_pass_test_common.cc',
170 'test/render_pass_test_common.h',
171 'test/render_pass_test_utils.cc',
172 'test/render_pass_test_utils.h',
173 'test/scheduler_test_common.cc',
174 'test/scheduler_test_common.h',
175 'test/solid_color_content_layer_client.h',
176 'test/solid_color_content_layer_client.cc',
177 'test/skia_common.cc',
178 'test/skia_common.h',
179 'test/test_tile_priorities.cc',
180 'test/test_tile_priorities.h',
181 'test/tiled_layer_test_common.cc',
182 'test/tiled_layer_test_common.h',
187 'target_name': 'cc_unittests',
188 'type': '<(gtest_target_type)',
190 '../base/base.gyp:test_support_base',
191 '../gpu/gpu.gyp:gpu',
192 '../media/media.gyp:media',
193 '../skia/skia.gyp:skia',
194 '../testing/gmock.gyp:gmock',
195 '../testing/gtest.gyp:gtest',
196 '../ui/gfx/gfx.gyp:gfx',
197 '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
203 'test/run_all_unittests.cc',
204 'test/cc_test_suite.cc',
205 '<@(cc_unit_tests_source_files)',
212 ['OS == "android" and gtest_target_type == "shared_library"',
215 '../testing/android/native_test.gyp:native_test_native_code',
219 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"',
222 [ 'linux_use_tcmalloc==1',
225 '../base/allocator/allocator.gyp:allocator',
233 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
234 'msvs_disabled_warnings': [ 4267, ],
237 'target_name': 'cc_perftests',
238 'type': '<(gtest_target_type)',
240 '../base/base.gyp:test_support_base',
241 '../media/media.gyp:media',
242 '../skia/skia.gyp:skia',
243 '../testing/gmock.gyp:gmock',
244 '../testing/gtest.gyp:gtest',
245 '../testing/perf/perf_test.gyp:*',
246 '../ui/gfx/gfx.gyp:gfx',
251 'resources/picture_layer_tiling_perftest.cc',
252 'resources/raster_worker_pool_perftest.cc',
253 'resources/tile_manager_perftest.cc',
254 'resources/worker_pool_perftest.cc',
255 'test/cc_test_suite.cc',
257 'test/run_all_unittests.cc',
258 'trees/layer_tree_host_perftest.cc',
265 ['OS == "android" and gtest_target_type == "shared_library"',
268 '../testing/android/native_test.gyp:native_test_native_code',
272 # See http://crbug.com/162998#c4 for why this is needed.
273 ['OS=="linux" and linux_use_tcmalloc==1',
276 '../base/allocator/allocator.gyp:allocator',
281 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
282 'msvs_disabled_warnings': [ 4267, ],
285 'target_name': 'cc_test_support',
286 'type': 'static_library',
293 '../skia/skia.gyp:skia',
294 '../testing/gmock.gyp:gmock',
295 '../testing/gtest.gyp:gtest',
296 '../third_party/WebKit/public/blink.gyp:blink_minimal',
297 '../third_party/mesa/mesa.gyp:osmesa',
298 '../ui/gfx/gfx.gyp:gfx',
299 '../ui/gl/gl.gyp:gl',
302 '<@(cc_tests_support_files)',
304 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
305 'msvs_disabled_warnings': [ 4267, ],
308 'target_name': 'cc_test_utils',
309 'type': 'static_library',
314 'test/pixel_comparator.cc',
315 'test/pixel_comparator.h',
316 'test/pixel_test_utils.cc',
317 'test/pixel_test_utils.h',
320 '../skia/skia.gyp:skia',
321 '../ui/gfx/gfx.gyp:gfx',
326 # Special target to wrap a gtest_target_type==shared_library
327 # cc_unittests into an android apk for execution.
328 ['OS == "android" and gtest_target_type == "shared_library"',
332 'target_name': 'cc_unittests_apk',
338 'test_suite_name': 'cc_unittests',
339 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_unittests<(SHARED_LIB_SUFFIX)',
341 'includes': [ '../build/apk_test.gypi' ],
344 'target_name': 'cc_perftests_apk',
350 'test_suite_name': 'cc_perftests',
351 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_perftests<(SHARED_LIB_SUFFIX)',
353 'includes': [ '../build/apk_test.gypi' ],