Depend on stored sync session GUID for Android.
[chromium-blink-merge.git] / cc / cc_tests.gyp
blobc2da8c98fb63275cf707ff1d9eec821c80f507d6
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       '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',
30       'layer_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',
39       'region_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',
60     ],
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',
73       'test/fake_proxy.cc',
74       'test/fake_proxy.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',
95     ],
96   },
97   'targets': [
98     {
99       'target_name': 'cc_unittests',
100       'type': '<(gtest_target_type)',
101       'dependencies': [
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',
107         '../ui/ui.gyp:ui',
108         'cc.gyp:cc',
109         'cc_test_support',
110       ],
111       'sources': [
112         'test/run_all_unittests.cc',
113         '<@(cc_unit_tests_source_files)',
114       ],
115       'include_dirs': [
116         'test',
117         '.',
118         '../third_party/WebKit/Source/Platform/chromium',
119       ],
120       'conditions': [
121         ['OS == "android" and gtest_target_type == "shared_library"', {
122           'dependencies': [
123             '../testing/android/native_test.gyp:native_test_native_code',
124           ],
125         }],
126       ],
127     },
128     {
129       'target_name': 'cc_perftests',
130       'type': '<(gtest_target_type)',
131       'dependencies': [
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',
137         '../ui/ui.gyp:ui',
138         'cc.gyp:cc',
139         'cc_test_support',
140       ],
141       'sources': [
142         'layer_tree_host_perftest.cc',
143         'test/run_all_unittests.cc',
144       ],
145       'include_dirs': [
146         'test',
147         '.',
148         '../third_party/WebKit/Source/Platform/chromium',
149       ],
150       'conditions': [
151         ['OS == "android" and gtest_target_type == "shared_library"', {
152           'dependencies': [
153             '../testing/android/native_test.gyp:native_test_native_code',
154           ],
155         }],
156       ],
157     },
158     {
159       'target_name': 'cc_test_support',
160       'type': 'static_library',
161       'include_dirs': [
162         'test',
163         '.',
164         '..',
165         '../third_party/WebKit/Source/Platform/chromium',
166       ],
167       'dependencies': [
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',
173       ],
174       'sources': [
175         '<@(cc_tests_support_files)',
176       ],
177     },
178   ],
179   'conditions': [
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"', {
183       'targets': [
184         {
185           'target_name': 'cc_unittests_apk',
186           'type': 'none',
187           'dependencies': [
188             'cc_unittests',
189           ],
190           'variables': {
191             'test_suite_name': 'cc_unittests',
192             'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_unittests<(SHARED_LIB_SUFFIX)',
193           },
194           'includes': [ '../build/apk_test.gypi' ],
195         },
196       ],
197     }],
198     ['OS == "android" and gtest_target_type == "shared_library"', {
199       'targets': [
200         {
201           'target_name': 'cc_perftests_apk',
202           'type': 'none',
203           'dependencies': [
204             'cc_perftests',
205           ],
206           'variables': {
207             'test_suite_name': 'cc_perftests',
208             'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_perftests<(SHARED_LIB_SUFFIX)',
209           },
210           'includes': [ '../build/apk_test.gypi' ],
211         },
212       ],
213     }]
214   ],