Roll src/third_party/WebKit 6a61df7:51aa64b (svn 201111:201112)
[chromium-blink-merge.git] / chrome / unit_tests.isolate
blobad2aa014f74566cf8f75270252a16fad0b27b236
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)/unit_tests<(EXECUTABLE_SUFFIX)',
11           '--brave-new-test-launcher',
12           '--test-launcher-bot-mode',
13           '--asan=<(asan)',
14           '--msan=<(msan)',
15           '--tsan=<(tsan)',
16         ],
17       },
18     }],
19     ['use_x11==1', {
20       'variables': {
21         'command': [
22           '../testing/xvfb.py',
23           '<(PRODUCT_DIR)',
24           '<(PRODUCT_DIR)/unit_tests<(EXECUTABLE_SUFFIX)',
25           '--brave-new-test-launcher',
26           '--test-launcher-bot-mode',
27           '--asan=<(asan)',
28           '--msan=<(msan)',
29           '--tsan=<(tsan)',
30         ],
31         'files': [
32           '../testing/xvfb.py',
33           '<(PRODUCT_DIR)/xdisplaycheck<(EXECUTABLE_SUFFIX)',
34         ],
35       },
36     }],
37     ['OS=="android" or OS=="linux" or OS=="win" or OS=="mac"', {
38       'variables': {
39         'files': [
40           '<(PRODUCT_DIR)/test_data/chrome/browser/resources/google_now/',
41           '<(PRODUCT_DIR)/test_data/chrome/browser/resources/print_preview/',
42           '<(PRODUCT_DIR)/test_data/chrome/renderer/resources/extensions/',
43           '<(PRODUCT_DIR)/test_data/chrome/test/data/unit/',
44           '<(PRODUCT_DIR)/test_data/ui/webui/',
45         ],
46       },
47     }],
48     ['OS=="android" or OS=="linux" or OS=="mac" or OS=="win"', {
49       'variables': {
50         'files': [
51           '../base/test/data/',
52           '../components/test/data/',
53           '../extensions/test/data/',
54           '../google_apis/test/data/',
55           '../net/data/',
56           '../third_party/accessibility-audit/axs_testing.js',
57           '../third_party/hunspell_dictionaries/',
58           '../third_party/zlib/google/test/data/',
59           '../tools/metrics/histograms/histograms.xml',
60           '<(PRODUCT_DIR)/resources.pak',
61           'test/data/',
62           'third_party/mock4js/',
63         ],
64       },
65     }],
66     ['OS=="android" or OS=="linux" or OS=="win"', {
67       'variables': {
68         'files': [
69           '<(PRODUCT_DIR)/chrome_100_percent.pak',
70           '<(PRODUCT_DIR)/locales/en-US.pak',
71         ],
72       },
73     }],
74     ['OS=="linux"', {
75       'variables': {
76         'files': [
77           '<(PRODUCT_DIR)/libosmesa.so',
78           '<(PRODUCT_DIR)/locales/fr.pak',
79         ],
80       },
81     }],
82     ['OS=="linux" or OS=="mac" or OS=="win"', {
83       'variables': {
84         'files': [
85           '../net/tools/testserver/',
86           '../testing/test_env.py',
87           '../third_party/pyftpdlib/',
88           '../third_party/pywebsocket/',
89           '../third_party/tlslite/',
90           '<(PRODUCT_DIR)/pyproto/google/',
91           '<(PRODUCT_DIR)/unit_tests<(EXECUTABLE_SUFFIX)',
92         ],
93       },
94     }],
95     ['OS=="linux" or OS=="mac"', {
96       'variables': {
97         'read_only': 1,
98       },
99     }],
100     ['OS=="mac"', {
101       'variables': {
102         'files': [
103           '<(PRODUCT_DIR)/<(mac_product_name) Framework.framework/',
104           '<(PRODUCT_DIR)/exif.so',
105           '<(PRODUCT_DIR)/osmesa.so',
106           '<(PRODUCT_DIR)/test_data/chrome/safe_browsing_dmg/',
107         ],
108       },
109     }],
110     ['OS=="mac" and asan==1 and fastbuild==0', {
111       'variables': {
112         'files': [
113           '<(PRODUCT_DIR)/<(mac_product_name) Framework.framework.dSYM/',
114           '<(PRODUCT_DIR)/exif.so.dSYM/',
115           '<(PRODUCT_DIR)/osmesa.so.dSYM/',
116           '<(PRODUCT_DIR)/unit_tests.dSYM/',
117         ],
118       },
119     }],
120     ['OS=="win"', {
121       'variables': {
122         'files': [
123           '../ppapi/lib/gl/include/KHR/',
124           '../skia/ext/data/',
125           '../ui/base/glib/',
126           '<(PRODUCT_DIR)/blacklist_test_dll_1.dll',
127           '<(PRODUCT_DIR)/chrome_elf.dll',
128           '<(PRODUCT_DIR)/libexif.dll',
129           '<(PRODUCT_DIR)/osmesa.dll',
130           '<(PRODUCT_DIR)/verifier_test_dll_1.dll',
131           '<(PRODUCT_DIR)/verifier_test_dll_2.dll',
132           'test/data/safe_browsing/signed_binary.dll',
133         ],
134         # Can't be enabled on Windows due to http://crbug.com/342913
135         'read_only': 0,
136       },
137     }],
138     ['OS=="win" and (fastbuild==0 or fastbuild==1)', {
139       'variables': {
140         'files': [
141           '<(PRODUCT_DIR)/unit_tests.exe.pdb',
142         ],
143       },
144     }],
145     ['OS=="win" and kasko==1', {
146       'variables': {
147         'files': [
148           '<(PRODUCT_DIR)/kasko.dll',
149         ],
150       },
151     }],
152     ['chromeos==1', {
153       'variables': {
154         'files': [
155           '../chromeos/test/data/network/',
156           '<(PRODUCT_DIR)/libexif.so',
157           '<(PRODUCT_DIR)/test_data/chrome/browser/resources/chromeos/',
158         ],
159       },
160     }],
161   ],
162   'includes': [
163     '../base/base.isolate',
164     '../gin/v8.isolate',
165     '../ui/gl/gl.isolate',
166   ],