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