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 <stdio.h> | 8 #include <stdio.h> |
9 #include <sys/resource.h> | 9 #include <sys/resource.h> |
10 #include <sys/time.h> | 10 #include <sys/time.h> |
11 #include <time.h> | 11 #include <time.h> |
12 #include <unistd.h> | 12 #include <unistd.h> |
13 | 13 |
14 #include "base/debug/leak_annotations.h" | 14 #include "base/debug/leak_annotations.h" |
15 #include "base/file_util.h" | 15 #include "base/files/file_util.h" |
16 #include "base/posix/eintr_wrapper.h" | 16 #include "base/posix/eintr_wrapper.h" |
17 #include "base/third_party/valgrind/valgrind.h" | 17 #include "base/third_party/valgrind/valgrind.h" |
18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
19 #include "sandbox/linux/tests/unit_tests.h" | 19 #include "sandbox/linux/tests/unit_tests.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 std::string TestFailedMessage(const std::string& msg) { | 22 std::string TestFailedMessage(const std::string& msg) { |
23 return msg.empty() ? std::string() : "Actual test failure: " + msg; | 23 return msg.empty() ? std::string() : "Actual test failure: " + msg; |
24 } | 24 } |
25 | 25 |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 fflush(stderr); | 317 fflush(stderr); |
318 _exit(kExitWithAssertionFailure); | 318 _exit(kExitWithAssertionFailure); |
319 } | 319 } |
320 | 320 |
321 void UnitTests::IgnoreThisTest() { | 321 void UnitTests::IgnoreThisTest() { |
322 fflush(stderr); | 322 fflush(stderr); |
323 _exit(kIgnoreThisTest); | 323 _exit(kIgnoreThisTest); |
324 } | 324 } |
325 | 325 |
326 } // namespace | 326 } // namespace |
OLD | NEW |