[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 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. |
| 4 | |
| 5 | { |
| 6 | 'variables': { |
| 7 | 'chromium_code': 0, |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 8 | 'cc_tests_source_files': [ |
[email protected] | c79f147 | 2012-10-12 19:40:56 | [diff] [blame] | 9 | 'active_animation_unittest.cc', |
[email protected] | 7e691b843 | 2012-11-07 05:02:20 | [diff] [blame] | 10 | 'content_layer_unittest.cc', |
[email protected] | 904e913 | 2012-11-01 00:12:47 | [diff] [blame] | 11 | 'contents_scaling_layer_unittest.cc', |
[email protected] | c79f147 | 2012-10-12 19:40:56 | [diff] [blame] | 12 | 'damage_tracker_unittest.cc', |
| 13 | 'delay_based_time_source_unittest.cc', |
[email protected] | 1c0088f | 2012-10-17 00:29:30 | [diff] [blame] | 14 | 'delegated_renderer_layer_impl_unittest.cc', |
[email protected] | 7e691b843 | 2012-11-07 05:02:20 | [diff] [blame] | 15 | 'draw_quad_unittest.cc', |
| 16 | 'float_quad_unittest.cc', |
[email protected] | c79f147 | 2012-10-12 19:40:56 | [diff] [blame] | 17 | 'frame_rate_controller_unittest.cc', |
[email protected] | 7e691b843 | 2012-11-07 05:02:20 | [diff] [blame] | 18 | 'gl_renderer_unittest.cc', |
| 19 | 'hash_pair_unittest.cc', |
[email protected] | c79f147 | 2012-10-12 19:40:56 | [diff] [blame] | 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', |
[email protected] | 7e691b843 | 2012-11-07 05:02:20 | [diff] [blame] | 30 | 'layer_unittest.cc', |
[email protected] | c79f147 | 2012-10-12 19:40:56 | [diff] [blame] | 31 | 'math_util_unittest.cc', |
[email protected] | 35680c0 | 2012-11-06 05:53:00 | [diff] [blame] | 32 | 'nine_patch_layer_impl_unittest.cc', |
[email protected] | 7e691b843 | 2012-11-07 05:02:20 | [diff] [blame] | 33 | 'nine_patch_layer_unittest.cc', |
[email protected] | c79f147 | 2012-10-12 19:40:56 | [diff] [blame] | 34 | 'occlusion_tracker_unittest.cc', |
[email protected] | cd69627 | 2012-11-21 19:15:27 | [diff] [blame] | 35 | 'picture_layer_tiling_set_unittest.cc', |
| 36 | 'picture_layer_tiling_unittest.cc', |
[email protected] | 3b10a30 | 2012-11-07 21:16:40 | [diff] [blame] | 37 | 'prioritized_resource_unittest.cc', |
[email protected] | c79f147 | 2012-10-12 19:40:56 | [diff] [blame] | 38 | 'quad_culler_unittest.cc', |
[email protected] | ac7c7f5 | 2012-11-08 06:26:50 | [diff] [blame] | 39 | 'region_unittest.cc', |
[email protected] | c79f147 | 2012-10-12 19:40:56 | [diff] [blame] | 40 | 'render_pass_unittest.cc', |
| 41 | 'render_surface_filters_unittest.cc', |
| 42 | 'render_surface_unittest.cc', |
[email protected] | c79f147 | 2012-10-12 19:40:56 | [diff] [blame] | 43 | 'resource_provider_unittest.cc', |
[email protected] | 7e691b843 | 2012-11-07 05:02:20 | [diff] [blame] | 44 | 'resource_update_controller_unittest.cc', |
[email protected] | c79f147 | 2012-10-12 19:40:56 | [diff] [blame] | 45 | 'scheduler_state_machine_unittest.cc', |
| 46 | 'scheduler_unittest.cc', |
[email protected] | f7685bc | 2012-11-08 17:32:33 | [diff] [blame] | 47 | 'scoped_resource_unittest.cc', |
[email protected] | c79f147 | 2012-10-12 19:40:56 | [diff] [blame] | 48 | 'scrollbar_animation_controller_linear_fade_unittest.cc', |
[email protected] | 1c0088f | 2012-10-17 00:29:30 | [diff] [blame] | 49 | 'scrollbar_layer_unittest.cc', |
[email protected] | 7e691b843 | 2012-11-07 05:02:20 | [diff] [blame] | 50 | 'software_renderer_unittest.cc', |
| 51 | 'solid_color_layer_impl_unittest.cc', |
[email protected] | 1c0088f | 2012-10-17 00:29:30 | [diff] [blame] | 52 | 'texture_copier_unittest.cc', |
| 53 | 'texture_layer_unittest.cc', |
[email protected] | e224959 | 2012-10-19 06:59:09 | [diff] [blame] | 54 | 'texture_uploader_unittest.cc', |
[email protected] | 7e691b843 | 2012-11-07 05:02:20 | [diff] [blame] | 55 | 'tiled_layer_impl_unittest.cc', |
[email protected] | 1c0088f | 2012-10-17 00:29:30 | [diff] [blame] | 56 | 'tiled_layer_unittest.cc', |
[email protected] | c79f147 | 2012-10-12 19:40:56 | [diff] [blame] | 57 | 'tree_synchronizer_unittest.cc', |
[email protected] | 114e65d | 2012-11-07 04:59:34 | [diff] [blame] | 58 | 'timing_function_unittest.cc', |
[email protected] | c0dd24c | 2012-08-30 23:25:27 | [diff] [blame] | 59 | ], |
| 60 | 'cc_tests_support_files': [ |
[email protected] | c79f147 | 2012-10-12 19:40:56 | [diff] [blame] | 61 | 'test/animation_test_common.cc', |
[email protected] | 0fb2500 | 2012-10-12 07:20:02 | [diff] [blame] | 62 | 'test/animation_test_common.h', |
[email protected] | 0fb2500 | 2012-10-12 07:20:02 | [diff] [blame] | 63 | 'test/compositor_fake_web_graphics_context_3d.h', |
[email protected] | e56e4d88 | 2012-11-09 02:19:44 | [diff] [blame] | 64 | 'test/fake_content_layer_client.cc', |
| 65 | 'test/fake_content_layer_client.h', |
[email protected] | 0fb2500 | 2012-10-12 07:20:02 | [diff] [blame] | 66 | 'test/fake_graphics_context.h', |
[email protected] | 101441ce | 2012-10-16 01:45:03 | [diff] [blame] | 67 | 'test/fake_graphics_context_3d_unittest.cc', |
| 68 | 'test/fake_layer_tree_host_client.cc', |
[email protected] | 0fb2500 | 2012-10-12 07:20:02 | [diff] [blame] | 69 | 'test/fake_layer_tree_host_client.h', |
[email protected] | cd69627 | 2012-11-21 19:15:27 | [diff] [blame] | 70 | 'test/fake_picture_layer_tiling_client.cc', |
| 71 | 'test/fake_picture_layer_tiling_client.h', |
[email protected] | 61de581 | 2012-11-08 07:03:44 | [diff] [blame] | 72 | 'test/fake_proxy.cc', |
| 73 | 'test/fake_proxy.h', |
[email protected] | cd69627 | 2012-11-21 19:15:27 | [diff] [blame] | 74 | 'test/fake_tile_manager_client.h', |
[email protected] | 0fb2500 | 2012-10-12 07:20:02 | [diff] [blame] | 75 | 'test/fake_web_compositor_output_surface.h', |
| 76 | 'test/fake_web_compositor_software_output_device.h', |
| 77 | 'test/fake_web_graphics_context_3d.h', |
| 78 | 'test/fake_web_scrollbar_theme_geometry.h', |
[email protected] | 101441ce | 2012-10-16 01:45:03 | [diff] [blame] | 79 | 'test/geometry_test_utils.cc', |
| 80 | 'test/geometry_test_utils.h', |
| 81 | 'test/layer_test_common.cc', |
| 82 | 'test/layer_test_common.h', |
[email protected] | 741e968 | 2012-10-19 19:36:12 | [diff] [blame] | 83 | 'test/layer_tree_test_common.cc', |
[email protected] | 101441ce | 2012-10-16 01:45:03 | [diff] [blame] | 84 | 'test/layer_tree_test_common.h', |
| 85 | 'test/mock_quad_culler.cc', |
[email protected] | 0fb2500 | 2012-10-12 07:20:02 | [diff] [blame] | 86 | 'test/mock_quad_culler.h', |
[email protected] | 101441ce | 2012-10-16 01:45:03 | [diff] [blame] | 87 | 'test/occlusion_tracker_test_common.h', |
[email protected] | 8e26f1db0 | 2012-11-10 01:32:53 | [diff] [blame] | 88 | 'test/render_pass_test_common.cc', |
[email protected] | 101441ce | 2012-10-16 01:45:03 | [diff] [blame] | 89 | 'test/render_pass_test_common.h', |
| 90 | 'test/scheduler_test_common.cc', |
| 91 | 'test/scheduler_test_common.h', |
[email protected] | 101441ce | 2012-10-16 01:45:03 | [diff] [blame] | 92 | 'test/tiled_layer_test_common.cc', |
| 93 | 'test/tiled_layer_test_common.h', |
[email protected] | c0dd24c | 2012-08-30 23:25:27 | [diff] [blame] | 94 | ], |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 95 | }, |
[email protected] | 98fa894 | 2012-09-01 18:29:42 | [diff] [blame] | 96 | 'targets': [ |
| 97 | { |
| 98 | 'target_name': 'cc_unittests', |
[email protected] | 83f36082 | 2012-10-15 22:07:14 | [diff] [blame] | 99 | 'type': '<(gtest_target_type)', |
[email protected] | 98fa894 | 2012-09-01 18:29:42 | [diff] [blame] | 100 | 'dependencies': [ |
| 101 | '../base/base.gyp:test_support_base', |
[email protected] | 59cb7b35 | 2012-10-30 06:45:48 | [diff] [blame] | 102 | '../media/media.gyp:media', |
[email protected] | 439458f3 | 2012-10-16 02:24:31 | [diff] [blame] | 103 | '../skia/skia.gyp:skia', |
[email protected] | 98fa894 | 2012-09-01 18:29:42 | [diff] [blame] | 104 | '../testing/gmock.gyp:gmock', |
[email protected] | 439458f3 | 2012-10-16 02:24:31 | [diff] [blame] | 105 | '../testing/gtest.gyp:gtest', |
| 106 | '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', |
[email protected] | 52347c84 | 2012-11-02 21:06:20 | [diff] [blame] | 107 | '../third_party/WebKit/Source/WebCore/WebCore.gyp/WebCore.gyp:webcore_platform_geometry', |
| 108 | '../ui/ui.gyp:ui', |
[email protected] | 439458f3 | 2012-10-16 02:24:31 | [diff] [blame] | 109 | 'cc.gyp:cc', |
| 110 | 'cc_test_support', |
[email protected] | 98fa894 | 2012-09-01 18:29:42 | [diff] [blame] | 111 | ], |
| 112 | 'sources': [ |
| 113 | 'test/run_all_unittests.cc', |
[email protected] | 439458f3 | 2012-10-16 02:24:31 | [diff] [blame] | 114 | '<@(cc_tests_source_files)', |
| 115 | ], |
| 116 | 'include_dirs': [ |
| 117 | 'stubs', |
| 118 | 'test', |
| 119 | '.', |
| 120 | '../third_party/WebKit/Source/Platform/chromium', |
[email protected] | 98fa894 | 2012-09-01 18:29:42 | [diff] [blame] | 121 | ], |
| 122 | 'conditions': [ |
[email protected] | 83f36082 | 2012-10-15 22:07:14 | [diff] [blame] | 123 | ['OS == "android" and gtest_target_type == "shared_library"', { |
| 124 | 'dependencies': [ |
| 125 | '../testing/android/native_test.gyp:native_test_native_code', |
| 126 | ], |
| 127 | }], |
[email protected] | 98fa894 | 2012-09-01 18:29:42 | [diff] [blame] | 128 | ], |
| 129 | }, |
[email protected] | 439458f3 | 2012-10-16 02:24:31 | [diff] [blame] | 130 | { |
| 131 | 'target_name': 'cc_test_support', |
| 132 | 'type': 'static_library', |
| 133 | 'include_dirs': [ |
| 134 | 'stubs', |
| 135 | 'test', |
| 136 | '.', |
| 137 | '..', |
| 138 | '../third_party/WebKit/Source/Platform/chromium', |
| 139 | ], |
| 140 | 'dependencies': [ |
| 141 | '../ui/gl/gl.gyp:gl', |
| 142 | '../testing/gtest.gyp:gtest', |
| 143 | '../testing/gmock.gyp:gmock', |
| 144 | '../skia/skia.gyp:skia', |
| 145 | '../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', |
| 146 | '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit_wtf_support', |
| 147 | '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit', |
[email protected] | 439458f3 | 2012-10-16 02:24:31 | [diff] [blame] | 148 | ], |
| 149 | 'sources': [ |
| 150 | '<@(cc_tests_support_files)', |
[email protected] | 439458f3 | 2012-10-16 02:24:31 | [diff] [blame] | 151 | ], |
| 152 | }, |
[email protected] | 98fa894 | 2012-09-01 18:29:42 | [diff] [blame] | 153 | ], |
| 154 | 'conditions': [ |
[email protected] | 83f36082 | 2012-10-15 22:07:14 | [diff] [blame] | 155 | # Special target to wrap a gtest_target_type==shared_library |
| 156 | # cc_unittests into an android apk for execution. |
| 157 | ['OS == "android" and gtest_target_type == "shared_library"', { |
| 158 | 'targets': [ |
| 159 | { |
| 160 | 'target_name': 'cc_unittests_apk', |
| 161 | 'type': 'none', |
| 162 | 'dependencies': [ |
| 163 | 'cc_unittests', |
| 164 | ], |
| 165 | 'variables': { |
| 166 | 'test_suite_name': 'cc_unittests', |
| 167 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_unittests<(SHARED_LIB_SUFFIX)', |
| 168 | }, |
| 169 | 'includes': [ '../build/apk_test.gypi' ], |
| 170 | }, |
| 171 | ], |
| 172 | }], |
[email protected] | 94f206c1 | 2012-08-25 00:09:14 | [diff] [blame] | 173 | ], |
| 174 | } |