OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 * TestFixture for SUID Sandbox testing. | 6 * TestFixture for SUID Sandbox testing. |
7 * @extends {testing.Test} | 7 * @extends {testing.Test} |
8 * @constructor | 8 * @constructor |
9 */ | 9 */ |
10 function SandboxStatusUITest() {} | 10 function SandboxStatusUITest() {} |
11 | 11 |
12 SandboxStatusUITest.prototype = { | 12 SandboxStatusUITest.prototype = { |
13 __proto__: testing.Test.prototype, | 13 __proto__: testing.Test.prototype, |
14 /** | 14 /** |
15 * Browse to the options page & call our preLoad(). | 15 * Browse to the options page & call our preLoad(). |
16 */ | 16 */ |
17 browsePreload: 'chrome://sandbox', | 17 browsePreload: 'chrome://sandbox', |
18 | 18 |
19 }; | 19 }; |
20 | 20 |
21 // This test is for Linux only. | 21 // This test is for Linux only. |
22 // PLEASE READ: | 22 // PLEASE READ: |
23 // - If failures of this test are a problem on a bot under your care, | 23 // - If failures of this test are a problem on a bot under your care, |
24 // the proper way to address such failures is to install the SUID | 24 // the proper way to address such failures is to install the SUID |
25 // sandbox. See: | 25 // sandbox. See: |
26 // http://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment | 26 // https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_s
andbox_development.md |
27 // - PLEASE DO NOT GLOBALLY DISABLE THIS TEST. | 27 // - PLEASE DO NOT GLOBALLY DISABLE THIS TEST. |
28 // SUID sandbox is currently incompatible with AddressSanitizer, | 28 // SUID sandbox is currently incompatible with AddressSanitizer, |
29 // see http://crbug.com/137653. | 29 // see http://crbug.com/137653. |
30 GEN('#if defined(OS_LINUX) && !defined(ADDRESS_SANITIZER)'); | 30 GEN('#if defined(OS_LINUX) && !defined(ADDRESS_SANITIZER)'); |
31 GEN('# define MAYBE_testSUIDorNamespaceSandboxEnabled \\'); | 31 GEN('# define MAYBE_testSUIDorNamespaceSandboxEnabled \\'); |
32 GEN(' testSUIDorNamespaceSandboxEnabled'); | 32 GEN(' testSUIDorNamespaceSandboxEnabled'); |
33 GEN('#else'); | 33 GEN('#else'); |
34 GEN('# define MAYBE_testSUIDorNamespaceSandboxEnabled \\'); | 34 GEN('# define MAYBE_testSUIDorNamespaceSandboxEnabled \\'); |
35 GEN(' DISABLED_testSUIDorNamespaceSandboxEnabled'); | 35 GEN(' DISABLED_testSUIDorNamespaceSandboxEnabled'); |
36 GEN('#endif'); | 36 GEN('#endif'); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 if (gpuyes || gpuno) { | 130 if (gpuyes || gpuno) { |
131 expectEquals(null, gpuno); | 131 expectEquals(null, gpuno); |
132 expectTrue(gpuyes && (gpuyes[0] == gpuyesstring)); | 132 expectTrue(gpuyes && (gpuyes[0] == gpuyesstring)); |
133 testDone(); | 133 testDone(); |
134 } | 134 } |
135 } | 135 } |
136 }) | 136 }) |
137 }); | 137 }); |
138 observer.observe(document.getElementById('basic-info'), {childList: true}); | 138 observer.observe(document.getElementById('basic-info'), {childList: true}); |
139 }); | 139 }); |
OLD | NEW |