OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 # Variables for js2gtest rules |
| 8 'gypv8sh': '../tools/gypv8sh.py', |
| 9 'js2gtest': 'test/base/js2gtest.js', |
| 10 'js2gtest_out_dir': '<(SHARED_INTERMEDIATE_DIR)/js2gtest', |
| 11 'mock_js': 'third_party/mock4js/mock4js.js', |
| 12 'test_api_js': 'test/data/webui/test_api.js', |
| 13 |
7 'pyautolib_sources': [ | 14 'pyautolib_sources': [ |
8 'app/chrome_command_ids.h', | 15 'app/chrome_command_ids.h', |
9 'app/chrome_dll_resource.h', | 16 'app/chrome_dll_resource.h', |
10 'common/automation_constants.h', | 17 'common/automation_constants.h', |
11 'common/pref_names.cc', | 18 'common/pref_names.cc', |
12 'common/pref_names.h', | 19 'common/pref_names.h', |
13 'test/automation/browser_proxy.cc', | 20 'test/automation/browser_proxy.cc', |
14 'test/automation/browser_proxy.h', | 21 'test/automation/browser_proxy.h', |
15 'test/automation/tab_proxy.cc', | 22 'test/automation/tab_proxy.cc', |
16 'test/automation/tab_proxy.h', | 23 'test/automation/tab_proxy.h', |
(...skipping 1913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1930 'service/service_process_unittest.cc', | 1937 'service/service_process_unittest.cc', |
1931 'test/base/browser_with_test_window_test.cc', | 1938 'test/base/browser_with_test_window_test.cc', |
1932 'test/base/browser_with_test_window_test.h', | 1939 'test/base/browser_with_test_window_test.h', |
1933 'test/base/chrome_render_view_test.cc', | 1940 'test/base/chrome_render_view_test.cc', |
1934 'test/base/chrome_render_view_test.h', | 1941 'test/base/chrome_render_view_test.h', |
1935 'test/base/menu_model_test.cc', | 1942 'test/base/menu_model_test.cc', |
1936 'test/base/menu_model_test.h', | 1943 'test/base/menu_model_test.h', |
1937 'test/base/v8_unit_test.cc', | 1944 'test/base/v8_unit_test.cc', |
1938 'test/base/v8_unit_test.h', | 1945 'test/base/v8_unit_test.h', |
1939 'test/data/resource.rc', | 1946 'test/data/resource.rc', |
| 1947 'test/data/unit/framework_unittest.js', |
1940 'tools/convert_dict/convert_dict_unittest.cc', | 1948 'tools/convert_dict/convert_dict_unittest.cc', |
1941 '../content/browser/renderer_host/render_widget_host_unittest.cc', | 1949 '../content/browser/renderer_host/render_widget_host_unittest.cc', |
1942 '../content/browser/renderer_host/text_input_client_mac_unittest.mm', | 1950 '../content/browser/renderer_host/text_input_client_mac_unittest.mm', |
1943 '../content/browser/tab_contents/navigation_controller_unittest.cc', | 1951 '../content/browser/tab_contents/navigation_controller_unittest.cc', |
1944 '../content/browser/tab_contents/render_view_host_manager_unittest.cc', | 1952 '../content/browser/tab_contents/render_view_host_manager_unittest.cc', |
1945 '../content/common/sandbox_mac_diraccess_unittest.mm', | 1953 '../content/common/sandbox_mac_diraccess_unittest.mm', |
1946 '../content/common/sandbox_mac_fontloading_unittest.mm', | 1954 '../content/common/sandbox_mac_fontloading_unittest.mm', |
1947 '../content/common/sandbox_mac_unittest_helper.h', | 1955 '../content/common/sandbox_mac_unittest_helper.h', |
1948 '../content/common/sandbox_mac_unittest_helper.mm', | 1956 '../content/common/sandbox_mac_unittest_helper.mm', |
1949 '../content/common/sandbox_mac_system_access_unittest.mm', | 1957 '../content/common/sandbox_mac_system_access_unittest.mm', |
1950 '../testing/gtest_mac_unittest.mm', | 1958 '../testing/gtest_mac_unittest.mm', |
1951 '../third_party/cld/encodings/compact_lang_det/compact_lang_det_unittest
_small.cc', | 1959 '../third_party/cld/encodings/compact_lang_det/compact_lang_det_unittest
_small.cc', |
1952 '../webkit/fileapi/file_system_dir_url_request_job_unittest.cc', | 1960 '../webkit/fileapi/file_system_dir_url_request_job_unittest.cc', |
1953 '../webkit/fileapi/file_system_operation_write_unittest.cc', | 1961 '../webkit/fileapi/file_system_operation_write_unittest.cc', |
1954 '../webkit/fileapi/file_system_url_request_job_unittest.cc', | 1962 '../webkit/fileapi/file_system_url_request_job_unittest.cc', |
1955 '../webkit/fileapi/file_writer_delegate_unittest.cc', | 1963 '../webkit/fileapi/file_writer_delegate_unittest.cc', |
1956 '../webkit/fileapi/file_system_test_helper.cc', | 1964 '../webkit/fileapi/file_system_test_helper.cc', |
1957 '../webkit/fileapi/file_system_test_helper.h', | 1965 '../webkit/fileapi/file_system_test_helper.h', |
1958 '../webkit/quota/mock_storage_client.cc', | 1966 '../webkit/quota/mock_storage_client.cc', |
1959 '../webkit/quota/mock_storage_client.h', | 1967 '../webkit/quota/mock_storage_client.h', |
1960 ], | 1968 ], |
| 1969 'rules': [ |
| 1970 { |
| 1971 'rule_name': 'js2unit', |
| 1972 'extension': 'js', |
| 1973 'msvs_external_rule': 1, |
| 1974 'inputs': [ |
| 1975 '<(gypv8sh)', |
| 1976 '<(PRODUCT_DIR)/v8_shell<(EXECUTABLE_SUFFIX)', |
| 1977 '<(mock_js)', |
| 1978 '<(test_api_js)', |
| 1979 '<(js2gtest)', |
| 1980 ], |
| 1981 'outputs': [ |
| 1982 '<(js2gtest_out_dir)/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)
.cc', |
| 1983 '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_
ROOT).js', |
| 1984 ], |
| 1985 'process_outputs_as_sources': 1, |
| 1986 'action': [ |
| 1987 'python', |
| 1988 '<@(_inputs)', |
| 1989 'unit', |
| 1990 '<(RULE_INPUT_PATH)', |
| 1991 'chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js', |
| 1992 '<@(_outputs)', |
| 1993 ], |
| 1994 }, |
| 1995 ], |
1961 'conditions': [ | 1996 'conditions': [ |
1962 ['p2p_apis==1', { | 1997 ['p2p_apis==1', { |
1963 'sources': [ | 1998 'sources': [ |
1964 '../content/browser/renderer_host/p2p/socket_host_test_utils.h', | 1999 '../content/browser/renderer_host/p2p/socket_host_test_utils.h', |
1965 '../content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc', | 2000 '../content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc', |
1966 '../content/browser/renderer_host/p2p/socket_host_tcp_server_unittes
t.cc', | 2001 '../content/browser/renderer_host/p2p/socket_host_tcp_server_unittes
t.cc', |
1967 '../content/browser/renderer_host/p2p/socket_host_udp_unittest.cc', | 2002 '../content/browser/renderer_host/p2p/socket_host_udp_unittest.cc', |
1968 '../content/renderer/p2p/p2p_transport_impl_unittest.cc', | 2003 '../content/renderer/p2p/p2p_transport_impl_unittest.cc', |
1969 ], | 2004 ], |
1970 }], | 2005 }], |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2264 ], | 2299 ], |
2265 }], | 2300 }], |
2266 ], | 2301 ], |
2267 }, | 2302 }, |
2268 { | 2303 { |
2269 # Executable that runs each browser test in a new process. | 2304 # Executable that runs each browser test in a new process. |
2270 'target_name': 'browser_tests', | 2305 'target_name': 'browser_tests', |
2271 'type': 'executable', | 2306 'type': 'executable', |
2272 'msvs_cygwin_shell': 0, | 2307 'msvs_cygwin_shell': 0, |
2273 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'], | 2308 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'], |
2274 'variables': { | |
2275 'gypv8sh': '../tools/gypv8sh.py', | |
2276 'js2webui': 'browser/ui/webui/javascript2webui.js', | |
2277 'js2webui_out_dir': '<(SHARED_INTERMEDIATE_DIR)/js2webui', | |
2278 'mock_js': 'third_party/mock4js/mock4js.js', | |
2279 'test_api_js': 'test/data/webui/test_api.js', | |
2280 }, | |
2281 'dependencies': [ | 2309 'dependencies': [ |
2282 'browser', | 2310 'browser', |
2283 'browser/sync/protocol/sync_proto.gyp:sync_proto', | 2311 'browser/sync/protocol/sync_proto.gyp:sync_proto', |
2284 'chrome', | 2312 'chrome', |
2285 'chrome_resources', | 2313 'chrome_resources', |
2286 'chrome_strings', | 2314 'chrome_strings', |
2287 'renderer', | 2315 'renderer', |
2288 'test_support_common', | 2316 'test_support_common', |
2289 '../base/base.gyp:base', | 2317 '../base/base.gyp:base', |
2290 '../base/base.gyp:base_i18n', | 2318 '../base/base.gyp:base_i18n', |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2622 'rules': [ | 2650 'rules': [ |
2623 { | 2651 { |
2624 'rule_name': 'js2webui', | 2652 'rule_name': 'js2webui', |
2625 'extension': 'js', | 2653 'extension': 'js', |
2626 'msvs_external_rule': 1, | 2654 'msvs_external_rule': 1, |
2627 'inputs': [ | 2655 'inputs': [ |
2628 '<(gypv8sh)', | 2656 '<(gypv8sh)', |
2629 '<(PRODUCT_DIR)/v8_shell<(EXECUTABLE_SUFFIX)', | 2657 '<(PRODUCT_DIR)/v8_shell<(EXECUTABLE_SUFFIX)', |
2630 '<(mock_js)', | 2658 '<(mock_js)', |
2631 '<(test_api_js)', | 2659 '<(test_api_js)', |
2632 '<(js2webui)', | 2660 '<(js2gtest)', |
2633 ], | 2661 ], |
2634 'outputs': [ | 2662 'outputs': [ |
2635 '<(js2webui_out_dir)/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)
.cc', | 2663 '<(js2gtest_out_dir)/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)
.cc', |
2636 '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_
ROOT).js', | 2664 '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_
ROOT).js', |
2637 ], | 2665 ], |
2638 'process_outputs_as_sources': 1, | 2666 'process_outputs_as_sources': 1, |
2639 'action': [ | 2667 'action': [ |
2640 'python', | 2668 'python', |
2641 '<@(_inputs)', | 2669 '<@(_inputs)', |
| 2670 'webui', |
2642 '<(RULE_INPUT_PATH)', | 2671 '<(RULE_INPUT_PATH)', |
2643 'chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js', | 2672 'chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js', |
2644 '<@(_outputs)', | 2673 '<@(_outputs)', |
2645 ], | 2674 ], |
2646 }, | 2675 }, |
2647 ], | 2676 ], |
2648 'conditions': [ | 2677 'conditions': [ |
2649 ['chromeos==0', { | 2678 ['chromeos==0', { |
2650 'sources/': [ | 2679 'sources/': [ |
2651 ['exclude', '^browser/chromeos'], | 2680 ['exclude', '^browser/chromeos'], |
(...skipping 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4149 # Use outputs of this action as inputs for the main target build. | 4178 # Use outputs of this action as inputs for the main target build. |
4150 # Seems as a misnomer but makes this happy on Linux (scons). | 4179 # Seems as a misnomer but makes this happy on Linux (scons). |
4151 'process_outputs_as_sources': 1, | 4180 'process_outputs_as_sources': 1, |
4152 }, | 4181 }, |
4153 ], # 'actions' | 4182 ], # 'actions' |
4154 }, | 4183 }, |
4155 ] | 4184 ] |
4156 }], # 'coverage!=0' | 4185 }], # 'coverage!=0' |
4157 ], # 'conditions' | 4186 ], # 'conditions' |
4158 } | 4187 } |
OLD | NEW |