GoogleURLTrackerInfoBarDelegate: Initialize uninitialized member in constructor.
[chromium-blink-merge.git] / ppapi / ppapi_tests.gypi
blob35b0ff11ed56cb6d0aa2b1cee87bac9e25255148
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   'targets': [
7     {
8       'target_name': 'ppapi_tests',
9       'type': 'loadable_module',
10       'include_dirs': [
11         'lib/gl/include',
12       ],
13       'defines': [
14         'GL_GLEXT_PROTOTYPES',
15       ],
16       'sources': [
17         '<@(test_common_source_files)',
18         '<@(test_trusted_source_files)',
19       ],
20       'dependencies': [
21         'ppapi.gyp:ppapi_cpp',
22         'ppapi_internal.gyp:ppapi_shared',
23       ],
24       'copies': [
25         {
26           'destination': '<(PRODUCT_DIR)',
27           'files': [
28             # Keep 'test_case.html.mock-http-headers' with 'test_case.html'.
29             'tests/test_case.html',
30             'tests/test_case.html.mock-http-headers',
31             'tests/test_page.css',
32             'tests/ppapi_nacl_tests_newlib.nmf',
33           ],
34         },
35         {
36           'destination': '<(PRODUCT_DIR)/test_url_loader_data',
37           'files': [
38             'tests/test_url_loader_data/hello.txt',
39           ],
40         },
41       ],
42       'run_as': {
43         'action': [
44           '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)',
45           '--enable-pepper-testing',
46           '--register-pepper-plugins=$(TargetPath);application/x-ppapi-tests',
47           'file://$(ProjectDir)/tests/test_case.html?testcase=',
48         ],
49       },
50       'conditions': [
51         ['OS=="win"', {
52           'defines': [
53             '_CRT_SECURE_NO_DEPRECATE',
54             '_CRT_NONSTDC_NO_WARNINGS',
55             '_CRT_NONSTDC_NO_DEPRECATE',
56             '_SCL_SECURE_NO_DEPRECATE',
57           ],
58           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
59           'msvs_disabled_warnings': [ 4267, ],
60         }],
61         ['OS=="mac"', {
62           'mac_bundle': 1,
63           'product_name': 'ppapi_tests',
64           'product_extension': 'plugin',
65         }],
66       ],
67       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
68       'msvs_disabled_warnings': [ 4267, ],
69 # TODO(dmichael):  Figure out what is wrong with the script on Windows and add
70 #                  it as an automated action.
71 #      'actions': [
72 #        {
73 #          'action_name': 'generate_ppapi_include_tests',
74 #          'inputs': [],
75 #          'outputs': [
76 #            'tests/test_c_includes.c',
77 #            'tests/test_cc_includes.cc',
78 #          ],
79 #          'action': [
80 #            '<!@(python generate_ppapi_include_tests.py)',
81 #          ],
82 #        },
83 #      ],
84     },
85     {
86       'target_name': 'ppapi_unittest_shared',
87       'type': 'static_library',
88       'dependencies': [
89         'ppapi_proxy',
90         'ppapi_shared',
91         '../base/base.gyp:test_support_base',
92         '../ipc/ipc.gyp:ipc',
93         '../ipc/ipc.gyp:test_support_ipc',
94         '../testing/gmock.gyp:gmock',
95         '../testing/gtest.gyp:gtest',
96       ],
97       'sources': [
98         'proxy/ppapi_proxy_test.cc',
99         'proxy/ppapi_proxy_test.h',
100         'proxy/resource_message_test_sink.cc',
101         'proxy/resource_message_test_sink.h',
102         'shared_impl/test_globals.cc',
103         'shared_impl/test_globals.h',
104         'shared_impl/unittest_utils.cc',
105         'shared_impl/unittest_utils.h',
106       ],
107     },
109     {
110       'target_name': 'ppapi_perftests',
111       'type': 'executable',
112       'variables': {
113         'chromium_code': 1,
114       },
115       'dependencies': [
116         'ppapi_proxy',
117         'ppapi_shared',
118         'ppapi_unittest_shared',
119         '../base/base.gyp:test_support_base',
120         '../testing/gtest.gyp:gtest',
121       ],
122       'sources': [
123         'proxy/ppapi_perftests.cc',
124         'proxy/ppp_messaging_proxy_perftest.cc',
125       ],
126       'conditions': [
127         # See http://crbug.com/162998#c4 for why this is needed.
128         ['OS=="linux" and use_allocator!="none"', {
129           'dependencies': [
130             '../base/allocator/allocator.gyp:allocator',
131           ],
132         }],
133       ],
134     },
135     {
136       'target_name': 'ppapi_unittests',
137       'type': 'executable',
138       'variables': {
139         'chromium_code': 1,
140       },
141       'dependencies': [
142         'ppapi_host',
143         'ppapi_proxy',
144         'ppapi_shared',
145         'ppapi_unittest_shared',
146         '../base/base.gyp:run_all_unittests',
147         '../base/base.gyp:test_support_base',
148         '../gpu/gpu.gyp:gpu_ipc',
149         '../ipc/ipc.gyp:ipc',
150         '../ipc/ipc.gyp:test_support_ipc',
151         '../media/media.gyp:shared_memory_support',
152         '../testing/gmock.gyp:gmock',
153         '../testing/gtest.gyp:gtest',
154         '../ui/surface/surface.gyp:surface',
155       ],
156       'sources': [
157         'host/resource_message_filter_unittest.cc',
158         'proxy/device_enumeration_resource_helper_unittest.cc',
159         'proxy/file_chooser_resource_unittest.cc',
160         'proxy/file_system_resource_unittest.cc',
161         'proxy/flash_resource_unittest.cc',
162         'proxy/interface_list_unittest.cc',
163         'proxy/mock_resource.cc',
164         'proxy/mock_resource.h',
165         'proxy/nacl_message_scanner_unittest.cc',
166         'proxy/pdf_resource_unittest.cc',
167         'proxy/plugin_dispatcher_unittest.cc',
168         'proxy/plugin_resource_tracker_unittest.cc',
169         'proxy/plugin_var_tracker_unittest.cc',
170         'proxy/ppb_var_unittest.cc',
171         'proxy/ppp_instance_private_proxy_unittest.cc',
172         'proxy/ppp_instance_proxy_unittest.cc',
173         'proxy/ppp_messaging_proxy_unittest.cc',
174         'proxy/printing_resource_unittest.cc',
175         'proxy/raw_var_data_unittest.cc',
176         'proxy/serialized_var_unittest.cc',
177         'proxy/talk_resource_unittest.cc',
178         'proxy/video_decoder_resource_unittest.cc',
179         'proxy/websocket_resource_unittest.cc',
180         'shared_impl/media_stream_audio_track_shared_unittest.cc',
181         'shared_impl/media_stream_buffer_manager_unittest.cc',
182         'shared_impl/media_stream_video_track_shared_unittest.cc',
183         'shared_impl/proxy_lock_unittest.cc',
184         'shared_impl/resource_tracker_unittest.cc',
185         'shared_impl/thread_aware_callback_unittest.cc',
186         'shared_impl/time_conversion_unittest.cc',
187         'shared_impl/tracked_callback_unittest.cc',
188         'shared_impl/var_tracker_unittest.cc',
189         'shared_impl/var_value_conversions_unittest.cc',
190       ],
191       'conditions': [
192         [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
193           'conditions': [
194             [ 'use_allocator!="none"', {
195               'dependencies': [
196                 '../base/allocator/allocator.gyp:allocator',
197               ],
198             }],
199           ],
200         }],
201       ],
202       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
203       'msvs_disabled_warnings': [ 4267, ],
204     },
205     {
206       'target_name': 'ppapi_example_skeleton',
207       'suppress_wildcard': 1,
208       'type': 'none',
209       'direct_dependent_settings': {
210         'product_name': '>(_target_name)',
211         'conditions': [
212           ['os_posix==1 and OS!="mac"', {
213             'cflags': ['-fvisibility=hidden'],
214             'type': 'shared_library',
215           }],
216           ['OS=="win"', {
217             'type': 'shared_library',
218           }],
219           ['OS=="mac"', {
220             'type': 'loadable_module',
221             'mac_bundle': 1,
222             'product_extension': 'plugin',
223             'xcode_settings': {
224               'OTHER_LDFLAGS': [
225                 # Not to strip important symbols by -Wl,-dead_strip.
226                 '-Wl,-exported_symbol,_PPP_GetInterface',
227                 '-Wl,-exported_symbol,_PPP_InitializeModule',
228                 '-Wl,-exported_symbol,_PPP_ShutdownModule'
229               ]},
230           }],
231         ],
232       },
233     },
234     {
235       'target_name': 'ppapi_example_mouse_cursor',
236       'dependencies': [
237         'ppapi_example_skeleton',
238         'ppapi.gyp:ppapi_cpp',
239       ],
240       'sources': [
241         'examples/mouse_cursor/mouse_cursor.cc',
242       ],
243     },
244     {
245       'target_name': 'ppapi_example_mouse_lock',
246       'dependencies': [
247         'ppapi_example_skeleton',
248         'ppapi.gyp:ppapi_cpp',
249       ],
250       'sources': [
251         'examples/mouse_lock/mouse_lock.cc',
252       ],
253     },
255     {
256       'target_name': 'ppapi_example_gamepad',
257       'dependencies': [
258         'ppapi_example_skeleton',
259         'ppapi.gyp:ppapi_cpp',
260       ],
261       'sources': [
262         'examples/gamepad/gamepad.cc',
263       ],
264       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
265       'msvs_disabled_warnings': [ 4267, ],
266     },
268     {
269       'target_name': 'ppapi_example_c_stub',
270       'dependencies': [
271         'ppapi_example_skeleton',
272         'ppapi.gyp:ppapi_c',
273       ],
274       'sources': [
275         'examples/stub/stub.c',
276       ],
277     },
278     {
279       'target_name': 'ppapi_example_cc_stub',
280       'dependencies': [
281         'ppapi_example_skeleton',
282         'ppapi.gyp:ppapi_cpp',
283       ],
284       'sources': [
285         'examples/stub/stub.cc',
286       ],
287     },
288     {
289       'target_name': 'ppapi_example_crxfs',
290       'dependencies': [
291         'ppapi_example_skeleton',
292         'ppapi.gyp:ppapi_cpp',
293       ],
294       'sources': [
295         'examples/crxfs/crxfs.cc',
296       ],
297     },
298     {
299       'target_name': 'ppapi_example_audio',
300       'dependencies': [
301         'ppapi_example_skeleton',
302         'ppapi.gyp:ppapi_cpp',
303       ],
304       'sources': [
305         'examples/audio/audio.cc',
306       ],
307     },
308     {
309       'target_name': 'ppapi_example_audio_input',
310       'dependencies': [
311         'ppapi_example_skeleton',
312         'ppapi.gyp:ppapi_cpp',
313       ],
314       'sources': [
315         'examples/audio_input/audio_input.cc',
316       ],
317     },
318     {
319       'target_name': 'ppapi_example_file_chooser',
320       'dependencies': [
321         'ppapi_example_skeleton',
322         'ppapi.gyp:ppapi_cpp',
323       ],
324       'sources': [
325         'examples/file_chooser/file_chooser.cc',
326       ],
327     },
328     {
329       'target_name': 'ppapi_example_graphics_2d',
330       'dependencies': [
331         'ppapi_example_skeleton',
332         'ppapi.gyp:ppapi_c',
333       ],
334       'sources': [
335         'examples/2d/graphics_2d_example.c',
336       ],
337     },
338     {
339       'target_name': 'ppapi_example_ime',
340       'dependencies': [
341         'ppapi_example_skeleton',
342         'ppapi.gyp:ppapi_cpp',
343       ],
344       'sources': [
345         'examples/ime/ime.cc',
346       ],
347       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
348       'msvs_disabled_warnings': [ 4267, ],
349     },
350     {
351       'target_name': 'ppapi_example_paint_manager',
352       'dependencies': [
353         'ppapi_example_skeleton',
354         'ppapi.gyp:ppapi_cpp',
355       ],
356       'sources': [
357         'examples/2d/paint_manager_example.cc',
358       ],
359     },
360     {
361       'target_name': 'ppapi_example_input',
362       'dependencies': [
363         'ppapi_example_skeleton',
364         'ppapi.gyp:ppapi_cpp',
365       ],
366       'sources': [
367         'examples/input/pointer_event_input.cc',
368       ],
369     },
370     {
371       'target_name': 'ppapi_example_post_message',
372       'dependencies': [
373         'ppapi_example_skeleton',
374         'ppapi.gyp:ppapi_cpp',
375       ],
376       'sources': [
377         'examples/scripting/post_message.cc',
378       ],
379     },
380     {
381       'target_name': 'ppapi_example_scaling',
382       'dependencies': [
383         'ppapi_example_skeleton',
384         'ppapi.gyp:ppapi_cpp',
385       ],
386       'sources': [
387         'examples/scaling/scaling.cc',
388       ],
389     },
390     {
391       'target_name': 'ppapi_example_scroll',
392       'dependencies': [
393         'ppapi_example_skeleton',
394         'ppapi.gyp:ppapi_cpp',
395       ],
396       'sources': [
397         'examples/2d/scroll.cc',
398       ],
399     },
400     {
401       'target_name': 'ppapi_example_simple_font',
402       'dependencies': [
403         'ppapi_example_skeleton',
404         'ppapi.gyp:ppapi_cpp',
405       ],
406       'sources': [
407         'examples/font/simple_font.cc',
408       ],
409     },
410     {
411       'target_name': 'ppapi_example_url_loader',
412       'dependencies': [
413         'ppapi_example_skeleton',
414         'ppapi.gyp:ppapi_cpp',
415       ],
416       'sources': [
417         'examples/url_loader/streaming.cc',
418       ],
419     },
420     {
421       'target_name': 'ppapi_example_url_loader_file',
422       'dependencies': [
423         'ppapi_example_skeleton',
424         'ppapi.gyp:ppapi_cpp',
425       ],
426       'sources': [
427         'examples/url_loader/stream_to_file.cc',
428       ],
429     },
430     {
431       'target_name': 'ppapi_example_gles2',
432       'dependencies': [
433         'ppapi_example_skeleton',
434         'ppapi.gyp:ppapi_cpp',
435         'ppapi.gyp:ppapi_gles2',
436       ],
437       'include_dirs': [
438         'lib/gl/include',
439       ],
440       'sources': [
441         'examples/gles2/gles2.cc',
442       ],
443     },
444     {
445       'target_name': 'ppapi_example_video_decode',
446       'dependencies': [
447         'ppapi_example_skeleton',
448         'ppapi.gyp:ppapi_cpp',
449         'ppapi.gyp:ppapi_gles2',
450       ],
451       'include_dirs': [
452         'lib/gl/include',
453       ],
454       'sources': [
455         'examples/video_decode/video_decode.cc',
456         'examples/video_decode/testdata.h',
457       ],
458       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
459       'msvs_disabled_warnings': [ 4267, ],
460     },
461     {
462       'target_name': 'ppapi_example_video_decode_dev',
463       'dependencies': [
464         'ppapi_example_skeleton',
465         'ppapi.gyp:ppapi_cpp',
466         'ppapi.gyp:ppapi_gles2',
467       ],
468       'include_dirs': [
469         'lib/gl/include',
470       ],
471       'sources': [
472         'examples/video_decode/video_decode_dev.cc',
473         'examples/video_decode/testdata.h',
474       ],
475       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
476       'msvs_disabled_warnings': [ 4267, ],
477     },
478     {
479       'target_name': 'ppapi_example_vc',
480       'dependencies': [
481         'ppapi_example_skeleton',
482         'ppapi.gyp:ppapi_cpp',
483         'ppapi.gyp:ppapi_gles2',
484       ],
485       'include_dirs': [
486         'lib/gl/include',
487       ],
488       'sources': [
489         'examples/video_capture/video_capture.cc',
490       ],
491     },
492     {
493       'target_name': 'ppapi_example_video_effects',
494       'dependencies': [
495         'ppapi_example_skeleton',
496         'ppapi.gyp:ppapi_cpp',
497       ],
498       'sources': [
499         'examples/video_effects/video_effects.cc',
500       ],
501     },
502     {
503       'target_name': 'ppapi_example_enumerate_devices',
504       'dependencies': [
505         'ppapi_example_skeleton',
506         'ppapi.gyp:ppapi_cpp',
507       ],
508       'sources': [
509         'examples/enumerate_devices/enumerate_devices.cc',
510       ],
511     },
512     {
513       'target_name': 'ppapi_example_flash_topmost',
514       'dependencies': [
515         'ppapi_example_skeleton',
516         'ppapi.gyp:ppapi_cpp',
517       ],
518       'sources': [
519         'examples/flash_topmost/flash_topmost.cc',
520       ],
521     },
522     {
523       'target_name': 'ppapi_example_printing',
524       'dependencies': [
525         'ppapi_example_skeleton',
526         'ppapi.gyp:ppapi_cpp',
527       ],
528       'sources': [
529         'examples/printing/printing.cc',
530       ],
531       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
532       'msvs_disabled_warnings': [ 4267, ],
533     },
534     {
535       'target_name': 'ppapi_example_media_stream_audio',
536       'dependencies': [
537         'ppapi_example_skeleton',
538         'ppapi.gyp:ppapi_cpp',
539       ],
540       'sources': [
541         'examples/media_stream_audio/media_stream_audio.cc',
542       ],
543     },
544     {
545       'target_name': 'ppapi_example_media_stream_video',
546       'dependencies': [
547         'ppapi_example_skeleton',
548         'ppapi.gyp:ppapi_cpp',
549         'ppapi.gyp:ppapi_gles2',
550       ],
551       'include_dirs': [
552         'lib/gl/include',
553       ],
554       'sources': [
555         'examples/media_stream_video/media_stream_video.cc',
556       ],
557     },
558     {
559       'target_name': 'ppapi_example_gles2_spinning_cube',
560       'dependencies': [
561         'ppapi_example_skeleton',
562         'ppapi.gyp:ppapi_cpp',
563         'ppapi.gyp:ppapi_gles2',
564       ],
565       'include_dirs': [
566         'lib/gl/include',
567       ],
568       'sources': [
569         'examples/gles2_spinning_cube/gles2_spinning_cube.cc',
570         'examples/gles2_spinning_cube/spinning_cube.cc',
571         'examples/gles2_spinning_cube/spinning_cube.h',
572       ],
573     },
574   ],