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