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

Side by Side Diff: remoting/remoting_test.gypi

Issue 394023002: Retire gtestjs unit tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Handle merging from master 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/base/run_all_unittests.cc ('k') | remoting/webapp/all_js_load.gtestjs » ('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 # Remoting unit tests 7 # Remoting unit tests
8 { 8 {
9 'target_name': 'remoting_unittests', 9 'target_name': 'remoting_unittests',
10 'type': '<(gtest_target_type)', 10 'type': '<(gtest_target_type)',
(...skipping 22 matching lines...) Expand all
33 'remoting_protocol', 33 'remoting_protocol',
34 'remoting_resources', 34 'remoting_resources',
35 ], 35 ],
36 'defines': [ 36 'defines': [
37 'VERSION=<(version_full)', 37 'VERSION=<(version_full)',
38 ], 38 ],
39 'include_dirs': [ 39 'include_dirs': [
40 '../testing/gmock/include', 40 '../testing/gmock/include',
41 ], 41 ],
42 'sources': [ 42 'sources': [
43 '../chrome/test/base/run_all_remoting_unittests.cc',
44 'base/auth_token_util_unittest.cc', 43 'base/auth_token_util_unittest.cc',
45 'base/auto_thread_task_runner_unittest.cc', 44 'base/auto_thread_task_runner_unittest.cc',
46 'base/auto_thread_unittest.cc', 45 'base/auto_thread_unittest.cc',
47 'base/breakpad_win_unittest.cc', 46 'base/breakpad_win_unittest.cc',
48 'base/capabilities_unittest.cc', 47 'base/capabilities_unittest.cc',
49 'base/compound_buffer_unittest.cc', 48 'base/compound_buffer_unittest.cc',
50 'base/rate_counter_unittest.cc', 49 'base/rate_counter_unittest.cc',
51 'base/resources_unittest.cc', 50 'base/resources_unittest.cc',
52 'base/rsa_key_pair_unittest.cc', 51 'base/rsa_key_pair_unittest.cc',
52 'base/run_all_unittests.cc',
53 'base/running_average_unittest.cc', 53 'base/running_average_unittest.cc',
54 'base/test_rsa_key_pair.h', 54 'base/test_rsa_key_pair.h',
55 'base/typed_buffer_unittest.cc', 55 'base/typed_buffer_unittest.cc',
56 'base/util_unittest.cc', 56 'base/util_unittest.cc',
57 'client/audio_player_unittest.cc', 57 'client/audio_player_unittest.cc',
58 » 'client/client_status_logger_unittest.cc', 58 'client/client_status_logger_unittest.cc',
59 'client/key_event_mapper_unittest.cc', 59 'client/key_event_mapper_unittest.cc',
60 'client/plugin/normalizing_input_filter_cros_unittest.cc', 60 'client/plugin/normalizing_input_filter_cros_unittest.cc',
61 'client/plugin/normalizing_input_filter_mac_unittest.cc', 61 'client/plugin/normalizing_input_filter_mac_unittest.cc',
62 'client/server_log_entry_client_unittest.cc', 62 'client/server_log_entry_client_unittest.cc',
63 'codec/audio_encoder_opus_unittest.cc', 63 'codec/audio_encoder_opus_unittest.cc',
64 'codec/codec_test.cc', 64 'codec/codec_test.cc',
65 'codec/codec_test.h', 65 'codec/codec_test.h',
66 'codec/video_decoder_vpx_unittest.cc', 66 'codec/video_decoder_vpx_unittest.cc',
67 'codec/video_encoder_verbatim_unittest.cc', 67 'codec/video_encoder_verbatim_unittest.cc',
68 'codec/video_encoder_vpx_unittest.cc', 68 'codec/video_encoder_vpx_unittest.cc',
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 'include_dirs': [ 170 'include_dirs': [
171 '../breakpad/src', 171 '../breakpad/src',
172 ], 172 ],
173 'link_settings': { 173 'link_settings': {
174 'libraries': [ 174 'libraries': [
175 '-lrpcrt4.lib', 175 '-lrpcrt4.lib',
176 '-lwtsapi32.lib', 176 '-lwtsapi32.lib',
177 ], 177 ],
178 }, 178 },
179 }], 179 }],
180 [ 'OS=="mac" or (OS=="linux" and chromeos==0)', {
181 # Javascript unittests are disabled on CrOS because they cause
182 # valgrind and test errors.
183 #
184 # Javascript unittests are disabled on Windows because they add a
185 # dependency on 'common_constants' which (only on Windows) requires
186 # additional dependencies:
187 # '../content/content.gyp:content_common',
188 # 'installer_util',
189 # These targets are defined in .gypi files that would need to be
190 # included here:
191 # '../chrome/chrome_common.gypi',
192 # '../chrome/chrome_installer.gypi',
193 # '../chrome/chrome_installer_util.gypi',
194 # But we can't do that because ninja will complain about multiple
195 # target definitions.
196 # TODO(garykac): Move installer_util into a proper .gyp file so that
197 # it can be included in multiple .gyp files.
198 'includes': [
199 '../chrome/js_unittest_rules.gypi',
200 ],
201 'dependencies': [
202 '../chrome/common_constants.gyp:common_constants',
203 '../v8/tools/gyp/v8.gyp:v8',
204 ],
205 'sources': [
206 '../chrome/test/base/v8_unit_test.cc',
207 '../chrome/test/base/v8_unit_test.h',
208 'webapp/browser_globals.gtestjs',
209 'webapp/all_js_load.gtestjs',
210 'webapp/format_iq.gtestjs',
211 '<@(remoting_webapp_all_js_files)',
212 ],
213 }],
214 [ 'OS=="android"', { 180 [ 'OS=="android"', {
215 'dependencies!': [ 181 'dependencies!': [
216 'remoting_client_plugin', 182 'remoting_client_plugin',
217 ], 183 ],
218 }], 184 }],
219 [ 'OS=="android"', { 185 [ 'OS=="android"', {
220 'dependencies': [ 186 'dependencies': [
221 '../testing/android/native_test.gyp:native_test_native_code', 187 '../testing/android/native_test.gyp:native_test_native_code',
222 ], 188 ],
223 }], 189 }],
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 '../third_party/webrtc/modules/modules.gyp:desktop_capture', 223 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
258 'remoting_base', 224 'remoting_base',
259 ], 225 ],
260 'defines': [ 226 'defines': [
261 'VERSION=<(version_full)', 227 'VERSION=<(version_full)',
262 ], 228 ],
263 'include_dirs': [ 229 'include_dirs': [
264 '../testing/gmock/include', 230 '../testing/gmock/include',
265 ], 231 ],
266 'sources': [ 232 'sources': [
267 '../chrome/test/base/run_all_remoting_unittests.cc', 233 'base/run_all_unittests.cc',
268 'codec/codec_test.cc', 234 'codec/codec_test.cc',
269 'codec/codec_test.h', 235 'codec/codec_test.h',
270 'codec/video_encoder_vpx_perftest.cc', 236 'codec/video_encoder_vpx_perftest.cc',
271 ], 237 ],
272 'conditions': [ 238 'conditions': [
273 [ 'OS=="mac" or (OS=="linux" and chromeos==0)', { 239 [ 'OS=="mac" or (OS=="linux" and chromeos==0)', {
274 # RunAllTests calls chrome::RegisterPathProvider() under Mac and 240 # RunAllTests calls chrome::RegisterPathProvider() under Mac and
275 # Linux, so we need the chrome_common.gypi dependency. 241 # Linux, so we need the chrome_common.gypi dependency.
276 'dependencies': [ 242 'dependencies': [
277 '../chrome/common_constants.gyp:common_constants', 243 '../chrome/common_constants.gyp:common_constants',
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 '--output', '<@(_outputs)', 289 '--output', '<@(_outputs)',
324 ], 290 ],
325 }, 291 },
326 ], # end of actions 292 ], # end of actions
327 }, # end of target 'remoting_browser_test_resources' 293 }, # end of target 'remoting_browser_test_resources'
328 { 294 {
329 'target_name': 'remoting_webapp_unittest', 295 'target_name': 'remoting_webapp_unittest',
330 'type': 'none', 296 'type': 'none',
331 'variables': { 297 'variables': {
332 'output_dir': '<(PRODUCT_DIR)/remoting/unittests', 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 ]
333 }, 303 },
334 'copies': [ 304 'copies': [
335 { 305 {
336 'destination': '<(output_dir)/qunit', 306 'destination': '<(output_dir)/qunit',
337 'files': [ 307 'files': [
338 '../third_party/qunit/src/browser_test_harness.js', 308 '../third_party/qunit/src/browser_test_harness.js',
339 '../third_party/qunit/src/qunit.css', 309 '../third_party/qunit/src/qunit.css',
340 '../third_party/qunit/src/qunit.js', 310 '../third_party/qunit/src/qunit.js',
341 ], 311 ],
342 }, 312 },
343 { 313 {
344 'destination': '<(output_dir)/blanketjs', 314 'destination': '<(output_dir)/blanketjs',
345 'files': [ 315 'files': [
346 '../third_party/blanketjs/src/blanket.js', 316 '../third_party/blanketjs/src/blanket.js',
347 '../third_party/blanketjs/src/qunit_adapter.js', 317 '../third_party/blanketjs/src/qunit_adapter.js',
348 ], 318 ],
349 }, 319 },
350 { 320 {
351 'destination': '<(output_dir)/sinonjs', 321 'destination': '<(output_dir)/sinonjs',
352 'files': [ 322 'files': [
353 '../third_party/sinonjs/src/sinon.js', 323 '../third_party/sinonjs/src/sinon.js',
354 '../third_party/sinonjs/src/sinon-qunit.js', 324 '../third_party/sinonjs/src/sinon-qunit.js',
355 ], 325 ],
356 }, 326 },
357 { 327 {
358 'destination': '<(output_dir)', 328 'destination': '<(output_dir)',
359 'files': [ 329 'files': [
360 '<@(remoting_webapp_main_html_js_files)', 330 '<@(webapp_js_files)',
361 ], 331 ],
362 }, 332 },
363 { 333 {
364 'destination': '<(output_dir)', 334 'destination': '<(output_dir)',
365 'files': [ 335 'files': [
366 '<@(remoting_webapp_unittest_cases)' 336 '<@(remoting_webapp_unittest_cases)'
367 ], 337 ],
368 }, 338 },
369 ], 339 ],
370 'actions': [ 340 'actions': [
371 { 341 {
372 'action_name': 'Build Remoting Webapp unittest.html', 342 'action_name': 'Build Remoting Webapp unittest.html',
373 'inputs': [ 343 'inputs': [
374 'webapp/build-html.py', 344 'webapp/build-html.py',
375 '<(remoting_webapp_unittest_template_main)', 345 '<(remoting_webapp_unittest_template_main)',
376 '<@(remoting_webapp_main_html_js_files)', 346 '<@(webapp_js_files)',
377 '<@(remoting_webapp_unittest_cases)' 347 '<@(remoting_webapp_unittest_cases)'
378 ], 348 ],
379 'outputs': [ 349 'outputs': [
380 '<(output_dir)/unittest.html', 350 '<(output_dir)/unittest.html',
381 ], 351 ],
382 'action': [ 352 'action': [
383 'python', 'webapp/build-html.py', 353 'python', 'webapp/build-html.py',
384 '<@(_outputs)', 354 '<@(_outputs)',
385 '<(remoting_webapp_unittest_template_main)', 355 '<(remoting_webapp_unittest_template_main)',
386 # GYP automatically removes subsequent duplicated command line 356 # GYP automatically removes subsequent duplicated command line
387 # arguments. Therefore, the excludejs flag must be set before the 357 # arguments. Therefore, the excludejs flag must be set before the
388 # instrumentedjs flag or else GYP will ignore the files in the 358 # instrumentedjs flag or else GYP will ignore the files in the
389 # exclude list. 359 # exclude list.
390 '--exclude-js', '<@(remoting_webapp_unittest_exclude_files)', 360 '--exclude-js', '<@(remoting_webapp_unittest_exclude_files)',
391 '--js', '<@(remoting_webapp_unittest_cases)', 361 '--js', '<@(remoting_webapp_unittest_cases)',
392 '--instrument-js', '<@(remoting_webapp_main_html_js_files)', 362 '--instrument-js', '<@(webapp_js_files)',
393 ], 363 ],
394 }, 364 },
395 ], 365 ],
396 }, # end of target 'remoting_webapp_js_unittest' 366 }, # end of target 'remoting_webapp_js_unittest'
397 ], # end of targets 367 ], # end of targets
398 } 368 }
OLDNEW
« no previous file with comments | « remoting/base/run_all_unittests.cc ('k') | remoting/webapp/all_js_load.gtestjs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698