Use TargetTransform instead of transform in ConvertPointFor/FromAncestor
[chromium-blink-merge.git] / cc / cc_tests.gyp
blob0fd86c25954cbb4b9c6642d55b34e8d15dfc7ca0
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': 0,
8     'cc_unit_tests_source_files': [
9       'animation_unittest.cc',
10       'content_layer_unittest.cc',
11       'contents_scaling_layer_unittest.cc',
12       'damage_tracker_unittest.cc',
13       'delay_based_time_source_unittest.cc',
14       'delegated_renderer_layer_impl_unittest.cc',
15       'draw_quad_unittest.cc',
16       'float_quad_unittest.cc',
17       'frame_rate_controller_unittest.cc',
18       'gl_renderer_unittest.cc',
19       'gl_renderer_pixeltest.cc',
20       'hash_pair_unittest.cc',
21       'heads_up_display_unittest.cc',
22       'keyframed_animation_curve_unittest.cc',
23       'layer_animation_controller_unittest.cc',
24       'layer_impl_unittest.cc',
25       'layer_iterator_unittest.cc',
26       'layer_quad_unittest.cc',
27       'layer_sorter_unittest.cc',
28       'layer_tree_host_common_unittest.cc',
29       'layer_tree_host_impl_unittest.cc',
30       'layer_tree_host_unittest.cc',
31       'layer_tree_host_unittest_animation.cc',
32       'layer_tree_host_unittest_context.cc',
33       'layer_tree_host_unittest_occlusion.cc',
34       'layer_tree_host_unittest_scroll.cc',
35       'layer_unittest.cc',
36       'math_util_unittest.cc',
37       'nine_patch_layer_impl_unittest.cc',
38       'nine_patch_layer_unittest.cc',
39       'occlusion_tracker_unittest.cc',
40       'picture_layer_tiling_set_unittest.cc',
41       'picture_layer_tiling_unittest.cc',
42       'prioritized_resource_unittest.cc',
43       'quad_culler_unittest.cc',
44       'region_unittest.cc',
45       'render_pass_unittest.cc',
46       'render_surface_filters_unittest.cc',
47       'render_surface_unittest.cc',
48       'resource_provider_unittest.cc',
49       'resource_update_controller_unittest.cc',
50       'scheduler_state_machine_unittest.cc',
51       'scheduler_unittest.cc',
52       'scoped_resource_unittest.cc',
53       'scrollbar_animation_controller_linear_fade_unittest.cc',
54       'scrollbar_layer_unittest.cc',
55       'software_renderer_unittest.cc',
56       'solid_color_layer_impl_unittest.cc',
57       'texture_copier_unittest.cc',
58       'texture_layer_unittest.cc',
59       'texture_uploader_unittest.cc',
60       'tile_priority_unittest.cc',
61       'tiled_layer_impl_unittest.cc',
62       'tiled_layer_unittest.cc',
63       'tree_synchronizer_unittest.cc',
64       'timing_function_unittest.cc',
65       'test/fake_web_graphics_context_3d_unittest.cc',
66     ],
67     'cc_tests_support_files': [
68       'test/animation_test_common.cc',
69       'test/animation_test_common.h',
70       'test/fake_content_layer.cc',
71       'test/fake_content_layer.h',
72       'test/fake_content_layer_client.cc',
73       'test/fake_content_layer_client.h',
74       'test/fake_content_layer_impl.cc',
75       'test/fake_content_layer_impl.h',
76       'test/fake_impl_proxy.h',
77       'test/fake_output_surface.h',
78       'test/fake_layer_tree_host_client.cc',
79       'test/fake_layer_tree_host_client.h',
80       'test/fake_layer_tree_host_impl.cc',
81       'test/fake_layer_tree_host_impl_client.cc',
82       'test/fake_layer_tree_host_impl_client.h',
83       'test/fake_layer_tree_host_impl.h',
84       'test/fake_picture_layer_tiling_client.cc',
85       'test/fake_picture_layer_tiling_client.h',
86       'test/fake_proxy.cc',
87       'test/fake_proxy.h',
88       'test/fake_scrollbar_layer.cc',
89       'test/fake_scrollbar_layer.h',
90       'test/fake_scrollbar_theme_painter.h',
91       'test/fake_scrollbar_theme_painter.cc',
92       'test/fake_tile_manager_client.h',
93       'test/fake_output_surface.cc',
94       'test/fake_output_surface.h',
95       'test/fake_software_output_device.cc',
96       'test/fake_software_output_device.h',
97       'test/fake_video_frame_provider.cc',
98       'test/fake_video_frame_provider.h',
99       'test/fake_web_graphics_context_3d.cc',
100       'test/fake_web_graphics_context_3d.h',
101       'test/fake_web_scrollbar.cc',
102       'test/fake_web_scrollbar.h',
103       'test/fake_web_scrollbar_theme_geometry.cc',
104       'test/fake_web_scrollbar_theme_geometry.h',
105       'test/geometry_test_utils.cc',
106       'test/geometry_test_utils.h',
107       'test/layer_test_common.cc',
108       'test/layer_test_common.h',
109       'test/layer_tree_test_common.cc',
110       'test/layer_tree_test_common.h',
111       'test/mock_quad_culler.cc',
112       'test/mock_quad_culler.h',
113       'test/occlusion_tracker_test_common.h',
114       'test/paths.cc',
115       'test/paths.h',
116       'test/pixel_test_output_surface.cc',
117       'test/pixel_test_output_surface.h',
118       'test/render_pass_test_common.cc',
119       'test/render_pass_test_common.h',
120       'test/render_pass_test_utils.cc',
121       'test/render_pass_test_utils.h',
122       'test/scheduler_test_common.cc',
123       'test/scheduler_test_common.h',
124       'test/tiled_layer_test_common.cc',
125       'test/tiled_layer_test_common.h',
126     ],
127   },
128   'targets': [
129     {
130       'target_name': 'cc_unittests',
131       'type': '<(gtest_target_type)',
132       'dependencies': [
133         '../base/base.gyp:test_support_base',
134         '../media/media.gyp:media',
135         '../skia/skia.gyp:skia',
136         '../testing/gmock.gyp:gmock',
137         '../testing/gtest.gyp:gtest',
138         '../ui/ui.gyp:ui',
139         '../webkit/support/webkit_support.gyp:webkit_gpu',
140         'cc.gyp:cc',
141         'cc_test_support',
142         'cc_test_utils',
143       ],
144       'sources': [
145         'test/run_all_unittests.cc',
146         'test/cc_test_suite.cc',
147         '<@(cc_unit_tests_source_files)',
148       ],
149       'include_dirs': [
150         'test',
151         '.',
152         '../third_party/WebKit/Source/Platform/chromium',
153       ],
154       'conditions': [
155         ['OS == "android" and gtest_target_type == "shared_library"', {
156           'dependencies': [
157             '../testing/android/native_test.gyp:native_test_native_code',
158           ],
159         }],
160       ],
161     },
162     {
163       'target_name': 'cc_perftests',
164       'type': '<(gtest_target_type)',
165       'dependencies': [
166         '../base/base.gyp:test_support_base',
167         '../media/media.gyp:media',
168         '../skia/skia.gyp:skia',
169         '../testing/gmock.gyp:gmock',
170         '../testing/gtest.gyp:gtest',
171         '../ui/ui.gyp:ui',
172         'cc.gyp:cc',
173         'cc_test_support',
174       ],
175       'sources': [
176         'layer_tree_host_perftest.cc',
177         'test/run_all_unittests.cc',
178         'test/cc_test_suite.cc',
179       ],
180       'include_dirs': [
181         'test',
182         '.',
183         '../third_party/WebKit/Source/Platform/chromium',
184       ],
185       'conditions': [
186         ['OS == "android" and gtest_target_type == "shared_library"', {
187           'dependencies': [
188             '../testing/android/native_test.gyp:native_test_native_code',
189           ],
190         }],
191       ],
192     },
193     {
194       'target_name': 'cc_test_support',
195       'type': 'static_library',
196       'include_dirs': [
197         'test',
198         '.',
199         '..',
200         '../third_party/WebKit/Source/Platform/chromium',
201       ],
202       'dependencies': [
203         '../skia/skia.gyp:skia',
204         '../testing/gmock.gyp:gmock',
205         '../testing/gtest.gyp:gtest',
206         '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
207         '../third_party/mesa/mesa.gyp:osmesa',
208         '../ui/gl/gl.gyp:gl',
209         '../ui/ui.gyp:ui',
210       ],
211       'sources': [
212         '<@(cc_tests_support_files)',
213       ],
214     },
215     {
216       'target_name': 'cc_test_utils',
217       'type': 'static_library',
218       'include_dirs': [
219         '..'
220       ],
221       'sources': [
222         'test/pixel_test_utils.cc',
223         'test/pixel_test_utils.h',
224       ],
225       'dependencies': [
226         '../skia/skia.gyp:skia',
227         '../ui/ui.gyp:ui',  # for png_codec
228       ],
229     },
230   ],
231   'conditions': [
232     # Special target to wrap a gtest_target_type==shared_library
233     # cc_unittests into an android apk for execution.
234     ['OS == "android" and gtest_target_type == "shared_library"', {
235       'targets': [
236         {
237           'target_name': 'cc_unittests_apk',
238           'type': 'none',
239           'dependencies': [
240             'cc_unittests',
241           ],
242           'variables': {
243             'test_suite_name': 'cc_unittests',
244             'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_unittests<(SHARED_LIB_SUFFIX)',
245           },
246           'includes': [ '../build/apk_test.gypi' ],
247         },
248         {
249           'target_name': 'cc_perftests_apk',
250           'type': 'none',
251           'dependencies': [
252             'cc_perftests',
253           ],
254           'variables': {
255             'test_suite_name': 'cc_perftests',
256             'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_perftests<(SHARED_LIB_SUFFIX)',
257           },
258           'includes': [ '../build/apk_test.gypi' ],
259         },
260       ],
261     }]
262   ],