Changes to RenderFrameProxy:
[chromium-blink-merge.git] / remoting / remoting_test.gypi
blob2bf2eeacb0b2a0f412ef8eb4a69c4e62b0151b27
1 # Copyright 2014 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     # Remoting unit tests
8     {
9       'target_name': 'remoting_unittests',
10       'type': '<(gtest_target_type)',
11       'dependencies': [
12         '../base/base.gyp:base',
13         '../base/base.gyp:base_i18n',
14         '../base/base.gyp:test_support_base',
15         '../ipc/ipc.gyp:ipc',
16         '../net/net.gyp:net_test_support',
17         '../ppapi/ppapi.gyp:ppapi_cpp',
18         '../testing/gmock.gyp:gmock',
19         '../testing/gtest.gyp:gtest',
20         '../third_party/libyuv/libyuv.gyp:libyuv',
21         '../third_party/webrtc/modules/modules.gyp:desktop_capture',
22         '../ui/base/ui_base.gyp:ui_base',
23         '../ui/gfx/gfx.gyp:gfx',
24         '../ui/gfx/gfx.gyp:gfx_geometry',
25         'remoting_base',
26         'remoting_breakpad',
27         'remoting_client',
28         'remoting_client_plugin',
29         'remoting_host',
30         'remoting_host_setup_base',
31         'remoting_it2me_host_static',
32         'remoting_native_messaging_base',
33         'remoting_protocol',
34         'remoting_resources',
35       ],
36       'defines': [
37         'VERSION=<(version_full)',
38       ],
39       'include_dirs': [
40         '../testing/gmock/include',
41       ],
42       'sources': [
43         'base/auth_token_util_unittest.cc',
44         'base/auto_thread_task_runner_unittest.cc',
45         'base/auto_thread_unittest.cc',
46         'base/breakpad_win_unittest.cc',
47         'base/capabilities_unittest.cc',
48         'base/compound_buffer_unittest.cc',
49         'base/rate_counter_unittest.cc',
50         'base/resources_unittest.cc',
51         'base/rsa_key_pair_unittest.cc',
52         'base/run_all_unittests.cc',
53         'base/running_average_unittest.cc',
54         'base/test_rsa_key_pair.h',
55         'base/typed_buffer_unittest.cc',
56         'base/util_unittest.cc',
57         'client/audio_player_unittest.cc',
58         'client/client_status_logger_unittest.cc',
59         'client/key_event_mapper_unittest.cc',
60         'client/plugin/normalizing_input_filter_cros_unittest.cc',
61         'client/plugin/normalizing_input_filter_mac_unittest.cc',
62         'client/server_log_entry_client_unittest.cc',
63         'codec/audio_encoder_opus_unittest.cc',
64         'codec/codec_test.cc',
65         'codec/codec_test.h',
66         'codec/video_decoder_vpx_unittest.cc',
67         'codec/video_encoder_verbatim_unittest.cc',
68         'codec/video_encoder_vpx_unittest.cc',
69         'host/audio_silence_detector_unittest.cc',
70         'host/branding.cc',
71         'host/branding.h',
72         'host/capture_scheduler_unittest.cc',
73         'host/chromoting_host_context_unittest.cc',
74         'host/chromoting_host_unittest.cc',
75         'host/client_session_unittest.cc',
76         'host/config_file_watcher_unittest.cc',
77         'host/daemon_process_unittest.cc',
78         'host/desktop_process_unittest.cc',
79         'host/desktop_shape_tracker_unittest.cc',
80         'host/fake_host_status_monitor.h',
81         'host/fake_screen_capturer.cc',
82         'host/fake_screen_capturer.h',
83         'host/gnubby_auth_handler_posix_unittest.cc',
84         'host/heartbeat_sender_unittest.cc',
85         'host/host_change_notification_listener_unittest.cc',
86         'host/host_mock_objects.cc',
87         'host/host_status_logger_unittest.cc',
88         'host/host_status_sender_unittest.cc',
89         'host/ipc_desktop_environment_unittest.cc',
90         'host/it2me/it2me_native_messaging_host_unittest.cc',
91         'host/json_host_config_unittest.cc',
92         'host/linux/audio_pipe_reader_unittest.cc',
93         'host/linux/unicode_to_keysym_unittest.cc',
94         'host/linux/x_server_clipboard_unittest.cc',
95         'host/local_input_monitor_unittest.cc',
96         'host/native_messaging/native_messaging_reader_unittest.cc',
97         'host/native_messaging/native_messaging_writer_unittest.cc',
98         'host/pairing_registry_delegate_linux_unittest.cc',
99         'host/pairing_registry_delegate_win_unittest.cc',
100         'host/pin_hash_unittest.cc',
101         'host/policy_hack/fake_policy_watcher.cc',
102         'host/policy_hack/fake_policy_watcher.h',
103         'host/policy_hack/mock_policy_callback.cc',
104         'host/policy_hack/mock_policy_callback.h',
105         'host/policy_hack/policy_watcher_unittest.cc',
106         'host/register_support_host_request_unittest.cc',
107         'host/remote_input_filter_unittest.cc',
108         'host/resizing_host_observer_unittest.cc',
109         'host/screen_resolution_unittest.cc',
110         'host/server_log_entry_host_unittest.cc',
111         'host/setup/me2me_native_messaging_host.cc',
112         'host/setup/me2me_native_messaging_host.h',
113         'host/setup/me2me_native_messaging_host_unittest.cc',
114         'host/setup/oauth_helper_unittest.cc',
115         'host/setup/pin_validator_unittest.cc',
116         'host/shaped_screen_capturer_unittest.cc',
117         'host/token_validator_factory_impl_unittest.cc',
118         'host/video_frame_recorder_unittest.cc',
119         'host/video_scheduler_unittest.cc',
120         'host/win/rdp_client_unittest.cc',
121         'host/win/worker_process_launcher.cc',
122         'host/win/worker_process_launcher.h',
123         'host/win/worker_process_launcher_unittest.cc',
124         'protocol/authenticator_test_base.cc',
125         'protocol/authenticator_test_base.h',
126         'protocol/buffered_socket_writer_unittest.cc',
127         'protocol/channel_multiplexer_unittest.cc',
128         'protocol/chromium_socket_factory_unittest.cc',
129         'protocol/clipboard_echo_filter_unittest.cc',
130         'protocol/clipboard_filter_unittest.cc',
131         'protocol/connection_tester.cc',
132         'protocol/connection_tester.h',
133         'protocol/connection_to_client_unittest.cc',
134         'protocol/content_description_unittest.cc',
135         'protocol/fake_authenticator.cc',
136         'protocol/fake_authenticator.h',
137         'protocol/fake_session.cc',
138         'protocol/fake_session.h',
139         'protocol/input_event_tracker_unittest.cc',
140         'protocol/input_filter_unittest.cc',
141         'protocol/jingle_messages_unittest.cc',
142         'protocol/jingle_session_unittest.cc',
143         'protocol/message_decoder_unittest.cc',
144         'protocol/message_reader_unittest.cc',
145         'protocol/monitored_video_stub_unittest.cc',
146         'protocol/mouse_input_filter_unittest.cc',
147         'protocol/negotiating_authenticator_unittest.cc',
148         'protocol/network_settings_unittest.cc',
149         'protocol/pairing_registry_unittest.cc',
150         'protocol/ppapi_module_stub.cc',
151         'protocol/protocol_mock_objects.cc',
152         'protocol/protocol_mock_objects.h',
153         'protocol/ssl_hmac_channel_authenticator_unittest.cc',
154         'protocol/third_party_authenticator_unittest.cc',
155         'protocol/v2_authenticator_unittest.cc',
156         'signaling/fake_signal_strategy.cc',
157         'signaling/fake_signal_strategy.h',
158         'signaling/iq_sender_unittest.cc',
159         'signaling/log_to_server_unittest.cc',
160         'signaling/mock_signal_strategy.cc',
161         'signaling/mock_signal_strategy.h',
162         'signaling/server_log_entry_unittest.cc',
163         'signaling/server_log_entry_unittest.h',
164       ],
165       'conditions': [
166         [ 'OS=="win"', {
167           'defines': [
168             '_ATL_NO_EXCEPTIONS',
169           ],
170           'include_dirs': [
171             '../breakpad/src',
172           ],
173           'link_settings': {
174             'libraries': [
175               '-lrpcrt4.lib',
176               '-lwtsapi32.lib',
177             ],
178           },
179         }],
180         [ 'OS=="android"', {
181           'dependencies!': [
182             'remoting_client_plugin',
183           ],
184         }],
185         [ 'OS=="android"', {
186           'dependencies': [
187             '../testing/android/native_test.gyp:native_test_native_code',
188           ],
189         }],
190         [ 'chromeos==0', {
191           'sources!': [
192             'client/plugin/normalizing_input_filter_cros_unittest.cc',
193           ],
194         }],
195         ['enable_remoting_host == 0', {
196           'dependencies!': [
197             'remoting_host',
198             'remoting_host_setup_base',
199             'remoting_it2me_host_static',
200             'remoting_native_messaging_base',
201           ],
202           'sources/': [
203             ['exclude', '^codec/'],
204             ['exclude', '^host/'],
205             ['exclude', '^base/resources_unittest\\.cc$'],
206           ]
207         }],
208         [ 'OS == "linux" and use_allocator!="none"', {
209           'dependencies': [
210             '../base/allocator/allocator.gyp:allocator',
211           ],
212         }],
213       ],  # end of 'conditions'
214     },  # end of target 'remoting_unittests'
215     # Remoting performance tests
216     {
217       'target_name': 'remoting_perftests',
218       'type': '<(gtest_target_type)',
219       'dependencies': [
220         '../base/base.gyp:base',
221         '../base/base.gyp:test_support_base',
222         '../testing/gtest.gyp:gtest',
223         '../third_party/webrtc/modules/modules.gyp:desktop_capture',
224         'remoting_base',
225       ],
226       'defines': [
227         'VERSION=<(version_full)',
228       ],
229       'include_dirs': [
230         '../testing/gmock/include',
231       ],
232       'sources': [
233         'base/run_all_unittests.cc',
234         'codec/codec_test.cc',
235         'codec/codec_test.h',
236         'codec/video_encoder_vpx_perftest.cc',
237       ],
238       'conditions': [
239         [ 'OS=="mac" or (OS=="linux" and chromeos==0)', {
240           # RunAllTests calls chrome::RegisterPathProvider() under Mac and
241           # Linux, so we need the chrome_common.gypi dependency.
242           'dependencies': [
243             '../chrome/common_constants.gyp:common_constants',
244           ],
245         }],
246         [ 'OS=="android"', {
247           'dependencies': [
248             '../testing/android/native_test.gyp:native_test_native_code',
249           ],
250         }],
251         [ 'OS == "linux" and use_allocator!="none"', {
252           'dependencies': [
253             '../base/allocator/allocator.gyp:allocator',
254           ],
255         }],
256       ],  # end of 'conditions'
257     },  # end of target 'remoting_perftests'
258     {
259       'target_name': 'remoting_browser_test_resources',
260       'type': 'none',
261       'variables': {
262         'zip_script': '../build/android/gyp/zip.py',
263       },
264       'copies': [
265         {
266           'destination': '<(PRODUCT_DIR)',
267             'files': [
268               '<@(remoting_webapp_js_browser_test_files)',
269             ],
270         },
271       ], #end of copies
272       'actions': [
273         {
274           # Store the browser test resources into a zip file so there is a
275           # consistent filename to reference for build archiving (i.e. in
276           # FILES.cfg).
277           'action_name': 'zip browser test resources',
278           'inputs': [
279             '<(zip_script)',
280             '<@(remoting_webapp_js_browser_test_files)'
281           ],
282           'outputs': [
283             '<(PRODUCT_DIR)/remoting-browser-tests.zip',
284           ],
285           'action': [
286             'python',
287             '<(zip_script)',
288             '--input-dir', 'webapp/browser_test',
289             '--output', '<@(_outputs)',
290            ],
291         },
292       ], # end of actions
293     },  # end of target 'remoting_browser_test_resources'
294     {
295       'target_name': 'remoting_webapp_unittest',
296       'type': 'none',
297       'variables': {
298         'output_dir': '<(PRODUCT_DIR)/remoting/unittests',
299         'webapp_js_files': [
300           '<@(remoting_webapp_main_html_js_files)',
301           '<@(remoting_webapp_js_wcs_sandbox_files)',
302         ]
303       },
304       'copies': [
305         {
306           'destination': '<(output_dir)/qunit',
307           'files': [
308             '../third_party/qunit/src/browser_test_harness.js',
309             '../third_party/qunit/src/qunit.css',
310             '../third_party/qunit/src/qunit.js',
311           ],
312         },
313         {
314           'destination': '<(output_dir)/blanketjs',
315           'files': [
316             '../third_party/blanketjs/src/blanket.js',
317             '../third_party/blanketjs/src/qunit_adapter.js',
318           ],
319         },
320         {
321           'destination': '<(output_dir)/sinonjs',
322           'files': [
323             '../third_party/sinonjs/src/sinon.js',
324             '../third_party/sinonjs/src/sinon-qunit.js',
325           ],
326         },
327         {
328           'destination': '<(output_dir)',
329           'files': [
330             '<@(webapp_js_files)',
331           ],
332         },
333         {
334           'destination': '<(output_dir)',
335           'files': [
336             '<@(remoting_webapp_unittest_cases)'
337           ],
338         },
339       ],
340       'actions': [
341         {
342           'action_name': 'Build Remoting Webapp unittest.html',
343           'inputs': [
344             'webapp/build-html.py',
345             '<(remoting_webapp_unittest_template_main)',
346             '<@(webapp_js_files)',
347             '<@(remoting_webapp_unittest_cases)'
348           ],
349           'outputs': [
350             '<(output_dir)/unittest.html',
351           ],
352           'action': [
353             'python', 'webapp/build-html.py',
354             '<@(_outputs)',
355             '<(remoting_webapp_unittest_template_main)',
356             # GYP automatically removes subsequent duplicated command line
357             # arguments.  Therefore, the excludejs flag must be set before the
358             # instrumentedjs flag or else GYP will ignore the files in the
359             # exclude list.
360             '--exclude-js', '<@(remoting_webapp_unittest_exclude_files)',
361             '--js', '<@(remoting_webapp_unittest_cases)',
362             '--instrument-js', '<@(webapp_js_files)',
363            ],
364         },
365       ],
366     },  # end of target 'remoting_webapp_js_unittest'
367   ],  # end of targets