GN: Stop setting android.jar in both -classpath and -bootclasspath
[chromium-blink-merge.git] / chrome / browser_tests.isolate
blobca177928dd486f8dc1c9e2451e143ae1f5e57e0b
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
3 # found in the LICENSE file.
5   'conditions': [
6     ['use_x11==0', {
7       'variables': {
8         'command': [
9           '../testing/test_env.py',
10           '<(PRODUCT_DIR)/browser_tests<(EXECUTABLE_SUFFIX)',
11           '--test-launcher-bot-mode',
12           '--asan=<(asan)',
13           '--msan=<(msan)',
14           '--tsan=<(tsan)',
15         ],
16       },
17     }],
18     ['use_x11==1', {
19       'variables': {
20         'command': [
21           '../testing/xvfb.py',
22           '<(PRODUCT_DIR)',
23           '<(PRODUCT_DIR)/browser_tests<(EXECUTABLE_SUFFIX)',
24           '--test-launcher-bot-mode',
25           '--asan=<(asan)',
26           '--msan=<(msan)',
27           '--tsan=<(tsan)',
28         ],
29         'files': [
30           '../testing/xvfb.py',
31           '<(PRODUCT_DIR)/xdisplaycheck<(EXECUTABLE_SUFFIX)',
32         ],
33       },
34     }],
35     ['OS=="linux"', {
36       'variables': {
37         'files': [
38           '<(PRODUCT_DIR)/libclearkeycdm.so',
39           '<(PRODUCT_DIR)/libclearkeycdmadapter.so',
40           '<(PRODUCT_DIR)/libpower_saver_test_plugin.so',
41           '<(PRODUCT_DIR)/libppapi_tests.so',
42         ],
43       },
44     }],
45     ['OS=="linux" and branding=="Chrome" and enable_pepper_cdms==1', {
46       'variables': {
47         'files': [
48           '<(PRODUCT_DIR)/libwidevinecdm.so',
49           '<(PRODUCT_DIR)/libwidevinecdmadapter.so',
50         ],
51       },
52     }],
53     ['OS=="linux" or OS=="mac" or OS=="win"', {
54       'variables': {
55         'files': [
56           '../content/test/data/',
57           '../google_apis/test/',
58           '../media/test/data/',
59           '../media/test/data/',
60           '../net/data/',
61           '../net/tools/testserver/',
62           '../ppapi/tests/test_case.html',
63           '../ppapi/tests/test_case.html.mock-http-headers',
64           '../ppapi/tests/test_page.css',
65           '../ppapi/tests/test_page.css.mock-http-headers',
66           '../testing/test_env.py',
67           '../third_party/accessibility-audit/axs_testing.js',
68           '../third_party/mocha/mocha.js',
69           '../third_party/pyftpdlib/',
70           '../third_party/pywebsocket/',
71           '../third_party/safe_browsing/',
72           '../third_party/simplejson/',
73           '../third_party/tlslite/',
74           '<(PRODUCT_DIR)/browser_tests<(EXECUTABLE_SUFFIX)',
75           '<(PRODUCT_DIR)/browser_tests.pak',
76           '<(PRODUCT_DIR)/pseudo_locales/',
77           '<(PRODUCT_DIR)/pyproto/',
78           # TODO(jam): above is directory for GYP. GN uses:
79           #'<(SHARED_INTERMEDIATE_DIR)/google/',
80           #'<(SHARED_INTERMEDIATE_DIR)/policy/proto/',
81           '<(PRODUCT_DIR)/remoting/unittests/',
82           '<(PRODUCT_DIR)/test_case.html',
83           '<(PRODUCT_DIR)/test_case.html.mock-http-headers',
84           '<(PRODUCT_DIR)/test_data/',
85           '<(PRODUCT_DIR)/test_page.css',
86           '<(PRODUCT_DIR)/test_page.css.mock-http-headers',
87           '<(PRODUCT_DIR)/test_url_loader_data/',
88           'browser/policy/test/asn1der.py',
89           'browser/policy/test/policy_testserver.py',
90           'common/extensions/docs/examples/apps/calculator/',
91           'test/data/',
92           'third_party/mock4js/',
93         ],
94       },
95     }],
96     ['disable_nacl==0 and (OS=="linux" or OS=="mac" or OS=="win")', {
97       'variables': {
98         'files': [
99           '<(PRODUCT_DIR)/nacl_test_data/',
100           '<(PRODUCT_DIR)/pnacl/',
101           '<(PRODUCT_DIR)/ppapi_nacl_tests_newlib.nmf',
102           '<(PRODUCT_DIR)/ppapi_nacl_tests_pnacl.nmf',
103         ],
104       },
105     }],
106     ['OS=="linux" or OS=="win"', {
107       'variables': {
108         'files': [
109           '../third_party/bidichecker/',
110         ],
111       },
112     }],
113     ['disable_nacl==0 and (OS=="linux" or OS=="win")', {
114       'variables': {
115         'files': [
116           '<(PRODUCT_DIR)/mock_nacl_gdb<(EXECUTABLE_SUFFIX)',
117         ],
118       },
119     }],
120     ['disable_nacl==0 and (OS=="linux" or OS=="mac" or OS=="win") and (target_arch=="x64" or target_arch=="ia32")', {
121       'variables': {
122         'files': [
123           '<(PRODUCT_DIR)/ppapi_nacl_tests_glibc.nmf',
124         ],
125       },
126     }],
127     ['disable_nacl==0 and OS=="linux" and (target_arch=="ia32" or target_arch=="x64" or target_arch=="arm")', {
128       'variables': {
129         'files': [
130           '<(PRODUCT_DIR)/ppapi_nacl_tests_pnacl_nonsfi.nmf',
131         ],
132       },
133     }],
134     ['disable_nacl==0 and OS=="linux" and target_arch=="arm"', {
135       'variables': {
136         'files': [
137           '<(PRODUCT_DIR)/ppapi_nacl_tests_newlib_arm.nexe',
138           '<(PRODUCT_DIR)/ppapi_nacl_tests_pnacl_newlib_arm.nexe',
139           '<(PRODUCT_DIR)/ppapi_nacl_tests_pnacl_newlib_arm_nonsfi.nexe',
140         ],
141       },
142     }],
143     ['disable_nacl==0 and (OS=="win" or ((OS=="linux" or OS=="mac") and target_arch=="x64"))', {
144       'variables': {
145         'files': [
146           '<(PRODUCT_DIR)/lib64/',
147           '<(PRODUCT_DIR)/ppapi_nacl_tests_glibc_x64.nexe',
148           '<(PRODUCT_DIR)/ppapi_nacl_tests_newlib_x64.nexe',
149           '<(PRODUCT_DIR)/ppapi_nacl_tests_pnacl_newlib_x64.nexe',
150         ],
151       },
152     }],
153     ['disable_nacl==0 and target_arch=="ia32" and (OS=="mac" or OS=="linux" or OS=="win")', {
154       'variables': {
155         'files': [
156           '<(PRODUCT_DIR)/lib32/',
157           '<(PRODUCT_DIR)/ppapi_nacl_tests_glibc_x32.nexe',
158           '<(PRODUCT_DIR)/ppapi_nacl_tests_newlib_x32.nexe',
159           '<(PRODUCT_DIR)/ppapi_nacl_tests_pnacl_newlib_x32.nexe',
160         ],
161       },
162     }],
163     ['disable_nacl==0 and OS=="linux" and (target_arch=="x64" or target_arch=="ia32")', {
164       'variables': {
165         'files': [
166           '<(PRODUCT_DIR)/ppapi_nacl_tests_pnacl_newlib_x32_nonsfi.nexe',
167         ],
168       },
169     }],
170     ['OS=="mac"', {
171       'variables': {
172         'files': [
173           '<(PRODUCT_DIR)/clearkeycdmadapter.plugin',
174           '<(PRODUCT_DIR)/content_shell.pak',
175           '<(PRODUCT_DIR)/libclearkeycdm.dylib',
176           '<(PRODUCT_DIR)/osmesa.so',
177           '<(PRODUCT_DIR)/plugins/test_netscape_plugin.plugin/',
178           '<(PRODUCT_DIR)/power_saver_test_plugin.plugin/Contents/MacOS/power_saver_test_plugin',
179           '<(PRODUCT_DIR)/ppapi_tests.plugin/Contents/MacOS/ppapi_tests',
180         ],
181       },
182     }],
183     ['OS=="mac" and branding=="Chrome" and enable_pepper_cdms==1', {
184       'variables': {
185         'files': [
186           '<(PRODUCT_DIR)/libwidevinecdm.dylib',
187           '<(PRODUCT_DIR)/widevinecdmadapter.plugin',
188         ],
189       },
190     }],
191     ['OS=="win"', {
192       'variables': {
193         'files': [
194           '../native_client/build/build_nexe.py',
195           '<(PRODUCT_DIR)/chrome_elf.dll',
196           '<(PRODUCT_DIR)/clearkeycdm.dll',
197           '<(PRODUCT_DIR)/clearkeycdmadapter.dll',
198           '<(PRODUCT_DIR)/plugins/',
199           '<(PRODUCT_DIR)/power_saver_test_plugin.dll',
200           '<(PRODUCT_DIR)/ppapi_tests.dll',
201           'tools/build/repack_locales.py',
202         ],
203       },
204     }],
205     ['OS=="win" and branding=="Chrome" and enable_pepper_cdms==1', {
206       'variables': {
207         'files': [
208           '<(PRODUCT_DIR)/widevinecdm.dll',
209           '<(PRODUCT_DIR)/widevinecdmadapter.dll',
210         ],
211       },
212     }],
213     ['OS=="win" and target_arch=="ia32"', {
214       'variables': {
215         'files': [
216           '<(PRODUCT_DIR)/wow_helper.exe',
217         ],
218       },
219     }],
220     ['OS=="win" and (fastbuild==0 or fastbuild==1)', {
221       'variables': {
222         'files': [
223           '<(PRODUCT_DIR)/browser_tests.exe.pdb',
224         ],
225       },
226     }],
227     ['OS=="mac" and asan==1 and fastbuild==0', {
228       'variables': {
229         'files': [
230           '<(PRODUCT_DIR)/browser_tests.dSYM/',
231         ],
232       },
233     }],
234     ['chromeos==1', {
235       'variables': {
236         'files': [
237           '../chromeos/test/data/',
238           '../components/chrome_apps/webstore_widget/cws_widget/',
239           '../ui/file_manager/file_manager/',
240           '../ui/file_manager/gallery/',
241           '../ui/file_manager/image_loader/',
242           '../ui/file_manager/integration_tests/',
243           '../ui/webui/resources/js/',
244           '../third_party/analytics/',
245           '../chrome/browser/resources/chromeos/wallpaper_manager/',
246           '<(PRODUCT_DIR)/chromevox_test_data/',
247           '<(PRODUCT_DIR)/content_shell.pak',
248           '<(PRODUCT_DIR)/keyboard_resources.pak',
249           '<(PRODUCT_DIR)/libexif.so',
250           '<(PRODUCT_DIR)/locales/',
251           '<(PRODUCT_DIR)/nacl_helper',
252           '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe',
253           '<(PRODUCT_DIR)/resources/chromeos/',
254           'browser/chromeos/login/test/https_forwarder.py',
255         ],
256       },
257     }],
258   ],
259   'includes': [
260     '../base/base.isolate',
261     'chrome.isolate',
262   ],