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 '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',
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',
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',
167 'test/pixel_test.cc',
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',
191 'target_name': 'cc_unittests',
192 'type': '<(gtest_target_type)',
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',
207 'test/run_all_unittests.cc',
208 'test/cc_test_suite.cc',
209 '<@(cc_unit_tests_source_files)',
216 ['OS == "android" and gtest_target_type == "shared_library"',
219 '../testing/android/native_test.gyp:native_test_native_code',
223 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"',
226 [ 'linux_use_tcmalloc==1',
229 '../base/allocator/allocator.gyp:allocator',
237 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
238 'msvs_disabled_warnings': [ 4267, ],
241 'target_name': 'cc_perftests',
242 'type': '<(gtest_target_type)',
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',
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',
261 'test/run_all_unittests.cc',
262 'trees/layer_tree_host_perftest.cc',
269 ['OS == "android" and gtest_target_type == "shared_library"',
272 '../testing/android/native_test.gyp:native_test_native_code',
276 # See http://crbug.com/162998#c4 for why this is needed.
277 ['OS=="linux" and linux_use_tcmalloc==1',
280 '../base/allocator/allocator.gyp:allocator',
285 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
286 'msvs_disabled_warnings': [ 4267, ],
289 'target_name': 'cc_test_support',
290 'type': 'static_library',
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',
306 '<@(cc_tests_support_files)',
308 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
309 'msvs_disabled_warnings': [ 4267, ],
312 'target_name': 'cc_test_utils',
313 'type': 'static_library',
318 'test/pixel_comparator.cc',
319 'test/pixel_comparator.h',
320 'test/pixel_test_utils.cc',
321 'test/pixel_test_utils.h',
324 '../skia/skia.gyp:skia',
325 '../ui/gfx/gfx.gyp:gfx',
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"',
336 'target_name': 'cc_unittests_apk',
342 'test_suite_name': 'cc_unittests',
343 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_unittests<(SHARED_LIB_SUFFIX)',
345 'includes': [ '../build/apk_test.gypi' ],
348 'target_name': 'cc_perftests_apk',
354 'test_suite_name': 'cc_perftests',
355 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_perftests<(SHARED_LIB_SUFFIX)',
357 'includes': [ '../build/apk_test.gypi' ],