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

Side by Side Diff: chrome/chrome_tests.gypi

Issue 8599010: Setup JS unittests for Chromoting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move JS unittest vars/rules into gypis 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
« no previous file with comments | « no previous file | chrome/js_unittest_rules.gypi » ('j') | remoting/run_all_unittests.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'variables' : { 5 'variables' : {
6 # Variables for js2gtest rules
7 'gypv8sh': '../tools/gypv8sh.py',
8 'js2gtest': 'test/base/js2gtest.js',
9 'mock_js': 'third_party/mock4js/mock4js.js',
10 'test_api_js': 'test/data/webui/test_api.js',
11
12 'pyautolib_sources': [ 6 'pyautolib_sources': [
13 'app/chrome_command_ids.h', 7 'app/chrome_command_ids.h',
14 'app/chrome_dll_resource.h', 8 'app/chrome_dll_resource.h',
15 'common/automation_constants.h', 9 'common/automation_constants.h',
16 'common/pref_names.cc', 10 'common/pref_names.cc',
17 'common/pref_names.h', 11 'common/pref_names.h',
18 'test/automation/browser_proxy.cc', 12 'test/automation/browser_proxy.cc',
19 'test/automation/browser_proxy.h', 13 'test/automation/browser_proxy.h',
20 'test/automation/tab_proxy.cc', 14 'test/automation/tab_proxy.cc',
21 'test/automation/tab_proxy.h', 15 'test/automation/tab_proxy.h',
22 ], 16 ],
23 'pyautolib_libraries': [ 17 'pyautolib_libraries': [
24 ], 18 ],
25 'conditions': [ 19 'conditions': [
26 ['asan==1', { 20 ['asan==1', {
27 'pyautolib_libraries': [ 21 'pyautolib_libraries': [
28 # Link in the libasan32.a because this binary will be loaded by 22 # Link in the libasan32.a because this binary will be loaded by
29 # Python that does not have libasan in. 23 # Python that does not have libasan in.
30 '-lasan32', 24 '-lasan32',
31 ] 25 ]
32 }], 26 }],
33 ], 27 ],
34 }, 28 },
29 'includes': [
30 '../chrome/js_unittest_vars.gypi',
31 ],
35 'targets': [ 32 'targets': [
36 { 33 {
37 # This target contains mocks and test utilities that don't belong in 34 # This target contains mocks and test utilities that don't belong in
38 # production libraries but are used by more than one test executable. 35 # production libraries but are used by more than one test executable.
39 'target_name': 'test_support_common', 36 'target_name': 'test_support_common',
40 'type': 'static_library', 37 'type': 'static_library',
41 'dependencies': [ 38 'dependencies': [
42 'app/policy/cloud_policy_codegen.gyp:policy', 39 'app/policy/cloud_policy_codegen.gyp:policy',
43 'browser', 40 'browser',
44 'browser/sync/protocol/sync_proto.gyp:sync_proto', 41 'browser/sync/protocol/sync_proto.gyp:sync_proto',
(...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 '../ui/ui.gyp:ui_resources', 1146 '../ui/ui.gyp:ui_resources',
1150 '../ui/ui.gyp:ui_resources_standard', 1147 '../ui/ui.gyp:ui_resources_standard',
1151 '../ui/ui.gyp:ui_test_support', 1148 '../ui/ui.gyp:ui_test_support',
1152 '../v8/tools/gyp/v8.gyp:v8', 1149 '../v8/tools/gyp/v8.gyp:v8',
1153 'chrome_resources.gyp:chrome_resources', 1150 'chrome_resources.gyp:chrome_resources',
1154 'chrome_resources.gyp:chrome_strings', 1151 'chrome_resources.gyp:chrome_strings',
1155 ], 1152 ],
1156 'include_dirs': [ 1153 'include_dirs': [
1157 '..', 1154 '..',
1158 ], 1155 ],
1156 'includes': [
1157 'js_unittest_rules.gypi',
Sheridan Rawlins 2011/11/19 02:36:26 Add comment // TODO(scr): Use this in browser_test
garykac 2011/11/21 20:46:17 Done.
1158 ],
1159 'defines': [ 1159 'defines': [
1160 'CLD_WINDOWS', 1160 'CLD_WINDOWS',
1161 ], 1161 ],
1162 'direct_dependent_settings': { 1162 'direct_dependent_settings': {
1163 'defines': [ 1163 'defines': [
1164 'CLD_WINDOWS', 1164 'CLD_WINDOWS',
1165 ], 1165 ],
1166 }, 1166 },
1167 'sources': [ 1167 'sources': [
1168 'app/breakpad_mac_stubs.mm', 1168 'app/breakpad_mac_stubs.mm',
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
1997 '../ui/views/test/views_test_base.h', 1997 '../ui/views/test/views_test_base.h',
1998 '../webkit/fileapi/file_system_dir_url_request_job_unittest.cc', 1998 '../webkit/fileapi/file_system_dir_url_request_job_unittest.cc',
1999 '../webkit/fileapi/file_system_operation_write_unittest.cc', 1999 '../webkit/fileapi/file_system_operation_write_unittest.cc',
2000 '../webkit/fileapi/file_system_url_request_job_unittest.cc', 2000 '../webkit/fileapi/file_system_url_request_job_unittest.cc',
2001 '../webkit/fileapi/file_writer_delegate_unittest.cc', 2001 '../webkit/fileapi/file_writer_delegate_unittest.cc',
2002 '../webkit/fileapi/file_system_test_helper.cc', 2002 '../webkit/fileapi/file_system_test_helper.cc',
2003 '../webkit/fileapi/file_system_test_helper.h', 2003 '../webkit/fileapi/file_system_test_helper.h',
2004 '../webkit/quota/mock_storage_client.cc', 2004 '../webkit/quota/mock_storage_client.cc',
2005 '../webkit/quota/mock_storage_client.h', 2005 '../webkit/quota/mock_storage_client.h',
2006 ], 2006 ],
2007 'rules': [
2008 {
2009 'rule_name': 'copyjs',
2010 'extension': 'js',
2011 'msvs_external_rule': 1,
2012 'inputs': [
2013 '../build/cp.py',
2014 ],
2015 'outputs': [
2016 '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ ROOT).<(_extension)',
2017 ],
2018 'action': [
2019 'python',
2020 '<@(_inputs)',
2021 '<(RULE_INPUT_PATH)',
2022 '<@(_outputs)',
2023 ],
2024 },
2025 {
2026 'rule_name': 'js2unit',
2027 'extension': 'gtestjs',
2028 'msvs_external_rule': 1,
2029 'inputs': [
2030 '<(gypv8sh)',
2031 '<(PRODUCT_DIR)/v8_shell<(EXECUTABLE_SUFFIX)',
2032 '<(mock_js)',
2033 '<(test_api_js)',
2034 '<(js2gtest)',
2035 ],
2036 'outputs': [
2037 '<(INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT) -gen.cc',
2038 '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ ROOT).<(_extension)',
2039 ],
2040 'process_outputs_as_sources': 1,
2041 'action': [
2042 'python',
2043 '<@(_inputs)',
2044 'unit',
2045 '<(RULE_INPUT_PATH)',
2046 'chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).<(_extension)',
2047 '<@(_outputs)',
2048 ],
2049 },
2050 ],
2051 'conditions': [ 2007 'conditions': [
2052 ['target_arch!="arm"', { 2008 ['target_arch!="arm"', {
2053 'dependencies': [ 2009 'dependencies': [
2054 # build time dependency. 2010 # build time dependency.
2055 '../v8/tools/gyp/v8.gyp:v8_shell#host', 2011 '../v8/tools/gyp/v8.gyp:v8_shell#host',
2056 ], 2012 ],
2057 }], 2013 }],
2058 ['p2p_apis==1', { 2014 ['p2p_apis==1', {
2059 'sources': [ 2015 'sources': [
2060 '../content/browser/renderer_host/p2p/socket_host_test_utils.h', 2016 '../content/browser/renderer_host/p2p/socket_host_test_utils.h',
(...skipping 2248 matching lines...) Expand 10 before | Expand all | Expand 10 after
4309 # Use outputs of this action as inputs for the main target build. 4265 # Use outputs of this action as inputs for the main target build.
4310 # Seems as a misnomer but makes this happy on Linux (scons). 4266 # Seems as a misnomer but makes this happy on Linux (scons).
4311 'process_outputs_as_sources': 1, 4267 'process_outputs_as_sources': 1,
4312 }, 4268 },
4313 ], # 'actions' 4269 ], # 'actions'
4314 }, 4270 },
4315 ] 4271 ]
4316 }], # 'coverage!=0' 4272 }], # 'coverage!=0'
4317 ], # 'conditions' 4273 ], # 'conditions'
4318 } 4274 }
OLDNEW
« no previous file with comments | « no previous file | chrome/js_unittest_rules.gypi » ('j') | remoting/run_all_unittests.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698