Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: remoting/remoting_test.gypi

Issue 394883008: Add basic perf tests for chromoting protocol. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/remoting_host_win.gypi ('k') | remoting/test/protocol_perf_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'targets': [ 6 'targets': [
7 {
8 'target_name': 'remoting_test_common',
9 'type': 'static_library',
10 'dependencies': [
11 '../base/base.gyp:base',
12 '../net/net.gyp:net_test_support',
13 '../testing/gmock.gyp:gmock',
14 '../testing/gtest.gyp:gtest',
15 'remoting_base',
16 'remoting_client',
17 'remoting_host',
18 'remoting_protocol',
19 'remoting_resources',
20 ],
21 'sources': [
22 'host/fake_desktop_environment.cc',
23 'host/fake_desktop_environment.h',
24 'host/fake_host_status_monitor.h',
25 'host/fake_screen_capturer.cc',
26 'host/fake_screen_capturer.h',
27 'host/policy_hack/fake_policy_watcher.cc',
28 'host/policy_hack/fake_policy_watcher.h',
29 'host/policy_hack/mock_policy_callback.cc',
30 'host/policy_hack/mock_policy_callback.h',
31 'protocol/fake_authenticator.cc',
32 'protocol/fake_authenticator.h',
33 'protocol/fake_session.cc',
34 'protocol/fake_session.h',
35 'protocol/protocol_mock_objects.cc',
36 'protocol/protocol_mock_objects.h',
37 'signaling/fake_signal_strategy.cc',
38 'signaling/fake_signal_strategy.h',
39 'signaling/mock_signal_strategy.cc',
40 'signaling/mock_signal_strategy.h',
41 ],
42 },
43
7 # Remoting unit tests 44 # Remoting unit tests
8 { 45 {
9 'target_name': 'remoting_unittests', 46 'target_name': 'remoting_unittests',
10 'type': '<(gtest_target_type)', 47 'type': '<(gtest_target_type)',
11 'dependencies': [ 48 'dependencies': [
12 '../base/base.gyp:base', 49 '../base/base.gyp:base',
13 '../base/base.gyp:base_i18n', 50 '../base/base.gyp:base_i18n',
14 '../base/base.gyp:test_support_base', 51 '../base/base.gyp:test_support_base',
15 '../ipc/ipc.gyp:ipc', 52 '../ipc/ipc.gyp:ipc',
16 '../net/net.gyp:net_test_support', 53 '../net/net.gyp:net_test_support',
17 '../ppapi/ppapi.gyp:ppapi_cpp', 54 '../ppapi/ppapi.gyp:ppapi_cpp',
18 '../testing/gmock.gyp:gmock', 55 '../testing/gmock.gyp:gmock',
19 '../testing/gtest.gyp:gtest', 56 '../testing/gtest.gyp:gtest',
20 '../third_party/libyuv/libyuv.gyp:libyuv', 57 '../third_party/libyuv/libyuv.gyp:libyuv',
21 '../third_party/webrtc/modules/modules.gyp:desktop_capture', 58 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
22 '../ui/base/ui_base.gyp:ui_base', 59 '../ui/base/ui_base.gyp:ui_base',
23 '../ui/gfx/gfx.gyp:gfx', 60 '../ui/gfx/gfx.gyp:gfx',
24 '../ui/gfx/gfx.gyp:gfx_geometry', 61 '../ui/gfx/gfx.gyp:gfx_geometry',
25 'remoting_base', 62 'remoting_base',
26 'remoting_breakpad', 63 'remoting_breakpad',
27 'remoting_client', 64 'remoting_client',
28 'remoting_client_plugin', 65 'remoting_client_plugin',
29 'remoting_host', 66 'remoting_host',
30 'remoting_host_setup_base', 67 'remoting_host_setup_base',
31 'remoting_it2me_host_static', 68 'remoting_it2me_host_static',
32 'remoting_native_messaging_base', 69 'remoting_native_messaging_base',
33 'remoting_protocol', 70 'remoting_protocol',
34 'remoting_resources', 71 'remoting_resources',
72 'remoting_test_common',
35 ], 73 ],
36 'defines': [ 74 'defines': [
37 'VERSION=<(version_full)', 75 'VERSION=<(version_full)',
38 ], 76 ],
39 'include_dirs': [ 77 'include_dirs': [
40 '../testing/gmock/include', 78 '../testing/gmock/include',
41 ], 79 ],
42 'sources': [ 80 'sources': [
43 '../chrome/test/base/run_all_remoting_unittests.cc', 81 '../chrome/test/base/run_all_remoting_unittests.cc',
44 'base/auth_token_util_unittest.cc', 82 'base/auth_token_util_unittest.cc',
45 'base/auto_thread_task_runner_unittest.cc', 83 'base/auto_thread_task_runner_unittest.cc',
46 'base/auto_thread_unittest.cc', 84 'base/auto_thread_unittest.cc',
47 'base/breakpad_win_unittest.cc', 85 'base/breakpad_win_unittest.cc',
48 'base/capabilities_unittest.cc', 86 'base/capabilities_unittest.cc',
49 'base/compound_buffer_unittest.cc', 87 'base/compound_buffer_unittest.cc',
50 'base/rate_counter_unittest.cc', 88 'base/rate_counter_unittest.cc',
51 'base/resources_unittest.cc', 89 'base/resources_unittest.cc',
52 'base/rsa_key_pair_unittest.cc', 90 'base/rsa_key_pair_unittest.cc',
53 'base/running_average_unittest.cc', 91 'base/running_average_unittest.cc',
54 'base/test_rsa_key_pair.h', 92 'base/test_rsa_key_pair.h',
55 'base/typed_buffer_unittest.cc', 93 'base/typed_buffer_unittest.cc',
56 'base/util_unittest.cc', 94 'base/util_unittest.cc',
57 'client/audio_player_unittest.cc', 95 'client/audio_player_unittest.cc',
58 » 'client/client_status_logger_unittest.cc', 96 'client/client_status_logger_unittest.cc',
59 'client/key_event_mapper_unittest.cc', 97 'client/key_event_mapper_unittest.cc',
60 'client/plugin/normalizing_input_filter_cros_unittest.cc', 98 'client/plugin/normalizing_input_filter_cros_unittest.cc',
61 'client/plugin/normalizing_input_filter_mac_unittest.cc', 99 'client/plugin/normalizing_input_filter_mac_unittest.cc',
62 'client/server_log_entry_client_unittest.cc', 100 'client/server_log_entry_client_unittest.cc',
63 'codec/audio_encoder_opus_unittest.cc', 101 'codec/audio_encoder_opus_unittest.cc',
64 'codec/codec_test.cc', 102 'codec/codec_test.cc',
65 'codec/codec_test.h', 103 'codec/codec_test.h',
66 'codec/video_decoder_vpx_unittest.cc', 104 'codec/video_decoder_vpx_unittest.cc',
67 'codec/video_encoder_verbatim_unittest.cc', 105 'codec/video_encoder_verbatim_unittest.cc',
68 'codec/video_encoder_vpx_unittest.cc', 106 'codec/video_encoder_vpx_unittest.cc',
(...skipping 22 matching lines...) Expand all
91 'host/json_host_config_unittest.cc', 129 'host/json_host_config_unittest.cc',
92 'host/linux/audio_pipe_reader_unittest.cc', 130 'host/linux/audio_pipe_reader_unittest.cc',
93 'host/linux/unicode_to_keysym_unittest.cc', 131 'host/linux/unicode_to_keysym_unittest.cc',
94 'host/linux/x_server_clipboard_unittest.cc', 132 'host/linux/x_server_clipboard_unittest.cc',
95 'host/local_input_monitor_unittest.cc', 133 'host/local_input_monitor_unittest.cc',
96 'host/native_messaging/native_messaging_reader_unittest.cc', 134 'host/native_messaging/native_messaging_reader_unittest.cc',
97 'host/native_messaging/native_messaging_writer_unittest.cc', 135 'host/native_messaging/native_messaging_writer_unittest.cc',
98 'host/pairing_registry_delegate_linux_unittest.cc', 136 'host/pairing_registry_delegate_linux_unittest.cc',
99 'host/pairing_registry_delegate_win_unittest.cc', 137 'host/pairing_registry_delegate_win_unittest.cc',
100 'host/pin_hash_unittest.cc', 138 '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', 139 'host/policy_hack/policy_watcher_unittest.cc',
106 'host/register_support_host_request_unittest.cc', 140 'host/register_support_host_request_unittest.cc',
107 'host/remote_input_filter_unittest.cc', 141 'host/remote_input_filter_unittest.cc',
108 'host/resizing_host_observer_unittest.cc', 142 'host/resizing_host_observer_unittest.cc',
109 'host/screen_resolution_unittest.cc', 143 'host/screen_resolution_unittest.cc',
110 'host/server_log_entry_host_unittest.cc', 144 'host/server_log_entry_host_unittest.cc',
111 'host/setup/me2me_native_messaging_host.cc', 145 'host/setup/me2me_native_messaging_host.cc',
112 'host/setup/me2me_native_messaging_host.h', 146 'host/setup/me2me_native_messaging_host.h',
113 'host/setup/me2me_native_messaging_host_unittest.cc', 147 'host/setup/me2me_native_messaging_host_unittest.cc',
114 'host/setup/oauth_helper_unittest.cc', 148 'host/setup/oauth_helper_unittest.cc',
(...skipping 10 matching lines...) Expand all
125 'protocol/authenticator_test_base.h', 159 'protocol/authenticator_test_base.h',
126 'protocol/buffered_socket_writer_unittest.cc', 160 'protocol/buffered_socket_writer_unittest.cc',
127 'protocol/channel_multiplexer_unittest.cc', 161 'protocol/channel_multiplexer_unittest.cc',
128 'protocol/chromium_socket_factory_unittest.cc', 162 'protocol/chromium_socket_factory_unittest.cc',
129 'protocol/clipboard_echo_filter_unittest.cc', 163 'protocol/clipboard_echo_filter_unittest.cc',
130 'protocol/clipboard_filter_unittest.cc', 164 'protocol/clipboard_filter_unittest.cc',
131 'protocol/connection_tester.cc', 165 'protocol/connection_tester.cc',
132 'protocol/connection_tester.h', 166 'protocol/connection_tester.h',
133 'protocol/connection_to_client_unittest.cc', 167 'protocol/connection_to_client_unittest.cc',
134 'protocol/content_description_unittest.cc', 168 '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', 169 'protocol/input_event_tracker_unittest.cc',
140 'protocol/input_filter_unittest.cc', 170 'protocol/input_filter_unittest.cc',
141 'protocol/jingle_messages_unittest.cc', 171 'protocol/jingle_messages_unittest.cc',
142 'protocol/jingle_session_unittest.cc', 172 'protocol/jingle_session_unittest.cc',
143 'protocol/message_decoder_unittest.cc', 173 'protocol/message_decoder_unittest.cc',
144 'protocol/message_reader_unittest.cc', 174 'protocol/message_reader_unittest.cc',
145 'protocol/monitored_video_stub_unittest.cc', 175 'protocol/monitored_video_stub_unittest.cc',
146 'protocol/mouse_input_filter_unittest.cc', 176 'protocol/mouse_input_filter_unittest.cc',
147 'protocol/negotiating_authenticator_unittest.cc', 177 'protocol/negotiating_authenticator_unittest.cc',
148 'protocol/network_settings_unittest.cc', 178 'protocol/network_settings_unittest.cc',
149 'protocol/pairing_registry_unittest.cc', 179 'protocol/pairing_registry_unittest.cc',
150 'protocol/ppapi_module_stub.cc', 180 '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', 181 'protocol/ssl_hmac_channel_authenticator_unittest.cc',
154 'protocol/third_party_authenticator_unittest.cc', 182 'protocol/third_party_authenticator_unittest.cc',
155 'protocol/v2_authenticator_unittest.cc', 183 'protocol/v2_authenticator_unittest.cc',
156 'signaling/fake_signal_strategy.cc', 184 'signaling/fake_signal_strategy.cc',
157 'signaling/fake_signal_strategy.h', 185 'signaling/fake_signal_strategy.h',
158 'signaling/iq_sender_unittest.cc', 186 'signaling/iq_sender_unittest.cc',
159 'signaling/log_to_server_unittest.cc', 187 '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', 188 'signaling/server_log_entry_unittest.cc',
163 'signaling/server_log_entry_unittest.h', 189 'signaling/server_log_entry_unittest.h',
164 ], 190 ],
165 'conditions': [ 191 'conditions': [
166 [ 'OS=="win"', { 192 [ 'OS=="win"', {
167 'defines': [ 193 'defines': [
168 '_ATL_NO_EXCEPTIONS', 194 '_ATL_NO_EXCEPTIONS',
169 ], 195 ],
170 'include_dirs': [ 196 'include_dirs': [
171 '../breakpad/src', 197 '../breakpad/src',
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 ['exclude', '^base/resources_unittest\\.cc$'], 265 ['exclude', '^base/resources_unittest\\.cc$'],
240 ] 266 ]
241 }], 267 }],
242 [ 'OS == "linux" and use_allocator!="none"', { 268 [ 'OS == "linux" and use_allocator!="none"', {
243 'dependencies': [ 269 'dependencies': [
244 '../base/allocator/allocator.gyp:allocator', 270 '../base/allocator/allocator.gyp:allocator',
245 ], 271 ],
246 }], 272 }],
247 ], # end of 'conditions' 273 ], # end of 'conditions'
248 }, # end of target 'remoting_unittests' 274 }, # end of target 'remoting_unittests'
249 # Remoting performance tests
250 {
251 'target_name': 'remoting_perftests',
252 'type': '<(gtest_target_type)',
253 'dependencies': [
254 '../base/base.gyp:base',
255 '../base/base.gyp:test_support_base',
256 '../testing/gtest.gyp:gtest',
257 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
258 'remoting_base',
259 ],
260 'defines': [
261 'VERSION=<(version_full)',
262 ],
263 'include_dirs': [
264 '../testing/gmock/include',
265 ],
266 'sources': [
267 '../chrome/test/base/run_all_remoting_unittests.cc',
268 'codec/codec_test.cc',
269 'codec/codec_test.h',
270 'codec/video_encoder_vpx_perftest.cc',
271 ],
272 'conditions': [
273 [ 'OS=="mac" or (OS=="linux" and chromeos==0)', {
274 # RunAllTests calls chrome::RegisterPathProvider() under Mac and
275 # Linux, so we need the chrome_common.gypi dependency.
276 'dependencies': [
277 '../chrome/common_constants.gyp:common_constants',
278 ],
279 }],
280 [ 'OS=="android"', {
281 'dependencies': [
282 '../testing/android/native_test.gyp:native_test_native_code',
283 ],
284 }],
285 [ 'OS == "linux" and use_allocator!="none"', {
286 'dependencies': [
287 '../base/allocator/allocator.gyp:allocator',
288 ],
289 }],
290 ], # end of 'conditions'
291 }, # end of target 'remoting_perftests'
292 { 275 {
293 'target_name': 'remoting_browser_test_resources', 276 'target_name': 'remoting_browser_test_resources',
294 'type': 'none', 277 'type': 'none',
295 'copies': [ 278 'copies': [
296 { 279 {
297 'destination': '<(PRODUCT_DIR)', 280 'destination': '<(PRODUCT_DIR)',
298 'files': [ 281 'files': [
299 '<@(remoting_webapp_js_browser_test_files)', 282 '<@(remoting_webapp_js_browser_test_files)',
300 ], 283 ],
301 }, 284 },
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 # instrumentedjs flag or else GYP will ignore the files in the 347 # instrumentedjs flag or else GYP will ignore the files in the
365 # exclude list. 348 # exclude list.
366 '--exclude-js', '<@(remoting_webapp_unittest_exclude_files)', 349 '--exclude-js', '<@(remoting_webapp_unittest_exclude_files)',
367 '--js', '<@(remoting_webapp_unittest_cases)', 350 '--js', '<@(remoting_webapp_unittest_cases)',
368 '--instrument-js', '<@(remoting_webapp_main_html_js_files)', 351 '--instrument-js', '<@(remoting_webapp_main_html_js_files)',
369 ], 352 ],
370 }, 353 },
371 ], 354 ],
372 }, # end of target 'remoting_webapp_js_unittest' 355 }, # end of target 'remoting_webapp_js_unittest'
373 ], # end of targets 356 ], # end of targets
357
358 'conditions': [
359 ['enable_remoting_host==1', {
360 'targets': [
361 # Remoting performance tests
362 {
363 'target_name': 'remoting_perftests',
364 'type': '<(gtest_target_type)',
365 'dependencies': [
366 '../base/base.gyp:base',
367 '../base/base.gyp:test_support_base',
368 '../testing/gtest.gyp:gtest',
369 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
370 '../third_party/libjingle/libjingle.gyp:libjingle',
371 'remoting_base',
372 'remoting_test_common',
373 ],
374 'defines': [
375 'VERSION=<(version_full)',
376 ],
377 'include_dirs': [
378 '../testing/gmock/include',
379 ],
380 'sources': [
381 '../chrome/test/base/run_all_remoting_unittests.cc',
382 'codec/codec_test.cc',
383 'codec/codec_test.h',
384 'codec/video_encoder_vpx_perftest.cc',
385 'test/protocol_perf_test.cc',
Wez 2014/07/16 22:44:52 nit: name this _perftest.cc for consistency?
Sergey Ulanov 2014/07/17 01:47:58 Done.
386 ],
387 'conditions': [
388 [ 'OS=="mac" or (OS=="linux" and chromeos==0)', {
389 # RunAllTests calls chrome::RegisterPathProvider() under Mac and
390 # Linux, so we need the chrome_common.gypi dependency.
391 'dependencies': [
392 '../chrome/common_constants.gyp:common_constants',
393 ],
394 }],
395 [ 'OS=="android"', {
396 'dependencies': [
397 '../testing/android/native_test.gyp:native_test_native_code',
398 ],
399 }],
400 [ 'OS == "linux" and use_allocator!="none"', {
401 'dependencies': [
402 '../base/allocator/allocator.gyp:allocator',
403 ],
404 }],
405 ], # end of 'conditions'
406 }, # end of target 'remoting_perftests'
407 ]
408 }]
409 ]
374 } 410 }
OLDNEW
« no previous file with comments | « remoting/remoting_host_win.gypi ('k') | remoting/test/protocol_perf_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698