Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: base/process_util_unittest.cc

Issue 495002: Changes to base/ from a combination of FreeBSD and OpenBSD patches. (Closed)
Patch Set: minor tweaks Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #define _CRT_SECURE_NO_WARNINGS 5 #define _CRT_SECURE_NO_WARNINGS
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/eintr_wrapper.h" 10 #include "base/eintr_wrapper.h"
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/multiprocess_test.h" 12 #include "base/multiprocess_test.h"
13 #include "base/path_service.h" 13 #include "base/path_service.h"
14 #include "base/platform_thread.h" 14 #include "base/platform_thread.h"
15 #include "base/process_util.h" 15 #include "base/process_util.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 #if defined(OS_LINUX) 18 #if defined(OS_LINUX)
19 #include <dlfcn.h> 19 #include <dlfcn.h>
20 #include <errno.h> 20 #include <errno.h>
21 #include <malloc.h> 21 #include <malloc.h>
22 #endif 22 #endif
23 #if defined(OS_POSIX) 23 #if defined(OS_POSIX)
24 #include <fcntl.h> 24 #include <fcntl.h>
25 #include <sys/resource.h>
25 #include <sys/socket.h> 26 #include <sys/socket.h>
26 #endif 27 #endif
27 #if defined(OS_WIN) 28 #if defined(OS_WIN)
28 #include <windows.h> 29 #include <windows.h>
29 #endif 30 #endif
30 31
31 namespace base { 32 namespace base {
32 33
33 class ProcessUtilTest : public MultiProcessTest { 34 class ProcessUtilTest : public MultiProcessTest {
34 #if defined(OS_POSIX) 35 #if defined(OS_POSIX)
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 ASSERT_DEATH(value_ = __libc_pvalloc(test_size_), ""); 467 ASSERT_DEATH(value_ = __libc_pvalloc(test_size_), "");
467 } 468 }
468 469
469 TEST_F(OutOfMemoryTest, __libc_memalign) { 470 TEST_F(OutOfMemoryTest, __libc_memalign) {
470 ASSERT_DEATH(value_ = __libc_memalign(4, test_size_), ""); 471 ASSERT_DEATH(value_ = __libc_memalign(4, test_size_), "");
471 } 472 }
472 473
473 #endif // defined(OS_LINUX) 474 #endif // defined(OS_LINUX)
474 475
475 } // namespace base 476 } // namespace base
OLDNEW
« base/message_loop.h ('K') | « base/process_util_posix.cc ('k') | base/scoped_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698