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

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

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 Created 4 years, 8 months 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_metrics_unittest_ios.cc ('k') | base/process/process_win.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 <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <limits> 10 #include <limits>
11 11
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/debug/alias.h" 13 #include "base/debug/alias.h"
14 #include "base/debug/stack_trace.h" 14 #include "base/debug/stack_trace.h"
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/files/file_util.h" 16 #include "base/files/file_util.h"
17 #include "base/files/scoped_file.h" 17 #include "base/files/scoped_file.h"
18 #include "base/logging.h" 18 #include "base/logging.h"
19 #include "base/macros.h" 19 #include "base/macros.h"
20 #include "base/memory/scoped_ptr.h"
21 #include "base/path_service.h" 20 #include "base/path_service.h"
22 #include "base/posix/eintr_wrapper.h" 21 #include "base/posix/eintr_wrapper.h"
23 #include "base/process/kill.h" 22 #include "base/process/kill.h"
24 #include "base/process/launch.h" 23 #include "base/process/launch.h"
25 #include "base/process/memory.h" 24 #include "base/process/memory.h"
26 #include "base/process/process.h" 25 #include "base/process/process.h"
27 #include "base/process/process_metrics.h" 26 #include "base/process/process_metrics.h"
28 #include "base/strings/string_number_conversions.h" 27 #include "base/strings/string_number_conversions.h"
29 #include "base/strings/utf_string_conversions.h" 28 #include "base/strings/utf_string_conversions.h"
30 #include "base/synchronization/waitable_event.h" 29 #include "base/synchronization/waitable_event.h"
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1125 options.current_directory = base::FilePath("/dev/null"); 1124 options.current_directory = base::FilePath("/dev/null");
1126 1125
1127 base::Process process(SpawnChildWithOptions("SimpleChildProcess", options)); 1126 base::Process process(SpawnChildWithOptions("SimpleChildProcess", options));
1128 ASSERT_TRUE(process.IsValid()); 1127 ASSERT_TRUE(process.IsValid());
1129 1128
1130 int exit_code = kSuccess; 1129 int exit_code = kSuccess;
1131 EXPECT_TRUE(process.WaitForExit(&exit_code)); 1130 EXPECT_TRUE(process.WaitForExit(&exit_code));
1132 EXPECT_NE(kSuccess, exit_code); 1131 EXPECT_NE(kSuccess, exit_code);
1133 } 1132 }
1134 #endif 1133 #endif
OLDNEW
« no previous file with comments | « base/process/process_metrics_unittest_ios.cc ('k') | base/process/process_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698