OLD | NEW |
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 'conditions': [ |
| 43 ['enable_remoting_host == 0', { |
| 44 'dependencies!': [ |
| 45 'remoting_host', |
| 46 ], |
| 47 'sources/': [ |
| 48 ['exclude', '^host/'], |
| 49 ] |
| 50 }], |
| 51 ], |
| 52 }, |
| 53 |
7 # Remoting unit tests | 54 # Remoting unit tests |
8 { | 55 { |
9 'target_name': 'remoting_unittests', | 56 'target_name': 'remoting_unittests', |
10 'type': '<(gtest_target_type)', | 57 'type': '<(gtest_target_type)', |
11 'dependencies': [ | 58 'dependencies': [ |
12 '../base/base.gyp:base', | 59 '../base/base.gyp:base', |
13 '../base/base.gyp:base_i18n', | 60 '../base/base.gyp:base_i18n', |
14 '../base/base.gyp:test_support_base', | 61 '../base/base.gyp:test_support_base', |
15 '../ipc/ipc.gyp:ipc', | 62 '../ipc/ipc.gyp:ipc', |
16 '../net/net.gyp:net_test_support', | 63 '../net/net.gyp:net_test_support', |
17 '../ppapi/ppapi.gyp:ppapi_cpp', | 64 '../ppapi/ppapi.gyp:ppapi_cpp', |
18 '../testing/gmock.gyp:gmock', | 65 '../testing/gmock.gyp:gmock', |
19 '../testing/gtest.gyp:gtest', | 66 '../testing/gtest.gyp:gtest', |
20 '../third_party/libyuv/libyuv.gyp:libyuv', | 67 '../third_party/libyuv/libyuv.gyp:libyuv', |
21 '../third_party/webrtc/modules/modules.gyp:desktop_capture', | 68 '../third_party/webrtc/modules/modules.gyp:desktop_capture', |
22 '../ui/base/ui_base.gyp:ui_base', | 69 '../ui/base/ui_base.gyp:ui_base', |
23 '../ui/gfx/gfx.gyp:gfx', | 70 '../ui/gfx/gfx.gyp:gfx', |
24 '../ui/gfx/gfx.gyp:gfx_geometry', | 71 '../ui/gfx/gfx.gyp:gfx_geometry', |
25 'remoting_base', | 72 'remoting_base', |
26 'remoting_breakpad', | 73 'remoting_breakpad', |
27 'remoting_client', | 74 'remoting_client', |
28 'remoting_client_plugin', | 75 'remoting_client_plugin', |
29 'remoting_host', | 76 'remoting_host', |
30 'remoting_host_setup_base', | 77 'remoting_host_setup_base', |
31 'remoting_it2me_host_static', | 78 'remoting_it2me_host_static', |
32 'remoting_native_messaging_base', | 79 'remoting_native_messaging_base', |
33 'remoting_protocol', | 80 'remoting_protocol', |
34 'remoting_resources', | 81 'remoting_resources', |
| 82 'remoting_test_common', |
35 ], | 83 ], |
36 'defines': [ | 84 'defines': [ |
37 'VERSION=<(version_full)', | 85 'VERSION=<(version_full)', |
38 ], | 86 ], |
39 'include_dirs': [ | 87 'include_dirs': [ |
40 '../testing/gmock/include', | 88 '../testing/gmock/include', |
41 ], | 89 ], |
42 'sources': [ | 90 'sources': [ |
43 'base/auth_token_util_unittest.cc', | 91 'base/auth_token_util_unittest.cc', |
44 'base/auto_thread_task_runner_unittest.cc', | 92 'base/auto_thread_task_runner_unittest.cc', |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 'host/json_host_config_unittest.cc', | 139 'host/json_host_config_unittest.cc', |
92 'host/linux/audio_pipe_reader_unittest.cc', | 140 'host/linux/audio_pipe_reader_unittest.cc', |
93 'host/linux/unicode_to_keysym_unittest.cc', | 141 'host/linux/unicode_to_keysym_unittest.cc', |
94 'host/linux/x_server_clipboard_unittest.cc', | 142 'host/linux/x_server_clipboard_unittest.cc', |
95 'host/local_input_monitor_unittest.cc', | 143 'host/local_input_monitor_unittest.cc', |
96 'host/native_messaging/native_messaging_reader_unittest.cc', | 144 'host/native_messaging/native_messaging_reader_unittest.cc', |
97 'host/native_messaging/native_messaging_writer_unittest.cc', | 145 'host/native_messaging/native_messaging_writer_unittest.cc', |
98 'host/pairing_registry_delegate_linux_unittest.cc', | 146 'host/pairing_registry_delegate_linux_unittest.cc', |
99 'host/pairing_registry_delegate_win_unittest.cc', | 147 'host/pairing_registry_delegate_win_unittest.cc', |
100 'host/pin_hash_unittest.cc', | 148 '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', | 149 'host/policy_hack/policy_watcher_unittest.cc', |
106 'host/register_support_host_request_unittest.cc', | 150 'host/register_support_host_request_unittest.cc', |
107 'host/remote_input_filter_unittest.cc', | 151 'host/remote_input_filter_unittest.cc', |
108 'host/resizing_host_observer_unittest.cc', | 152 'host/resizing_host_observer_unittest.cc', |
109 'host/screen_resolution_unittest.cc', | 153 'host/screen_resolution_unittest.cc', |
110 'host/server_log_entry_host_unittest.cc', | 154 'host/server_log_entry_host_unittest.cc', |
111 'host/setup/me2me_native_messaging_host.cc', | 155 'host/setup/me2me_native_messaging_host.cc', |
112 'host/setup/me2me_native_messaging_host.h', | 156 'host/setup/me2me_native_messaging_host.h', |
113 'host/setup/me2me_native_messaging_host_unittest.cc', | 157 'host/setup/me2me_native_messaging_host_unittest.cc', |
114 'host/setup/oauth_helper_unittest.cc', | 158 'host/setup/oauth_helper_unittest.cc', |
(...skipping 10 matching lines...) Expand all Loading... |
125 'protocol/authenticator_test_base.h', | 169 'protocol/authenticator_test_base.h', |
126 'protocol/buffered_socket_writer_unittest.cc', | 170 'protocol/buffered_socket_writer_unittest.cc', |
127 'protocol/channel_multiplexer_unittest.cc', | 171 'protocol/channel_multiplexer_unittest.cc', |
128 'protocol/chromium_socket_factory_unittest.cc', | 172 'protocol/chromium_socket_factory_unittest.cc', |
129 'protocol/clipboard_echo_filter_unittest.cc', | 173 'protocol/clipboard_echo_filter_unittest.cc', |
130 'protocol/clipboard_filter_unittest.cc', | 174 'protocol/clipboard_filter_unittest.cc', |
131 'protocol/connection_tester.cc', | 175 'protocol/connection_tester.cc', |
132 'protocol/connection_tester.h', | 176 'protocol/connection_tester.h', |
133 'protocol/connection_to_client_unittest.cc', | 177 'protocol/connection_to_client_unittest.cc', |
134 'protocol/content_description_unittest.cc', | 178 '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', | 179 'protocol/input_event_tracker_unittest.cc', |
140 'protocol/input_filter_unittest.cc', | 180 'protocol/input_filter_unittest.cc', |
141 'protocol/jingle_messages_unittest.cc', | 181 'protocol/jingle_messages_unittest.cc', |
142 'protocol/jingle_session_unittest.cc', | 182 'protocol/jingle_session_unittest.cc', |
143 'protocol/message_decoder_unittest.cc', | 183 'protocol/message_decoder_unittest.cc', |
144 'protocol/message_reader_unittest.cc', | 184 'protocol/message_reader_unittest.cc', |
145 'protocol/monitored_video_stub_unittest.cc', | 185 'protocol/monitored_video_stub_unittest.cc', |
146 'protocol/mouse_input_filter_unittest.cc', | 186 'protocol/mouse_input_filter_unittest.cc', |
147 'protocol/negotiating_authenticator_unittest.cc', | 187 'protocol/negotiating_authenticator_unittest.cc', |
148 'protocol/network_settings_unittest.cc', | 188 'protocol/network_settings_unittest.cc', |
149 'protocol/pairing_registry_unittest.cc', | 189 'protocol/pairing_registry_unittest.cc', |
150 'protocol/ppapi_module_stub.cc', | 190 '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', | 191 'protocol/ssl_hmac_channel_authenticator_unittest.cc', |
154 'protocol/third_party_authenticator_unittest.cc', | 192 'protocol/third_party_authenticator_unittest.cc', |
155 'protocol/v2_authenticator_unittest.cc', | 193 'protocol/v2_authenticator_unittest.cc', |
156 'signaling/fake_signal_strategy.cc', | 194 'signaling/fake_signal_strategy.cc', |
157 'signaling/fake_signal_strategy.h', | 195 'signaling/fake_signal_strategy.h', |
158 'signaling/iq_sender_unittest.cc', | 196 'signaling/iq_sender_unittest.cc', |
159 'signaling/log_to_server_unittest.cc', | 197 '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', | 198 'signaling/server_log_entry_unittest.cc', |
163 'signaling/server_log_entry_unittest.h', | 199 'signaling/server_log_entry_unittest.h', |
164 ], | 200 ], |
165 'conditions': [ | 201 'conditions': [ |
166 [ 'OS=="win"', { | 202 [ 'OS=="win"', { |
167 'defines': [ | 203 'defines': [ |
168 '_ATL_NO_EXCEPTIONS', | 204 '_ATL_NO_EXCEPTIONS', |
169 ], | 205 ], |
170 'include_dirs': [ | 206 'include_dirs': [ |
171 '../breakpad/src', | 207 '../breakpad/src', |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 ['exclude', '^base/resources_unittest\\.cc$'], | 241 ['exclude', '^base/resources_unittest\\.cc$'], |
206 ] | 242 ] |
207 }], | 243 }], |
208 [ 'OS == "linux" and use_allocator!="none"', { | 244 [ 'OS == "linux" and use_allocator!="none"', { |
209 'dependencies': [ | 245 'dependencies': [ |
210 '../base/allocator/allocator.gyp:allocator', | 246 '../base/allocator/allocator.gyp:allocator', |
211 ], | 247 ], |
212 }], | 248 }], |
213 ], # end of 'conditions' | 249 ], # end of 'conditions' |
214 }, # end of target 'remoting_unittests' | 250 }, # 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 { | 251 { |
259 'target_name': 'remoting_browser_test_resources', | 252 'target_name': 'remoting_browser_test_resources', |
260 'type': 'none', | 253 'type': 'none', |
261 'variables': { | 254 'variables': { |
262 'zip_script': '../build/android/gyp/zip.py', | 255 'zip_script': '../build/android/gyp/zip.py', |
263 }, | 256 }, |
264 'copies': [ | 257 'copies': [ |
265 { | 258 { |
266 'destination': '<(PRODUCT_DIR)', | 259 'destination': '<(PRODUCT_DIR)', |
267 'files': [ | 260 'files': [ |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 # instrumentedjs flag or else GYP will ignore the files in the | 347 # instrumentedjs flag or else GYP will ignore the files in the |
355 # exclude list. | 348 # exclude list. |
356 '--exclude-js', '<@(remoting_webapp_unittest_exclude_files)', | 349 '--exclude-js', '<@(remoting_webapp_unittest_exclude_files)', |
357 '--js', '<@(remoting_webapp_unittest_cases)', | 350 '--js', '<@(remoting_webapp_unittest_cases)', |
358 '--instrument-js', '<@(webapp_js_files)', | 351 '--instrument-js', '<@(webapp_js_files)', |
359 ], | 352 ], |
360 }, | 353 }, |
361 ], | 354 ], |
362 }, # end of target 'remoting_webapp_js_unittest' | 355 }, # end of target 'remoting_webapp_js_unittest' |
363 ], # 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 'base/run_all_unittests.cc', |
| 382 'codec/codec_test.cc', |
| 383 'codec/codec_test.h', |
| 384 'codec/video_encoder_vpx_perftest.cc', |
| 385 'test/protocol_perftest.cc', |
| 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 ] |
364 } | 410 } |
OLD | NEW |