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

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

Issue 1466413002: Update gtest to 786564fa4a3c, switch to googlemock in gtest Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « base/process/process_unittest.cc ('k') | base/profiler/stack_sampling_profiler_unittest.cc » ('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 12 matching lines...) Expand all
23 #include "base/process/process_metrics.h" 23 #include "base/process/process_metrics.h"
24 #include "base/strings/string_number_conversions.h" 24 #include "base/strings/string_number_conversions.h"
25 #include "base/strings/utf_string_conversions.h" 25 #include "base/strings/utf_string_conversions.h"
26 #include "base/synchronization/waitable_event.h" 26 #include "base/synchronization/waitable_event.h"
27 #include "base/test/multiprocess_test.h" 27 #include "base/test/multiprocess_test.h"
28 #include "base/test/test_timeouts.h" 28 #include "base/test/test_timeouts.h"
29 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" 29 #include "base/third_party/dynamic_annotations/dynamic_annotations.h"
30 #include "base/threading/platform_thread.h" 30 #include "base/threading/platform_thread.h"
31 #include "base/threading/thread.h" 31 #include "base/threading/thread.h"
32 #include "build/build_config.h" 32 #include "build/build_config.h"
33 #include "testing/gtest/include/gtest/gtest.h" 33 #include "testing/gtest/googletest/include/gtest/gtest.h"
34 #include "testing/multiprocess_func_list.h" 34 #include "testing/multiprocess_func_list.h"
35 35
36 #if defined(OS_LINUX) 36 #if defined(OS_LINUX)
37 #include <malloc.h> 37 #include <malloc.h>
38 #include <sched.h> 38 #include <sched.h>
39 #include <sys/syscall.h> 39 #include <sys/syscall.h>
40 #endif 40 #endif
41 #if defined(OS_POSIX) 41 #if defined(OS_POSIX)
42 #include <dlfcn.h> 42 #include <dlfcn.h>
43 #include <errno.h> 43 #include <errno.h>
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 options.current_directory = base::FilePath("/dev/null"); 1120 options.current_directory = base::FilePath("/dev/null");
1121 1121
1122 base::Process process(SpawnChildWithOptions("SimpleChildProcess", options)); 1122 base::Process process(SpawnChildWithOptions("SimpleChildProcess", options));
1123 ASSERT_TRUE(process.IsValid()); 1123 ASSERT_TRUE(process.IsValid());
1124 1124
1125 int exit_code = kSuccess; 1125 int exit_code = kSuccess;
1126 EXPECT_TRUE(process.WaitForExit(&exit_code)); 1126 EXPECT_TRUE(process.WaitForExit(&exit_code));
1127 EXPECT_NE(kSuccess, exit_code); 1127 EXPECT_NE(kSuccess, exit_code);
1128 } 1128 }
1129 #endif 1129 #endif
OLDNEW
« no previous file with comments | « base/process/process_unittest.cc ('k') | base/profiler/stack_sampling_profiler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698