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_tests_source_files': [
9 'hash_pair_unittest.cc',
10 'active_animation_unittest.cc',
11 'damage_tracker_unittest.cc',
12 'delay_based_time_source_unittest.cc',
13 'draw_quad_unittest.cc',
14 'delegated_renderer_layer_impl_unittest.cc',
15 'frame_rate_controller_unittest.cc',
16 'heads_up_display_unittest.cc',
17 'keyframed_animation_curve_unittest.cc',
18 'layer_animation_controller_unittest.cc',
19 'layer_impl_unittest.cc',
20 'layer_iterator_unittest.cc',
21 'layer_quad_unittest.cc',
22 'layer_sorter_unittest.cc',
23 'layer_tree_host_common_unittest.cc',
24 'layer_tree_host_impl_unittest.cc',
25 'layer_tree_host_unittest.cc',
26 'math_util_unittest.cc',
27 'occlusion_tracker_unittest.cc',
28 'prioritized_texture_unittest.cc',
29 'quad_culler_unittest.cc',
30 'software_renderer_unittest.cc',
31 'render_pass_unittest.cc',
32 'render_surface_filters_unittest.cc',
33 'render_surface_unittest.cc',
34 'gl_renderer_unittest.cc',
35 'resource_provider_unittest.cc',
36 'scheduler_state_machine_unittest.cc',
37 'scheduler_unittest.cc',
38 'scoped_texture_unittest.cc',
39 'scrollbar_animation_controller_linear_fade_unittest.cc',
40 'solid_color_layer_impl_unittest.cc',
41 'texture_update_controller_unittest.cc',
42 'thread_task_unittest.cc',
43 'threaded_unittest.cc',
44 'threaded_unittest.h',
46 'tiled_layer_impl_unittest.cc',
48 'content_layer_unittest.cc',
49 'float_quad_unittest.cc',
51 'scrollbar_layer_unittest.cc',
52 'texture_copier_unittest.cc',
53 'texture_layer_unittest.cc',
54 'throttled_texture_uploader_unittest.cc',
55 'tiled_layer_unittest.cc',
56 'tree_synchronizer_unittest.cc',
58 'cc_tests_support_files': [
59 'test/animation_test_common.cc',
60 'test/animation_test_common.h',
61 'test/compositor_fake_web_graphics_context_3d.h',
62 'test/fake_graphics_context.h',
63 'test/fake_graphics_context_3d_unittest.cc',
64 'test/fake_layer_tree_host_client.cc',
65 'test/fake_layer_tree_host_client.h',
66 'test/fake_web_compositor_output_surface.h',
67 'test/fake_web_compositor_software_output_device.h',
68 'test/fake_web_graphics_context_3d.h',
69 'test/fake_web_scrollbar_theme_geometry.h',
70 'test/geometry_test_utils.cc',
71 'test/geometry_test_utils.h',
72 'test/layer_test_common.cc',
73 'test/layer_test_common.h',
74 'test/layer_tree_test_common.h',
75 'test/mock_quad_culler.cc',
76 'test/mock_quad_culler.h',
77 'test/occlusion_tracker_test_common.h',
78 'test/render_pass_test_common.h',
79 'test/scheduler_test_common.cc',
80 'test/scheduler_test_common.h',
82 'test/tiled_layer_test_common.cc',
83 'test/tiled_layer_test_common.h',
84 'test/web_compositor_initializer.h',
89 'target_name': 'cc_unittests',
90 'type': '<(gtest_target_type)',
92 '../base/base.gyp:test_support_base',
93 '../skia/skia.gyp:skia',
94 '../testing/gmock.gyp:gmock',
95 '../testing/gtest.gyp:gtest',
96 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf',
101 'test/run_all_unittests.cc',
102 '<@(cc_tests_source_files)',
108 '../third_party/WebKit/Source/Platform/chromium',
111 ['OS == "android" and gtest_target_type == "shared_library"', {
113 '../testing/android/native_test.gyp:native_test_native_code',
119 'target_name': 'cc_test_support',
120 'type': 'static_library',
126 '../third_party/WebKit/Source/Platform/chromium',
129 '../ui/gl/gl.gyp:gl',
130 '../testing/gtest.gyp:gtest',
131 '../testing/gmock.gyp:gmock',
132 '../skia/skia.gyp:skia',
133 '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf',
134 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit_wtf_support',
135 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
136 '../webkit/compositor_bindings/compositor_bindings.gyp:webkit_compositor_support',
137 '../webkit/support/webkit_support.gyp:glue',
140 '<@(cc_tests_support_files)',
141 'test/test_webkit_platform.cc',
142 'test/test_webkit_platform.h',
147 # Special target to wrap a gtest_target_type==shared_library
148 # cc_unittests into an android apk for execution.
149 ['OS == "android" and gtest_target_type == "shared_library"', {
152 'target_name': 'cc_unittests_apk',
158 'test_suite_name': 'cc_unittests',
159 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_unittests<(SHARED_LIB_SUFFIX)',
161 'includes': [ '../build/apk_test.gypi' ],