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

Side by Side Diff: base/test/multiprocess_test.h

Issue 3797010: seccomp: disable seccomp for RendererMainTest (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: ok Created 10 years, 2 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 | « no previous file | chrome/renderer/renderer_main_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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef BASE_TEST_MULTIPROCESS_TEST_H_ 5 #ifndef BASE_TEST_MULTIPROCESS_TEST_H_
6 #define BASE_TEST_MULTIPROCESS_TEST_H_ 6 #define BASE_TEST_MULTIPROCESS_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // 56 //
57 // Returns the handle to the child, or NULL on failure 57 // Returns the handle to the child, or NULL on failure
58 ProcessHandle SpawnChild(const std::string& procname, bool debug_on_start); 58 ProcessHandle SpawnChild(const std::string& procname, bool debug_on_start);
59 59
60 #if defined(OS_POSIX) 60 #if defined(OS_POSIX)
61 ProcessHandle SpawnChild(const std::string& procname, 61 ProcessHandle SpawnChild(const std::string& procname,
62 const file_handle_mapping_vector& fds_to_map, 62 const file_handle_mapping_vector& fds_to_map,
63 bool debug_on_start); 63 bool debug_on_start);
64 #endif 64 #endif
65 65
66 CommandLine MakeCmdLine(const std::string& procname, bool debug_on_start); 66 // Set up the command line used to spawn the child process.
67 virtual CommandLine MakeCmdLine(const std::string& procname,
68 bool debug_on_start);
67 69
68 private: 70 private:
69 #if defined(OS_WIN) 71 #if defined(OS_WIN)
70 ProcessHandle SpawnChildImpl(const std::string& procname, 72 ProcessHandle SpawnChildImpl(const std::string& procname,
71 bool debug_on_start); 73 bool debug_on_start);
72 74
73 #elif defined(OS_POSIX) 75 #elif defined(OS_POSIX)
74 // TODO(port): with the CommandLine refactoring, this code is very similar 76 // TODO(port): with the CommandLine refactoring, this code is very similar
75 // to the Windows code. Investigate whether this can be made shorter. 77 // to the Windows code. Investigate whether this can be made shorter.
76 ProcessHandle SpawnChildImpl(const std::string& procname, 78 ProcessHandle SpawnChildImpl(const std::string& procname,
77 const file_handle_mapping_vector& fds_to_map, 79 const file_handle_mapping_vector& fds_to_map,
78 bool debug_on_start); 80 bool debug_on_start);
79 #endif 81 #endif
80 82
81 DISALLOW_COPY_AND_ASSIGN(MultiProcessTest); 83 DISALLOW_COPY_AND_ASSIGN(MultiProcessTest);
82 }; 84 };
83 85
84 } // namespace base 86 } // namespace base
85 87
86 #endif // BASE_TEST_MULTIPROCESS_TEST_H_ 88 #endif // BASE_TEST_MULTIPROCESS_TEST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/renderer_main_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698