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

Side by Side Diff: chrome/chrome_tests.gypi

Issue 8418015: Allow javascript unit tests using webui test_api framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing dependency on v8_shell. Created 9 years, 1 month 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
OLDNEW
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
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': [
1997 ['target_arch!="arm"', {
1998 'dependencies': [
1999 # build time dependency.
2000 '../v8/tools/gyp/v8.gyp:v8_shell#host',
2001 ],
2002 }],
1962 ['p2p_apis==1', { 2003 ['p2p_apis==1', {
1963 'sources': [ 2004 'sources': [
1964 '../content/browser/renderer_host/p2p/socket_host_test_utils.h', 2005 '../content/browser/renderer_host/p2p/socket_host_test_utils.h',
1965 '../content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc', 2006 '../content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc',
1966 '../content/browser/renderer_host/p2p/socket_host_tcp_server_unittes t.cc', 2007 '../content/browser/renderer_host/p2p/socket_host_tcp_server_unittes t.cc',
1967 '../content/browser/renderer_host/p2p/socket_host_udp_unittest.cc', 2008 '../content/browser/renderer_host/p2p/socket_host_udp_unittest.cc',
1968 '../content/renderer/p2p/p2p_transport_impl_unittest.cc', 2009 '../content/renderer/p2p/p2p_transport_impl_unittest.cc',
1969 ], 2010 ],
1970 }], 2011 }],
1971 ['touchui==0', { 2012 ['touchui==0', {
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
2264 ], 2305 ],
2265 }], 2306 }],
2266 ], 2307 ],
2267 }, 2308 },
2268 { 2309 {
2269 # Executable that runs each browser test in a new process. 2310 # Executable that runs each browser test in a new process.
2270 'target_name': 'browser_tests', 2311 'target_name': 'browser_tests',
2271 'type': 'executable', 2312 'type': 'executable',
2272 'msvs_cygwin_shell': 0, 2313 'msvs_cygwin_shell': 0,
2273 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'], 2314 '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': [ 2315 'dependencies': [
2282 'browser', 2316 'browser',
2283 'browser/sync/protocol/sync_proto.gyp:sync_proto', 2317 'browser/sync/protocol/sync_proto.gyp:sync_proto',
2284 'chrome', 2318 'chrome',
2285 'chrome_resources', 2319 'chrome_resources',
2286 'chrome_strings', 2320 'chrome_strings',
2287 'renderer', 2321 'renderer',
2288 'test_support_common', 2322 'test_support_common',
2289 '../base/base.gyp:base', 2323 '../base/base.gyp:base',
2290 '../base/base.gyp:base_i18n', 2324 '../base/base.gyp:base_i18n',
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
2625 'rules': [ 2659 'rules': [
2626 { 2660 {
2627 'rule_name': 'js2webui', 2661 'rule_name': 'js2webui',
2628 'extension': 'js', 2662 'extension': 'js',
2629 'msvs_external_rule': 1, 2663 'msvs_external_rule': 1,
2630 'inputs': [ 2664 'inputs': [
2631 '<(gypv8sh)', 2665 '<(gypv8sh)',
2632 '<(PRODUCT_DIR)/v8_shell<(EXECUTABLE_SUFFIX)', 2666 '<(PRODUCT_DIR)/v8_shell<(EXECUTABLE_SUFFIX)',
2633 '<(mock_js)', 2667 '<(mock_js)',
2634 '<(test_api_js)', 2668 '<(test_api_js)',
2635 '<(js2webui)', 2669 '<(js2gtest)',
2636 ], 2670 ],
2637 'outputs': [ 2671 'outputs': [
2638 '<(js2webui_out_dir)/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT) .cc', 2672 '<(js2gtest_out_dir)/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT) .cc',
2639 '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ ROOT).js', 2673 '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ ROOT).js',
2640 ], 2674 ],
2641 'process_outputs_as_sources': 1, 2675 'process_outputs_as_sources': 1,
2642 'action': [ 2676 'action': [
2643 'python', 2677 'python',
2644 '<@(_inputs)', 2678 '<@(_inputs)',
2679 'webui',
2645 '<(RULE_INPUT_PATH)', 2680 '<(RULE_INPUT_PATH)',
2646 'chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js', 2681 'chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js',
2647 '<@(_outputs)', 2682 '<@(_outputs)',
2648 ], 2683 ],
2649 }, 2684 },
2650 ], 2685 ],
2651 'conditions': [ 2686 'conditions': [
2652 ['chromeos==0', { 2687 ['chromeos==0', {
2653 'sources/': [ 2688 'sources/': [
2654 ['exclude', '^browser/chromeos'], 2689 ['exclude', '^browser/chromeos'],
(...skipping 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after
4153 # Use outputs of this action as inputs for the main target build. 4188 # Use outputs of this action as inputs for the main target build.
4154 # Seems as a misnomer but makes this happy on Linux (scons). 4189 # Seems as a misnomer but makes this happy on Linux (scons).
4155 'process_outputs_as_sources': 1, 4190 'process_outputs_as_sources': 1,
4156 }, 4191 },
4157 ], # 'actions' 4192 ], # 'actions'
4158 }, 4193 },
4159 ] 4194 ]
4160 }], # 'coverage!=0' 4195 }], # 'coverage!=0'
4161 ], # 'conditions' 4196 ], # 'conditions'
4162 } 4197 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698