Valgrind Mac: Disable failing NewVideoRenderer/VideoRendererImplTest.
[chromium-blink-merge.git] / remoting / remoting_webapp_files.gypi
blob117107dbfde5d3a1a09c9e93fe69a79418d189f6
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.
5 # `7MM"""Mq.                       `7MM
6 #   MM   `MM.                        MM
7 #   MM   ,M9  .gP"Ya   ,6"Yb.   ,M""bMM  `7MMpMMMb.pMMMb.  .gP"Ya
8 #   MMmmdM9  ,M'   Yb 8)   MM ,AP    MM    MM    MM    MM ,M'   Yb
9 #   MM  YM.  8M""""""  ,pm9MM 8MI    MM    MM    MM    MM 8M""""""
10 #   MM   `Mb.YM.    , 8M   MM `Mb    MM    MM    MM    MM YM.    ,
11 # .JMML. .JMM.`Mbmmd' `Moo9^Yo.`Wbmd"MML..JMML  JMML  JMML.`Mbmmd'
13 # Please keep this file in sync with remoting/webapp/files.gni.
16   'variables': {
18     # Jscompile proto files.
19     # These provide type information for jscompile.
20     'remoting_webapp_js_proto_files': [
21       'webapp/js_proto/chrome_proto.js',
22       'webapp/js_proto/chrome_cast_proto.js',
23       'webapp/js_proto/chrome_event_proto.js',
24       'webapp/js_proto/dom_proto.js',
25       'webapp/js_proto/remoting_proto.js',
26     ],
28     #
29     # Webapp browsertest JavaScript files.
30     #
32     # Browser test files.
33     'remoting_webapp_browsertest_js_files': [
34       'webapp/browser_test/browser_test.js',
35       'webapp/browser_test/bump_scroll_browser_test.js',
36       'webapp/browser_test/cancel_pin_browser_test.js',
37       'webapp/browser_test/invalid_pin_browser_test.js',
38       'webapp/browser_test/it2me_browser_test.js',
39       'webapp/browser_test/scrollbar_browser_test.js',
40       'webapp/browser_test/timeout_waiter.js',
41       'webapp/browser_test/unauthenticated_browser_test.js',
42       'webapp/browser_test/update_pin_browser_test.js',
43     ],
44     # Browser test files.
45     'remoting_webapp_browsertest_js_mock_files': [
46       'webapp/crd/js/mock_client_plugin.js',
47       'webapp/crd/js/mock_host_list_api.js',
48       'webapp/crd/js/mock_identity.js',
49       'webapp/crd/js/mock_oauth2_api.js',
50       'webapp/crd/js/mock_signal_strategy.js',
51     ],
52     'remoting_webapp_browsertest_js_proto_files': [
53       'webapp/js_proto/sinon_proto.js',
54       'webapp/js_proto/test_proto.js',
55       '<@(remoting_webapp_js_proto_files)',
56     ],
57     'remoting_webapp_browsertest_all_js_files': [
58       '<@(remoting_webapp_browsertest_js_files)',
59       '<@(remoting_webapp_browsertest_js_mock_files)',
60     ],
61     'remoting_webapp_browsertest_main_html_extra_files': [
62       '<@(remoting_webapp_browsertest_all_js_files)',
63       '../third_party/sinonjs/src/sinon.js',
64     ],
66     #
67     # Webapp unittest JavaScript files.
68     #
70     # These product files are excluded from our JavaScript unittest
71     'remoting_webapp_unittests_exclude_js_files': [
72       # background.js is where the onLoad handler is defined, which
73       # makes it the entry point of the background page.
74       'webapp/crd/js/background.js',
75     ],
76     # The unit test cases for the webapp
77     'remoting_webapp_unittests_js_files': [
78       # TODO(jrw): Move spy_promise to base.
79       'webapp/unittests/spy_promise.js',
80       'webapp/unittests/spy_promise_unittest.js',
81       'webapp/base/js/base_unittest.js',
82       'webapp/base/js/base_event_hook_unittest.js',
83       'webapp/base/js/base_inherits_unittest.js',
84       'webapp/base/js/ipc_unittest.js',
85       'webapp/base/js/protocol_extension_manager_unittest.js',
86       'webapp/base/js/viewport_unittest.js',
87       'webapp/crd/js/apps_v2_migration_unittest.js',
88       'webapp/crd/js/client_session_unittest.js',
89       'webapp/crd/js/client_session_factory_unittest.js',
90       'webapp/crd/js/dns_blackhole_checker_unittest.js',
91       'webapp/crd/js/error_unittest.js',
92       'webapp/crd/js/fallback_signal_strategy_unittest.js',
93       'webapp/crd/js/gcd_client_unittest.js',
94       'webapp/crd/js/gcd_client_with_mock_xhr_unittest.js',
95       'webapp/crd/js/host_controller_unittest.js',
96       'webapp/crd/js/host_daemon_facade_unittest.js',
97       'webapp/crd/js/host_list_api_impl_unittest.js',
98       'webapp/crd/js/host_table_entry_unittest.js',
99       'webapp/crd/js/identity_unittest.js',
100       'webapp/crd/js/l10n_unittest.js',
101       'webapp/crd/js/menu_button_unittest.js',
102       'webapp/crd/js/mock_xhr_unittest.js',
103       'webapp/crd/js/typecheck_unittest.js',
104       'webapp/crd/js/xhr_unittest.js',
105       'webapp/crd/js/xmpp_connection_unittest.js',
106       'webapp/crd/js/xmpp_login_handler_unittest.js',
107       'webapp/crd/js/xmpp_stream_parser_unittest.js',
108     ],
109     'remoting_webapp_unittests_js_mock_files': [
110       # Some proto files can be repurposed as simple mocks for the unittests.
111       # Note that some defs in chrome_proto are overwritten by chrome_mocks.
112       'webapp/crd/js/mock_client_plugin.js',
113       'webapp/crd/js/mock_host_daemon_facade.js',
114       'webapp/crd/js/mock_host_list_api.js',
115       'webapp/crd/js/mock_identity.js',
116       'webapp/crd/js/mock_signal_strategy.js',
117       'webapp/js_proto/chrome_proto.js',
118       'webapp/js_proto/chrome_mocks.js',
119       'webapp/unittests/sinon_helpers.js',
120       'webapp/crd/js/mock_xhr.js',
121     ],
122     # Prototypes for objects that are not mocked.
123     'remoting_webapp_unittests_js_proto_files': [
124       'webapp/js_proto/chrome_cast_proto.js',
125       'webapp/js_proto/dom_proto.js',
126       'webapp/js_proto/remoting_proto.js',
127       'webapp/js_proto/qunit_proto.js',
128       'webapp/js_proto/sinon_proto.js',
129     ],
130     'remoting_webapp_unittests_all_js_files': [
131       '<@(remoting_webapp_unittests_js_files)',
132       '<@(remoting_webapp_unittests_js_mock_files)',
133     ],
134     # All the files needed to run the unittests.
135     'remoting_webapp_unittests_all_files': [
136       'webapp/crd/html/menu_button.css',
137       '<@(remoting_webapp_unittests_all_js_files)',
138     ],
139     'remoting_webapp_unittests_template_main':
140       'webapp/crd/html/template_unittests.html',
142     #
143     # Webapp JavaScript file groups.
144     #
146     # Auth (apps v1) JavaScript files.
147     # These files aren't included directly from main.html. They are
148     # referenced from the manifest.json file (appsv1 only).
149     'remoting_webapp_js_auth_v1_files': [
150       'webapp/crd/js/cs_third_party_auth_trampoline.js',  # client to host
151       'webapp/crd/js/cs_oauth2_trampoline.js',  # Google account
152     ],
153     # Auth (client to host) JavaScript files.
154     'remoting_webapp_js_auth_client2host_files': [
155       'webapp/crd/js/third_party_host_permissions.js',
156       'webapp/crd/js/third_party_token_fetcher.js',
157     ],
158     # Auth (Google account) JavaScript files.
159     'remoting_webapp_js_auth_google_files': [
160       'webapp/base/js/auth_init.js',
161       'webapp/crd/js/identity.js',
162       'webapp/crd/js/oauth2.js',
163       'webapp/crd/js/oauth2_api.js',
164       'webapp/crd/js/oauth2_api_impl.js',
165     ],
166     # Cast extension handler JavaScript files.
167     'remoting_webapp_js_cast_extension_files': [
168       'webapp/crd/js/cast_extension_handler.js',
169     ],
170     # Client JavaScript files.
171     'remoting_webapp_js_client_files': [
172       'webapp/crd/js/activity.js',
173       'webapp/crd/js/client_plugin.js',
174       'webapp/crd/js/client_plugin_impl.js',
175       'webapp/crd/js/client_plugin_host_desktop_impl.js',
176       'webapp/crd/js/client_session.js',
177       'webapp/crd/js/client_session_factory.js',
178       'webapp/crd/js/clipboard.js',
179       'webapp/crd/js/connected_view.js',
180       'webapp/crd/js/connection_info.js',
181       'webapp/crd/js/credentials_provider.js',
182       'webapp/crd/js/host_desktop.js',
183       'webapp/crd/js/smart_reconnector.js',
184       'webapp/crd/js/video_frame_recorder.js',
185     ],
186     # Remoting core JavaScript files.
187     'remoting_webapp_js_core_files': [
188       'webapp/base/js/app_capabilities.js',
189       'webapp/base/js/application.js',
190       'webapp/base/js/base.js',
191       'webapp/base/js/ipc.js',
192       'webapp/base/js/modal_dialogs.js',
193       'webapp/base/js/platform.js',
194       'webapp/base/js/protocol_extension_manager.js',
195       'webapp/base/js/protocol_extension.js',
196       'webapp/crd/js/apps_v2_migration.js',
197       'webapp/crd/js/error.js',
198       'webapp/crd/js/event_handlers.js',
199       'webapp/crd/js/plugin_settings.js',
200       'webapp/crd/js/typecheck.js',
201       'webapp/crd/js/xhr.js',
202       'webapp/crd/js/gcd_client.js',
203     ],
204     # Gnubby authentication JavaScript files.
205     'remoting_webapp_js_gnubby_auth_files': [
206       'webapp/crd/js/gnubby_auth_handler.js',
207     ],
208     # Host JavaScript files.
209     'remoting_webapp_js_host_files': [
210       'webapp/crd/js/host.js',
211       'webapp/crd/js/host_settings.js',
212     ],
213     # Files for controlling the local machine as a host.
214     # Includes both it2me and me2me files.
215     'remoting_webapp_js_host_control_files': [
216       'webapp/crd/js/host_controller.js',
217       'webapp/crd/js/host_daemon_facade.js',
218       'webapp/crd/js/host_screen.js',
219       'webapp/crd/js/host_session.js',
220       'webapp/crd/js/host_setup_dialog.js',
221       'webapp/crd/js/host_install_dialog.js',
222       'webapp/crd/js/host_installer.js',
223       'webapp/crd/js/it2me_host_facade.js',
224       'webapp/crd/js/paired_client_manager.js',
225     ],
226     # Files for displaying (in the client) info about available hosts.
227     'remoting_webapp_js_host_display_files': [
228       'webapp/crd/js/host_list.js',
229       'webapp/crd/js/host_list_api.js',
230       'webapp/crd/js/host_list_api_gcd_impl.js',
231       'webapp/crd/js/host_list_api_impl.js',
232       'webapp/crd/js/host_table_entry.js',
233       'webapp/crd/js/local_host_section.js',
234     ],
235     # Logging and stats JavaScript files.
236     'remoting_webapp_js_logging_files': [
237       'webapp/crd/js/format_iq.js',
238       'webapp/crd/js/log_to_server.js',
239       'webapp/crd/js/server_log_entry.js',
240       'webapp/crd/js/stats_accumulator.js',
241     ],
242     # Remoting signaling files.
243     'remoting_webapp_js_signaling_files': [
244       'webapp/crd/js/dns_blackhole_checker.js',
245       'webapp/crd/js/fallback_signal_strategy.js',
246       'webapp/crd/js/signal_strategy.js',
247       'webapp/crd/js/tcp_socket.js',
248       'webapp/crd/js/wcs_adapter.js',
249       'webapp/crd/js/wcs_sandbox_container.js',
250       'webapp/crd/js/xmpp_connection.js',
251       'webapp/crd/js/xmpp_login_handler.js',
252       'webapp/crd/js/xmpp_stream_parser.js',
253     ],
254     # Shared UI JavaScript files.
255     'remoting_webapp_js_ui_files': [
256       'webapp/base/js/viewport.js',
257       'webapp/base/js/window_shape.js',
258       'webapp/crd/js/connection_stats.js',
259       'webapp/crd/js/feedback.js',
260       'webapp/crd/js/l10n.js',
261       'webapp/crd/js/ui_mode.js',
262     ],
264     #
265     # DesktopRemoting-specific JS files.
266     #
268     # The CRD-specific JavaScript files required by main.html.
269     'remoting_webapp_crd_js_ui_files': [
270       'webapp/crd/js/bump_scroller.js',
271       'webapp/crd/js/butter_bar.js',
272       'webapp/crd/js/crd_auth_dialog.js',
273       'webapp/crd/js/crd_event_handlers.js',
274       'webapp/crd/js/crd_experimental.js',
275       'webapp/crd/js/desktop_connected_view.js',
276       'webapp/crd/js/desktop_remoting.js',
277       'webapp/crd/js/desktop_remoting_activity.js',
278       'webapp/crd/js/desktop_viewport.js',
279       'webapp/crd/js/fullscreen.js',
280       'webapp/crd/js/fullscreen_v1.js',
281       'webapp/crd/js/fullscreen_v2.js',
282       'webapp/crd/js/it2me_activity.js',
283       'webapp/crd/js/me2me_activity.js',
284       'webapp/crd/js/menu_button.js',
285       'webapp/crd/js/options_menu.js',
286       'webapp/crd/js/toolbar.js',
287       'webapp/crd/js/window_frame.js',
288     ],
290     #
291     # DesktopRemoting main.html generation files.
292     #
294     'remoting_webapp_template_main':
295       '<(DEPTH)/remoting/webapp/crd/html/template_main.html',
297     # The shared JavaScript files required by main.html.
298     'remoting_webapp_shared_main_html_js_files': [
299       # Include the core files first as it is required by the other files.
300       # Otherwise, Jscompile will complain.
301       '<@(remoting_webapp_js_core_files)',
302       '<@(remoting_webapp_js_auth_client2host_files)',
303       '<@(remoting_webapp_js_auth_google_files)',
304       '<@(remoting_webapp_js_client_files)',
305       '<@(remoting_webapp_js_gnubby_auth_files)',
306       '<@(remoting_webapp_js_cast_extension_files)',
307       '<@(remoting_webapp_js_host_files)',
308       '<@(remoting_webapp_js_host_control_files)',
309       '<@(remoting_webapp_js_host_display_files)',
310       '<@(remoting_webapp_js_logging_files)',
311       '<@(remoting_webapp_js_ui_files)',
312       '<@(remoting_webapp_js_signaling_files)',
313     ],
315     # The JS files required by unittest.html.
316     'remoting_webapp_unittest_html_all_js_files': [
317       '<@(remoting_webapp_shared_main_html_js_files)',
318       '<@(remoting_webapp_crd_js_ui_files)',
319     ],
321     # The CRD-specific JavaScript files required by main.html.
322     'remoting_webapp_crd_main_html_all_js_files': [
323       '<@(remoting_webapp_shared_main_html_js_files)',
324       '<@(remoting_webapp_crd_js_ui_files)',
325       'webapp/crd/js/crd_main.js',
326     ],
328     # These template files are used to construct main.html.
329     'remoting_webapp_template_files': [
330       'webapp/base/html/client_plugin.html',
331       'webapp/crd/html/butter_bar.html',
332       'webapp/crd/html/dialog_auth.html',
333       'webapp/crd/html/dialog_client_connect_failed.html',
334       'webapp/crd/html/dialog_client_connecting.html',
335       'webapp/crd/html/dialog_client_host_needs_upgrade.html',
336       'webapp/crd/html/dialog_client_pin_prompt.html',
337       'webapp/crd/html/dialog_client_session_finished.html',
338       'webapp/crd/html/dialog_client_third_party_auth.html',
339       'webapp/crd/html/dialog_client_unconnected.html',
340       'webapp/crd/html/dialog_confirm_host_delete.html',
341       'webapp/crd/html/dialog_connection_history.html',
342       'webapp/crd/html/dialog_host.html',
343       'webapp/crd/html/dialog_host_install.html',
344       'webapp/crd/html/dialog_host_setup.html',
345       'webapp/crd/html/dialog_manage_pairings.html',
346       'webapp/crd/html/dialog_token_refresh_failed.html',
347       'webapp/crd/html/toolbar.html',
348       'webapp/crd/html/ui_header.html',
349       'webapp/crd/html/ui_it2me.html',
350       'webapp/crd/html/ui_me2me.html',
351       'webapp/crd/html/window_frame.html',
352     ],
354     #
355     # Webapp background.html generation files.
356     #
358     'remoting_webapp_template_background':
359       '<(DEPTH)/remoting/webapp/crd/html/template_background.html',
361     # These JS files are specific to the background page and are not part of
362     # the main JS files.
363     'remoting_webapp_background_html_js_files': [
364       'webapp/base/js/message_window_helper.js',
365       'webapp/base/js/message_window_manager.js',
366       'webapp/crd/js/activation_handler.js',
367       'webapp/crd/js/app_launcher.js',
368       'webapp/crd/js/background.js',
369     ],
371     # All the JavaScript files required by background.html.
372     'remoting_webapp_background_html_all_js_files': [
373       '<@(remoting_webapp_background_html_js_files)',
374       'webapp/base/js/base.js',
375       'webapp/base/js/ipc.js',
376       'webapp/crd/js/client_session.js',
377       'webapp/crd/js/error.js',
378       'webapp/crd/js/host_installer.js',
379       'webapp/crd/js/host_session.js',
380       'webapp/crd/js/identity.js',
381       'webapp/crd/js/it2me_host_facade.js',
382       'webapp/crd/js/l10n.js',
383       'webapp/crd/js/oauth2.js',
384       'webapp/crd/js/oauth2_api.js',
385       'webapp/crd/js/oauth2_api_impl.js',
386       'webapp/crd/js/plugin_settings.js',
387       'webapp/crd/js/typecheck.js',
388       'webapp/crd/js/xhr.js',
389     ],
391     #
392     # Webapp wcs_sandbox.html generation files.
393     #
395     'remoting_webapp_template_wcs_sandbox':
396       '<(DEPTH)/remoting/webapp/base/html/template_wcs_sandbox.html',
398     # These JS files are specific to the WCS sandbox page and are not part of
399     # the main JS files.
400     'remoting_webapp_wcs_sandbox_html_js_files': [
401       'webapp/crd/js/wcs.js',
402       'webapp/crd/js/wcs_loader.js',
403       'webapp/crd/js/wcs_sandbox_content.js',
404       'webapp/crd/js/xhr_proxy.js',
405     ],
407     # All the JavaScript files required by wcs_sandbox.html.
408     'remoting_webapp_wcs_sandbox_html_all_js_files': [
409       '<@(remoting_webapp_wcs_sandbox_html_js_files)',
410       'webapp/crd/js/error.js',
411       'webapp/crd/js/plugin_settings.js',
412     ],
414     #
415     # Webapp message_window.html generation files.
416     #
418     'remoting_webapp_template_message_window':
419       '<(DEPTH)/remoting/webapp/base/html/template_message_window.html',
421     # These JS files are specific to the message window page and are not part of
422     # the main JS files.
423     'remoting_webapp_message_window_html_js_files': [
424       'webapp/base/js/message_window.js',
425     ],
427     # All the JavaScript files required by message_window.html.
428     'remoting_webapp_message_window_html_all_js_files': [
429       '<@(remoting_webapp_message_window_html_js_files)',
430       'webapp/base/js/base.js',
431     ],
433     #
434     # Complete webapp JS and resource files.
435     #
437     # All the JavaScript files that are shared by webapps.
438     'remoting_webapp_shared_js_files': [
439       '<@(remoting_webapp_shared_main_html_js_files)',
440       '<@(remoting_webapp_background_html_js_files)',
441       '<@(remoting_webapp_message_window_html_js_files)',
442       '<@(remoting_webapp_wcs_sandbox_html_js_files)',
443       # JS files referenced in manifest.json.
444       '<@(remoting_webapp_js_auth_v1_files)',
445     ],
447     # All the JavaScript files required by DesktopRemoting.
448     'remoting_webapp_crd_js_files': [
449       '<@(remoting_webapp_shared_js_files)',
450       '<@(remoting_webapp_crd_main_html_all_js_files)',
451     ],
453     'remoting_webapp_info_files': [
454       'resources/chromoting16.webp',
455       'resources/chromoting48.webp',
456       'resources/chromoting128.webp',
457     ],
459     # All the resource files required by DesktopRemoting.
460     'remoting_webapp_resource_files': [
461       'resources/disclosure_arrow_down.webp',
462       'resources/disclosure_arrow_right.webp',
463       'resources/drag.webp',
464       'resources/host_setup_instructions.webp',
465       'resources/icon_close.webp',
466       'resources/icon_cross.webp',
467       'resources/icon_disconnect.webp',
468       'resources/icon_fullscreen.webp',
469       'resources/icon_help.webp',
470       'resources/icon_host.webp',
471       'resources/icon_maximize_restore.webp',
472       'resources/icon_minimize.webp',
473       'resources/icon_options.webp',
474       'resources/icon_pencil.webp',
475       'resources/icon_warning.webp',
476       'resources/infographic_my_computers.webp',
477       'resources/infographic_remote_assistance.webp',
478       'resources/plus.webp',
479       'resources/reload.webp',
480       'resources/tick.webp',
481       'webapp/base/html/connection_stats.css',
482       'webapp/base/html/main.css',
483       'webapp/base/html/message_window.css',
484       'webapp/base/resources/open_sans.css',
485       'webapp/base/resources/open_sans.woff',
486       'webapp/base/resources/spinner.gif',
487       'webapp/crd/html/butter_bar.css',
488       'webapp/crd/html/toolbar.css',
489       'webapp/crd/html/menu_button.css',
490       'webapp/crd/html/window_frame.css',
491       'webapp/crd/resources/scale-to-fit.webp',
492     ],
494     'remoting_webapp_crd_files': [
495       '<@(remoting_webapp_info_files)',
496       '<@(remoting_webapp_crd_js_files)',
497       '<@(remoting_webapp_resource_files)',
498     ],
500     # Files that contain localizable strings.
501     'desktop_remoting_webapp_localizable_files': [
502       'webapp/crd/manifest.json.jinja2',
503       '<(remoting_webapp_template_background)',
504       '<(remoting_webapp_template_main)',
505       '<(remoting_webapp_template_message_window)',
506       '<(remoting_webapp_template_wcs_sandbox)',
507       '<@(remoting_webapp_template_files)',
508       '<@(remoting_webapp_crd_js_files)',
509     ],
511   },