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

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

Issue 196413016: Move CommandLine to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/launcher/test_results_tracker.h ('k') | chrome/app/chrome_main_delegate.h » ('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 #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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/process/launch.h" 11 #include "base/process/launch.h"
12 #include "base/process/process_handle.h" 12 #include "base/process/process_handle.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "testing/platform_test.h" 14 #include "testing/platform_test.h"
15 15
16 namespace base {
17
16 class CommandLine; 18 class CommandLine;
17 19
18 namespace base {
19
20 // Helpers to spawn a child for a multiprocess test and execute a designated 20 // Helpers to spawn a child for a multiprocess test and execute a designated
21 // function. Use these when you already have another base class for your test 21 // function. Use these when you already have another base class for your test
22 // fixture, but you want (some) of your tests to be multiprocess (otherwise you 22 // fixture, but you want (some) of your tests to be multiprocess (otherwise you
23 // may just want to derive your fixture from |MultiProcessTest|, below). 23 // may just want to derive your fixture from |MultiProcessTest|, below).
24 // 24 //
25 // Use these helpers as follows: 25 // Use these helpers as follows:
26 // 26 //
27 // TEST_F(MyTest, ATest) { 27 // TEST_F(MyTest, ATest) {
28 // CommandLine command_line( 28 // CommandLine command_line(
29 // base::GetMultiProcessTestChildBaseCommandLine()); 29 // base::GetMultiProcessTestChildBaseCommandLine());
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // |ModifyChildCommandLine()|; make the two divergent uses more sane. 123 // |ModifyChildCommandLine()|; make the two divergent uses more sane.
124 virtual CommandLine MakeCmdLine(const std::string& procname); 124 virtual CommandLine MakeCmdLine(const std::string& procname);
125 125
126 private: 126 private:
127 DISALLOW_COPY_AND_ASSIGN(MultiProcessTest); 127 DISALLOW_COPY_AND_ASSIGN(MultiProcessTest);
128 }; 128 };
129 129
130 } // namespace base 130 } // namespace base
131 131
132 #endif // BASE_TEST_MULTIPROCESS_TEST_H_ 132 #endif // BASE_TEST_MULTIPROCESS_TEST_H_
OLDNEW
« no previous file with comments | « base/test/launcher/test_results_tracker.h ('k') | chrome/app/chrome_main_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698