| OLD | NEW |
| 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 #ifndef CONTENT_COMMON_SANDBOX_MAC_H_ | 5 #ifndef CONTENT_COMMON_SANDBOX_MAC_H_ |
| 6 #define CONTENT_COMMON_SANDBOX_MAC_H_ | 6 #define CONTENT_COMMON_SANDBOX_MAC_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 static bool QuoteStringForRegex(const std::string& str_utf8, | 166 static bool QuoteStringForRegex(const std::string& str_utf8, |
| 167 std::string* dst); | 167 std::string* dst); |
| 168 | 168 |
| 169 // Convert provided path into a "canonical" path matching what the Sandbox | 169 // Convert provided path into a "canonical" path matching what the Sandbox |
| 170 // expects i.e. one without symlinks. | 170 // expects i.e. one without symlinks. |
| 171 // This path is not necessarily unique e.g. in the face of hardlinks. | 171 // This path is not necessarily unique e.g. in the face of hardlinks. |
| 172 static void GetCanonicalSandboxPath(FilePath* path); | 172 static void GetCanonicalSandboxPath(FilePath* path); |
| 173 | 173 |
| 174 FRIEND_TEST(MacDirAccessSandboxTest, StringEscape); | 174 FRIEND_TEST(MacDirAccessSandboxTest, StringEscape); |
| 175 FRIEND_TEST(MacDirAccessSandboxTest, RegexEscape); | 175 FRIEND_TEST(MacDirAccessSandboxTest, RegexEscape); |
| 176 FRIEND_TEST(MacDirAccessSandboxTest, SandboxAccess); | 176 FRIEND_TEST(MacDirAccessSandboxTest, DISABLED_SandboxAccess); |
| 177 | 177 |
| 178 DISALLOW_IMPLICIT_CONSTRUCTORS(Sandbox); | 178 DISALLOW_IMPLICIT_CONSTRUCTORS(Sandbox); |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 } // namespace sandbox | 181 } // namespace sandbox |
| 182 | 182 |
| 183 #endif // CONTENT_COMMON_SANDBOX_MAC_H_ | 183 #endif // CONTENT_COMMON_SANDBOX_MAC_H_ |
| OLD | NEW |