| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/services/namespace_sandbox.h" | 5 #include "sandbox/linux/services/namespace_sandbox.h" |
| 6 | 6 |
| 7 #include <signal.h> | 7 #include <signal.h> |
| 8 #include <sys/types.h> | 8 #include <sys/types.h> |
| 9 #include <sys/wait.h> | 9 #include <sys/wait.h> |
| 10 #include <unistd.h> | 10 #include <unistd.h> |
| 11 | 11 |
| 12 #include <string> | 12 #include <string> |
| 13 #include <utility> | 13 #include <utility> |
| 14 | 14 |
| 15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
| 16 #include "base/files/file_enumerator.h" | 16 #include "base/files/file_enumerator.h" |
| 17 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
| 18 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/memory/scoped_ptr.h" | |
| 20 #include "base/process/launch.h" | 19 #include "base/process/launch.h" |
| 21 #include "base/process/process.h" | 20 #include "base/process/process.h" |
| 22 #include "base/test/multiprocess_test.h" | 21 #include "base/test/multiprocess_test.h" |
| 23 #include "sandbox/linux/services/credentials.h" | 22 #include "sandbox/linux/services/credentials.h" |
| 24 #include "sandbox/linux/services/namespace_utils.h" | 23 #include "sandbox/linux/services/namespace_utils.h" |
| 25 #include "sandbox/linux/services/proc_util.h" | 24 #include "sandbox/linux/services/proc_util.h" |
| 26 #include "sandbox/linux/tests/unit_tests.h" | 25 #include "sandbox/linux/tests/unit_tests.h" |
| 27 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
| 28 #include "testing/multiprocess_func_list.h" | 27 #include "testing/multiprocess_func_list.h" |
| 29 | 28 |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 CHECK(!NamespaceSandbox::InstallTerminationSignalHandler( | 232 CHECK(!NamespaceSandbox::InstallTerminationSignalHandler( |
| 234 SIGUSR1, NamespaceSandbox::SignalExitCode(SIGUSR1))); | 233 SIGUSR1, NamespaceSandbox::SignalExitCode(SIGUSR1))); |
| 235 | 234 |
| 236 raise(SIGUSR1); | 235 raise(SIGUSR1); |
| 237 CHECK_EQ(1, signal_handler_called); | 236 CHECK_EQ(1, signal_handler_called); |
| 238 } | 237 } |
| 239 | 238 |
| 240 } // namespace | 239 } // namespace |
| 241 | 240 |
| 242 } // namespace sandbox | 241 } // namespace sandbox |
| OLD | NEW |