Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / platform / blink_platform_tests.gyp
blob8eb4eac76aa87147653368e91b19c4b3518f5478
2 # Copyright (C) 2013 Google Inc. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met:
8 #     * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 #     * Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following disclaimer
12 # in the documentation and/or other materials provided with the
13 # distribution.
14 #     * Neither the name of Google Inc. nor the names of its
15 # contributors may be used to endorse or promote products derived from
16 # this software without specific prior written permission.
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31   'includes': [
32     '../build/win/precompile.gypi',
33     'blink_platform.gypi',
34     'heap/blink_heap.gypi',
35   ],
36   'targets': [
37     {
38       'target_name': 'blink_heap_unittests',
39       'type': 'executable',
40       'dependencies': [
41         '../config.gyp:unittest_config',
42         '../wtf/wtf.gyp:wtf',
43         '../wtf/wtf_tests.gyp:wtf_unittest_helpers',
44         '<(DEPTH)/base/base.gyp:test_support_base',
45         '<(DEPTH)/content/content_shell_and_tests.gyp:test_support_content',
46         'blink_platform.gyp:blink_platform',
47       ],
48       'defines': [
49         'INSIDE_BLINK',
50       ],
51       'sources': [
52         'heap/RunAllTests.cpp',
53         '<@(platform_heap_test_files)',
54       ],
55       'conditions': [
56         ['os_posix==1 and OS!="mac" and OS!="android" and OS!="ios" and use_allocator!="none"', {
57           'dependencies': [
58             '<(DEPTH)/base/base.gyp:base',
59             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
60           ]
61         }],
62         ['OS=="win" and component!="shared_library" and win_use_allocator_shim==1', {
63           'dependencies': [
64             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
65           ]
66         }],
67         ['OS=="android"', {
68           'type': 'shared_library',
69           'dependencies': [
70             '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
71             '<(DEPTH)/tools/android/forwarder2/forwarder.gyp:forwarder2',
72           ],
73         }],
74       ],
75     },
76     {
77       'target_name': 'blink_platform_unittests',
78       'type': 'executable',
79       'dependencies': [
80         'blink_platform_test_support',
81         '../config.gyp:unittest_config',
82         '../wtf/wtf.gyp:wtf',
83         '../wtf/wtf_tests.gyp:wtf_unittest_helpers',
84         '<(DEPTH)/base/base.gyp:test_support_base',
85         '<(DEPTH)/skia/skia.gyp:skia',
86         '<(DEPTH)/third_party/harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng',
87         '<(DEPTH)/url/url.gyp:url_lib',
88         'blink_platform.gyp:blink_common',
89         'blink_platform.gyp:blink_platform',
90       ],
91       'defines': [
92         'INSIDE_BLINK',
93       ],
94       'include_dirs': [
95         '<(SHARED_INTERMEDIATE_DIR)/blink',
96       ],
97       'sources': [
98         'testing/RunAllTests.cpp',
99         '<@(platform_test_files)',
100       ],
101       'conditions': [
102         ['os_posix==1 and OS!="mac" and OS!="android" and OS!="ios" and use_allocator!="none"', {
103           'dependencies': [
104             '<(DEPTH)/base/base.gyp:base',
105             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
106           ]
107         }],
108         ['OS=="android" and gtest_target_type == "shared_library"', {
109           'type': 'shared_library',
110           'dependencies': [
111             '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
112             '<(DEPTH)/tools/android/forwarder2/forwarder.gyp:forwarder2',
113           ],
114         }],
115       ],
116     },
117     {
118       'target_name': 'blink_platform_test_support',
119       'type': 'static_library',
120       'dependencies': [
121         '../config.gyp:config',
122         'blink_platform.gyp:blink_platform',
123       ],
124       'defines': [
125         'INSIDE_BLINK',
126       ],
127       'sources': [
128         '<@(platform_test_support_files)',
129       ],
130     },
131   ],
132   'conditions': [
133     ['OS=="android" and gtest_target_type == "shared_library"', {
134       'targets': [{
135         'target_name': 'blink_heap_unittests_apk',
136         'type': 'none',
137         'dependencies': [
138           '<(DEPTH)/base/base.gyp:base_java',
139           '<(DEPTH)/net/net.gyp:net_java',
140           'blink_heap_unittests',
141         ],
142         'conditions': [
143           ['v8_use_external_startup_data==1', {
144             'dependencies': [
145               '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_external_snapshot',
146             ],
147             'copies': [
148               {
149               'destination': '<(asset_location)',
150                 'files': [
151                   '<(PRODUCT_DIR)/natives_blob.bin',
152                   '<(PRODUCT_DIR)/snapshot_blob.bin',
153                 ],
154               },
155             ],
156           }],
157         ],
158         'variables': {
159           'test_suite_name': 'blink_heap_unittests',
160           'conditions': [
161             ['v8_use_external_startup_data==1', {
162               'asset_location': '<(PRODUCT_DIR)/blink_heap_unittests_apk/assets',
163               'additional_input_paths': [
164                 '<(PRODUCT_DIR)/blink_heap_unittests_apk/assets/natives_blob.bin',
165                 '<(PRODUCT_DIR)/blink_heap_unittests_apk/assets/snapshot_blob.bin',
166               ],
167               'inputs': [
168                 '<(PRODUCT_DIR)/natives_blob.bin',
169                 '<(PRODUCT_DIR)/snapshot_blob.bin',
170               ],
171             }],
172           ],
173         },
174         'includes': [ '../../../../build/apk_test.gypi' ],
175       },
176       {
177         'target_name': 'blink_platform_unittests_apk',
178         'type': 'none',
179         'dependencies': [
180           '<(DEPTH)/base/base.gyp:base_java',
181           '<(DEPTH)/net/net.gyp:net_java',
182           'blink_platform_unittests',
183         ],
184         'variables': {
185           'test_suite_name': 'blink_platform_unittests',
186         },
187         'includes': [ '../../../../build/apk_test.gypi' ],
188       }],
189     }],
190     ['test_isolation_mode != "noop"', {
191       'targets': [
192         {
193           'target_name': 'blink_heap_unittests_run',
194           'type': 'none',
195           'dependencies': [
196             'blink_heap_unittests',
197           ],
198           'includes': [
199             '../../../../build/isolate.gypi',
200           ],
201           'sources': [
202             'blink_heap_unittests.isolate',
203           ],
204         },
205         {
206           'target_name': 'blink_platform_unittests_run',
207           'type': 'none',
208           'dependencies': [
209             'blink_platform_unittests',
210           ],
211           'includes': [
212             '../../../../build/isolate.gypi',
213           ],
214           'sources': [
215             'blink_platform_unittests.isolate',
216           ],
217         }
218       ],
219     }],
220   ],