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

Side by Side Diff: base/test/multiprocess_test_android.cc

Issue 20265004: Update include paths in base for base/process changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge ToT Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « base/test/multiprocess_test.h ('k') | base/test/perf_test_suite.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 #include "base/test/multiprocess_test.h" 5 #include "base/test/multiprocess_test.h"
6 6
7 #include <unistd.h> 7 #include <unistd.h>
8 8
9 #include "base/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/posix/eintr_wrapper.h" 11 #include "base/posix/eintr_wrapper.h"
12 #include "base/process.h"
13 #include "testing/multiprocess_func_list.h" 12 #include "testing/multiprocess_func_list.h"
14 13
15 namespace base { 14 namespace base {
16 15
17 // A very basic implementation for android. On Android tests can run in an APK 16 // A very basic implementation for android. On Android tests can run in an APK
18 // and we don't have an executable to exec*. This implementation does the bare 17 // and we don't have an executable to exec*. This implementation does the bare
19 // minimum to execute the method specified by procname (in the child process). 18 // minimum to execute the method specified by procname (in the child process).
20 // - |debug_on_start| is ignored. 19 // - |debug_on_start| is ignored.
21 ProcessHandle MultiProcessTest::SpawnChildImpl( 20 ProcessHandle MultiProcessTest::SpawnChildImpl(
22 const std::string& procname, 21 const std::string& procname,
(...skipping 30 matching lines...) Expand all
53 if (dup2(old_fd, new_fd) < 0) { 52 if (dup2(old_fd, new_fd) < 0) {
54 PLOG(FATAL) << "dup2"; 53 PLOG(FATAL) << "dup2";
55 } 54 }
56 HANDLE_EINTR(close(old_fd)); 55 HANDLE_EINTR(close(old_fd));
57 } 56 }
58 _exit(multi_process_function_list::InvokeChildProcessTest(procname)); 57 _exit(multi_process_function_list::InvokeChildProcessTest(procname));
59 return 0; 58 return 0;
60 } 59 }
61 60
62 } // namespace base 61 } // namespace base
OLDNEW
« no previous file with comments | « base/test/multiprocess_test.h ('k') | base/test/perf_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698