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/services/thread_helpers.h" | 5 #include "sandbox/linux/services/thread_helpers.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
9 #include <sys/stat.h> | 9 #include <sys/stat.h> |
10 #include <sys/types.h> | 10 #include <sys/types.h> |
11 #include <unistd.h> | 11 #include <unistd.h> |
12 | 12 |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/scoped_ptr.h" | |
16 #include "base/posix/eintr_wrapper.h" | 15 #include "base/posix/eintr_wrapper.h" |
17 #include "base/process/process_metrics.h" | 16 #include "base/process/process_metrics.h" |
18 #include "base/threading/platform_thread.h" | 17 #include "base/threading/platform_thread.h" |
19 #include "base/threading/thread.h" | 18 #include "base/threading/thread.h" |
20 #include "build/build_config.h" | 19 #include "build/build_config.h" |
21 #include "sandbox/linux/tests/unit_tests.h" | 20 #include "sandbox/linux/tests/unit_tests.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
23 | 22 |
24 using base::PlatformThread; | 23 using base::PlatformThread; |
25 | 24 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 SANDBOX_ASSERT(thread1.Start()); | 143 SANDBOX_ASSERT(thread1.Start()); |
145 ThreadHelpers::AssertSingleThreaded(); | 144 ThreadHelpers::AssertSingleThreaded(); |
146 } | 145 } |
147 #endif // !defined(NDEBUG) | 146 #endif // !defined(NDEBUG) |
148 | 147 |
149 #endif // !defined(THREAD_SANITIZER) | 148 #endif // !defined(THREAD_SANITIZER) |
150 | 149 |
151 } // namespace | 150 } // namespace |
152 | 151 |
153 } // namespace sandbox | 152 } // namespace sandbox |
OLD | NEW |