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

Side by Side Diff: base/process/process_util_unittest.cc

Issue 69953025: Support use_glib==0 on Linux in base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bring back EXPECT_EQ as it suppresses unused result warning Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « base/process/memory_unittest.cc ('k') | build/common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #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/debug/alias.h" 10 #include "base/debug/alias.h"
(...skipping 11 matching lines...) Expand all
22 #include "base/strings/utf_string_conversions.h" 22 #include "base/strings/utf_string_conversions.h"
23 #include "base/test/multiprocess_test.h" 23 #include "base/test/multiprocess_test.h"
24 #include "base/test/test_timeouts.h" 24 #include "base/test/test_timeouts.h"
25 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" 25 #include "base/third_party/dynamic_annotations/dynamic_annotations.h"
26 #include "base/threading/platform_thread.h" 26 #include "base/threading/platform_thread.h"
27 #include "base/threading/thread.h" 27 #include "base/threading/thread.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 #include "testing/multiprocess_func_list.h" 29 #include "testing/multiprocess_func_list.h"
30 30
31 #if defined(OS_LINUX) 31 #if defined(OS_LINUX)
32 #include <glib.h>
33 #include <malloc.h> 32 #include <malloc.h>
34 #include <sched.h> 33 #include <sched.h>
35 #endif 34 #endif
36 #if defined(OS_POSIX) 35 #if defined(OS_POSIX)
37 #include <dlfcn.h> 36 #include <dlfcn.h>
38 #include <errno.h> 37 #include <errno.h>
39 #include <fcntl.h> 38 #include <fcntl.h>
40 #include <signal.h> 39 #include <signal.h>
41 #include <sys/resource.h> 40 #include <sys/resource.h>
42 #include <sys/socket.h> 41 #include <sys/socket.h>
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 // Check that process was really killed. 911 // Check that process was really killed.
913 EXPECT_TRUE(IsProcessDead(child_process)); 912 EXPECT_TRUE(IsProcessDead(child_process));
914 base::CloseProcessHandle(child_process); 913 base::CloseProcessHandle(child_process);
915 } 914 }
916 915
917 MULTIPROCESS_TEST_MAIN(process_util_test_die_immediately) { 916 MULTIPROCESS_TEST_MAIN(process_util_test_die_immediately) {
918 return 0; 917 return 0;
919 } 918 }
920 919
921 #endif // defined(OS_POSIX) 920 #endif // defined(OS_POSIX)
OLDNEW
« no previous file with comments | « base/process/memory_unittest.cc ('k') | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698