OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "sandbox/linux/syscall_broker/broker_file_permission.h" | 5 #include "sandbox/linux/syscall_broker/broker_file_permission.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <stddef.h> | |
9 #include <string.h> | 8 #include <string.h> |
10 | 9 |
11 #include <string> | 10 #include <string> |
12 | 11 |
13 #include "base/logging.h" | 12 #include "base/logging.h" |
14 #include "sandbox/linux/syscall_broker/broker_common.h" | 13 #include "sandbox/linux/syscall_broker/broker_common.h" |
15 | 14 |
16 namespace sandbox { | 15 namespace sandbox { |
17 | 16 |
18 namespace syscall_broker { | 17 namespace syscall_broker { |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 if (recursive_) { | 234 if (recursive_) { |
236 CHECK(last_char == '/') << GetErrorMessageForTests(); | 235 CHECK(last_char == '/') << GetErrorMessageForTests(); |
237 } else { | 236 } else { |
238 CHECK(last_char != '/') << GetErrorMessageForTests(); | 237 CHECK(last_char != '/') << GetErrorMessageForTests(); |
239 } | 238 } |
240 } | 239 } |
241 | 240 |
242 } // namespace syscall_broker | 241 } // namespace syscall_broker |
243 | 242 |
244 } // namespace sandbox | 243 } // namespace sandbox |
OLD | NEW |