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 #include <fcntl.h> | 5 #include <fcntl.h> |
6 #include <poll.h> | 6 #include <poll.h> |
7 #include <signal.h> | 7 #include <signal.h> |
| 8 #include <stddef.h> |
8 #include <stdio.h> | 9 #include <stdio.h> |
9 #include <sys/resource.h> | 10 #include <sys/resource.h> |
| 11 #include <sys/time.h> |
10 #include <sys/types.h> | 12 #include <sys/types.h> |
11 #include <sys/wait.h> | 13 #include <sys/wait.h> |
12 #include <sys/time.h> | |
13 #include <time.h> | 14 #include <time.h> |
14 #include <unistd.h> | 15 #include <unistd.h> |
15 | 16 |
16 #include "base/debug/leak_annotations.h" | 17 #include "base/debug/leak_annotations.h" |
17 #include "base/files/file_util.h" | 18 #include "base/files/file_util.h" |
18 #include "base/posix/eintr_wrapper.h" | 19 #include "base/posix/eintr_wrapper.h" |
19 #include "base/third_party/valgrind/valgrind.h" | 20 #include "base/third_party/valgrind/valgrind.h" |
20 #include "build/build_config.h" | 21 #include "build/build_config.h" |
21 #include "sandbox/linux/tests/unit_tests.h" | 22 #include "sandbox/linux/tests/unit_tests.h" |
22 | 23 |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 fflush(stderr); | 353 fflush(stderr); |
353 _exit(kExitWithAssertionFailure); | 354 _exit(kExitWithAssertionFailure); |
354 } | 355 } |
355 | 356 |
356 void UnitTests::IgnoreThisTest() { | 357 void UnitTests::IgnoreThisTest() { |
357 fflush(stderr); | 358 fflush(stderr); |
358 _exit(kIgnoreThisTest); | 359 _exit(kIgnoreThisTest); |
359 } | 360 } |
360 | 361 |
361 } // namespace | 362 } // namespace |
OLD | NEW |