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_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',
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',
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',
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',
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',
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',
130 'target_name': 'cc_unittests',
131 'type': '<(gtest_target_type)',
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',
139 '../webkit/support/webkit_support.gyp:webkit_gpu',
145 'test/run_all_unittests.cc',
146 'test/cc_test_suite.cc',
147 '<@(cc_unit_tests_source_files)',
152 '../third_party/WebKit/Source/Platform/chromium',
155 ['OS == "android" and gtest_target_type == "shared_library"', {
157 '../testing/android/native_test.gyp:native_test_native_code',
163 'target_name': 'cc_perftests',
164 'type': '<(gtest_target_type)',
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',
176 'layer_tree_host_perftest.cc',
177 'test/run_all_unittests.cc',
178 'test/cc_test_suite.cc',
183 '../third_party/WebKit/Source/Platform/chromium',
186 ['OS == "android" and gtest_target_type == "shared_library"', {
188 '../testing/android/native_test.gyp:native_test_native_code',
194 'target_name': 'cc_test_support',
195 'type': 'static_library',
200 '../third_party/WebKit/Source/Platform/chromium',
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',
212 '<@(cc_tests_support_files)',
216 'target_name': 'cc_test_utils',
217 'type': 'static_library',
222 'test/pixel_test_utils.cc',
223 'test/pixel_test_utils.h',
226 '../skia/skia.gyp:skia',
227 '../ui/ui.gyp:ui', # for png_codec
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"', {
237 'target_name': 'cc_unittests_apk',
243 'test_suite_name': 'cc_unittests',
244 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_unittests<(SHARED_LIB_SUFFIX)',
246 'includes': [ '../build/apk_test.gypi' ],
249 'target_name': 'cc_perftests_apk',
255 'test_suite_name': 'cc_perftests',
256 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_perftests<(SHARED_LIB_SUFFIX)',
258 'includes': [ '../build/apk_test.gypi' ],