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 'active_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 'hash_pair_unittest.cc',
20 'heads_up_display_unittest.cc',
21 'keyframed_animation_curve_unittest.cc',
22 'layer_animation_controller_unittest.cc',
23 'layer_impl_unittest.cc',
24 'layer_iterator_unittest.cc',
25 'layer_quad_unittest.cc',
26 'layer_sorter_unittest.cc',
27 'layer_tree_host_common_unittest.cc',
28 'layer_tree_host_impl_unittest.cc',
29 'layer_tree_host_unittest.cc',
31 'math_util_unittest.cc',
32 'nine_patch_layer_impl_unittest.cc',
33 'nine_patch_layer_unittest.cc',
34 'occlusion_tracker_unittest.cc',
35 'picture_layer_tiling_set_unittest.cc',
36 'picture_layer_tiling_unittest.cc',
37 'prioritized_resource_unittest.cc',
38 'quad_culler_unittest.cc',
40 'render_pass_unittest.cc',
41 'render_surface_filters_unittest.cc',
42 'render_surface_unittest.cc',
43 'resource_provider_unittest.cc',
44 'resource_update_controller_unittest.cc',
45 'scheduler_state_machine_unittest.cc',
46 'scheduler_unittest.cc',
47 'scoped_resource_unittest.cc',
48 'scrollbar_animation_controller_linear_fade_unittest.cc',
49 'scrollbar_layer_unittest.cc',
50 'software_renderer_unittest.cc',
51 'solid_color_layer_impl_unittest.cc',
52 'texture_copier_unittest.cc',
53 'texture_layer_unittest.cc',
54 'texture_uploader_unittest.cc',
55 'tile_priority_unittest.cc',
56 'tiled_layer_impl_unittest.cc',
57 'tiled_layer_unittest.cc',
58 'tree_synchronizer_unittest.cc',
59 'timing_function_unittest.cc',
61 'cc_tests_support_files': [
62 'test/animation_test_common.cc',
63 'test/animation_test_common.h',
64 'test/compositor_fake_web_graphics_context_3d.h',
65 'test/fake_content_layer_client.cc',
66 'test/fake_content_layer_client.h',
67 'test/fake_graphics_context.h',
68 'test/fake_graphics_context_3d_unittest.cc',
69 'test/fake_layer_tree_host_client.cc',
70 'test/fake_layer_tree_host_client.h',
71 'test/fake_picture_layer_tiling_client.cc',
72 'test/fake_picture_layer_tiling_client.h',
75 'test/fake_tile_manager_client.h',
76 'test/fake_web_compositor_output_surface.h',
77 'test/fake_web_compositor_software_output_device.h',
78 'test/fake_web_graphics_context_3d.h',
79 'test/fake_web_scrollbar_theme_geometry.h',
80 'test/geometry_test_utils.cc',
81 'test/geometry_test_utils.h',
82 'test/layer_test_common.cc',
83 'test/layer_test_common.h',
84 'test/layer_tree_test_common.cc',
85 'test/layer_tree_test_common.h',
86 'test/mock_quad_culler.cc',
87 'test/mock_quad_culler.h',
88 'test/occlusion_tracker_test_common.h',
89 'test/render_pass_test_common.cc',
90 'test/render_pass_test_common.h',
91 'test/scheduler_test_common.cc',
92 'test/scheduler_test_common.h',
93 'test/tiled_layer_test_common.cc',
94 'test/tiled_layer_test_common.h',
99 'target_name': 'cc_unittests',
100 'type': '<(gtest_target_type)',
102 '../base/base.gyp:test_support_base',
103 '../media/media.gyp:media',
104 '../skia/skia.gyp:skia',
105 '../testing/gmock.gyp:gmock',
106 '../testing/gtest.gyp:gtest',
112 'test/run_all_unittests.cc',
113 '<@(cc_unit_tests_source_files)',
118 '../third_party/WebKit/Source/Platform/chromium',
121 ['OS == "android" and gtest_target_type == "shared_library"', {
123 '../testing/android/native_test.gyp:native_test_native_code',
129 'target_name': 'cc_perftests',
130 'type': '<(gtest_target_type)',
132 '../base/base.gyp:test_support_base',
133 '../media/media.gyp:media',
134 '../skia/skia.gyp:skia',
135 '../testing/gmock.gyp:gmock',
136 '../testing/gtest.gyp:gtest',
142 'layer_tree_host_perftest.cc',
143 'test/run_all_unittests.cc',
148 '../third_party/WebKit/Source/Platform/chromium',
151 ['OS == "android" and gtest_target_type == "shared_library"', {
153 '../testing/android/native_test.gyp:native_test_native_code',
159 'target_name': 'cc_test_support',
160 'type': 'static_library',
165 '../third_party/WebKit/Source/Platform/chromium',
168 '../ui/gl/gl.gyp:gl',
169 '../testing/gtest.gyp:gtest',
170 '../testing/gmock.gyp:gmock',
171 '../skia/skia.gyp:skia',
172 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
175 '<@(cc_tests_support_files)',
180 # Special target to wrap a gtest_target_type==shared_library
181 # cc_unittests into an android apk for execution.
182 ['OS == "android" and gtest_target_type == "shared_library"', {
185 'target_name': 'cc_unittests_apk',
191 'test_suite_name': 'cc_unittests',
192 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_unittests<(SHARED_LIB_SUFFIX)',
194 'includes': [ '../build/apk_test.gypi' ],
198 ['OS == "android" and gtest_target_type == "shared_library"', {
201 'target_name': 'cc_perftests_apk',
207 'test_suite_name': 'cc_perftests',
208 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_perftests<(SHARED_LIB_SUFFIX)',
210 'includes': [ '../build/apk_test.gypi' ],