Implement android_webview url intercepting.
[chromium-blink-merge.git] / cc / cc_tests.gyp
blobde6505996411a03d296facd4e41782236a67176d
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_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',
45       'CCThreadedTest.h',
46       'tiled_layer_impl_unittest.cc',
47       'timer_unittest.cc',
48       'content_layer_unittest.cc',
49       'float_quad_unittest.cc',
50       'layer_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',
57     ],
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',
81       'test/test_common.h',
82       'test/tiled_layer_test_common.cc',
83       'test/tiled_layer_test_common.h',
84       'test/web_compositor_initializer.h',
85     ],
86   },
87   'targets': [
88     {
89       'target_name': 'cc_unittests',
90       'type': '<(gtest_target_type)',
91       'dependencies': [
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',
97         'cc.gyp:cc',
98         'cc_test_support',
99       ],
100       'sources': [
101         'test/run_all_unittests.cc',
102         '<@(cc_tests_source_files)',
103       ],
104       'include_dirs': [
105         'stubs',
106         'test',
107         '.',
108         '../third_party/WebKit/Source/Platform/chromium',
109       ],
110       'conditions': [
111         ['OS == "android" and gtest_target_type == "shared_library"', {
112           'dependencies': [
113             '../testing/android/native_test.gyp:native_test_native_code',
114           ],
115         }],
116       ],
117     },
118     {
119       'target_name': 'cc_test_support',
120       'type': 'static_library',
121       'include_dirs': [
122         'stubs',
123         'test',
124         '.',
125         '..',
126         '../third_party/WebKit/Source/Platform/chromium',
127       ],
128       'dependencies': [
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',
138       ],
139       'sources': [
140         '<@(cc_tests_support_files)',
141         'test/test_webkit_platform.cc',
142         'test/test_webkit_platform.h',
143       ],
144     },
145   ],
146   'conditions': [
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"', {
150       'targets': [
151         {
152           'target_name': 'cc_unittests_apk',
153           'type': 'none',
154           'dependencies': [
155             'cc_unittests',
156           ],
157           'variables': {
158             'test_suite_name': 'cc_unittests',
159             'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)cc_unittests<(SHARED_LIB_SUFFIX)',
160           },
161           'includes': [ '../build/apk_test.gypi' ],
162         },
163       ],
164     }],
165   ],