| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'variables': { | 6 'variables': { |
| 7 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 }, | 8 }, |
| 9 'includes': [ | 9 'includes': [ |
| 10 '../build/win_precompile.gypi', | 10 '../build/win_precompile.gypi', |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 'test/values_test_util.cc', | 482 'test/values_test_util.cc', |
| 483 'test/values_test_util.h', | 483 'test/values_test_util.h', |
| 484 ], | 484 ], |
| 485 }, | 485 }, |
| 486 { | 486 { |
| 487 'target_name': 'base_unittests_run', | 487 'target_name': 'base_unittests_run', |
| 488 'type': 'none', | 488 'type': 'none', |
| 489 'dependencies': [ | 489 'dependencies': [ |
| 490 'base_unittests', | 490 'base_unittests', |
| 491 ], | 491 ], |
| 492 'includes': [ |
| 493 'base_unittests.isolate', |
| 494 ], |
| 492 'actions': [ | 495 'actions': [ |
| 493 { | 496 { |
| 494 'action_name': 'response_file', | |
| 495 'inputs': [ | |
| 496 '<(PRODUCT_DIR)/base_unittests<(EXECUTABLE_SUFFIX)', | |
| 497 '<(DEPTH)/testing/test_env.py', | |
| 498 '<(DEPTH)/testing/xvfb.py', | |
| 499 ], | |
| 500 'conditions': [ | |
| 501 ['OS=="linux"', { | |
| 502 'inputs': [ | |
| 503 '<(PRODUCT_DIR)/xdisplaycheck<(EXECUTABLE_SUFFIX)', | |
| 504 ], | |
| 505 }], | |
| 506 ['OS == "win"', { | |
| 507 'inputs': [ | |
| 508 'data/file_version_info_unittest/FileVersionInfoTest1.dll', | |
| 509 'data/file_version_info_unittest/FileVersionInfoTest2.dll', | |
| 510 ], | |
| 511 }], | |
| 512 ], | |
| 513 'outputs': [ | |
| 514 '<(PRODUCT_DIR)/base_unittests.inputs', | |
| 515 ], | |
| 516 'action': [ | |
| 517 'python', | |
| 518 '-c', | |
| 519 'import sys; ' | |
| 520 'open(sys.argv[1], \'w\').write(\'\\n\'.join(sys.argv[2:]))', | |
| 521 '<@(_outputs)', | |
| 522 '<@(_inputs)', | |
| 523 ], | |
| 524 }, | |
| 525 { | |
| 526 'action_name': 'isolate', | 497 'action_name': 'isolate', |
| 527 'inputs': [ | 498 'inputs': [ |
| 528 '<(PRODUCT_DIR)/base_unittests.inputs', | 499 'base_unittests.isolate', |
| 500 '<@(isolate_dependency_tracked)', |
| 529 ], | 501 ], |
| 530 'outputs': [ | 502 'outputs': [ |
| 531 '<(PRODUCT_DIR)/base_unittests.results', | 503 '<(PRODUCT_DIR)/base_unittests.results', |
| 532 ], | 504 ], |
| 533 'action': [ | 505 'action': [ |
| 534 'python', | 506 'python', |
| 535 '<(DEPTH)/tools/isolate/isolate.py', | 507 '../tools/isolate/isolate.py', |
| 536 '--mode=<(tests_run)', | 508 '--mode', '<(tests_run)', |
| 537 '--root', '<(DEPTH)', | 509 '--variable', 'DEPTH=<(DEPTH)', |
| 510 '--variable', 'PRODUCT_DIR=<(PRODUCT_DIR)', |
| 511 '--variable', 'OS=<(OS)', |
| 538 '--result', '<@(_outputs)', | 512 '--result', '<@(_outputs)', |
| 539 '--files', '<@(_inputs)', | 513 'base_unittests.isolate', |
| 540 # Directories can't be tracked by build tools (make, msbuild, xcode, | |
| 541 # etc) so we just put it on the command line without specifying it | |
| 542 # as an input. | |
| 543 # TODO(maruel): Revisit the support for this at all and list each | |
| 544 # individual test files instead. | |
| 545 'data/file_util_unittest/', | |
| 546 'data/json/bom_feff.json', | |
| 547 '--', | |
| 548 # Wraps base_unittests under xvfb. | |
| 549 '<(DEPTH)/testing/xvfb.py', | |
| 550 '<(PRODUCT_DIR)', | |
| 551 '<(PRODUCT_DIR)/base_unittests<(EXECUTABLE_SUFFIX)', | |
| 552 ], | 514 ], |
| 553 }, | 515 }, |
| 554 ], | 516 ], |
| 555 }, | 517 }, |
| 556 { | 518 { |
| 557 'target_name': 'test_support_perf', | 519 'target_name': 'test_support_perf', |
| 558 'type': 'static_library', | 520 'type': 'static_library', |
| 559 'dependencies': [ | 521 'dependencies': [ |
| 560 'base', | 522 'base', |
| 561 '../testing/gtest.gyp:gtest', | 523 '../testing/gtest.gyp:gtest', |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 # treated as weak imports in dependents, who still must | 619 # treated as weak imports in dependents, who still must |
| 658 # #include closure_blocks_leopard_compat.h to get weak imports. | 620 # #include closure_blocks_leopard_compat.h to get weak imports. |
| 659 'type': 'none', | 621 'type': 'none', |
| 660 }], | 622 }], |
| 661 ], | 623 ], |
| 662 }, | 624 }, |
| 663 ], | 625 ], |
| 664 }], | 626 }], |
| 665 ], | 627 ], |
| 666 } | 628 } |
| OLD | NEW |