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

Side by Side Diff: base/multiprocess_test.h

Issue 270062: Use ASCII strings for switch names. (Closed)
Patch Set: victory Created 11 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 | « base/debug_on_start.cc ('k') | base/test/perf_test_suite.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_MULTIPROCESS_TEST_H__ 5 #ifndef BASE_MULTIPROCESS_TEST_H__
6 #define BASE_MULTIPROCESS_TEST_H__ 6 #define BASE_MULTIPROCESS_TEST_H__
7 7
8 #include "base/base_switches.h" 8 #include "base/base_switches.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 #include "testing/multiprocess_func_list.h" 13 #include "testing/multiprocess_func_list.h"
14 #include "testing/platform_test.h" 14 #include "testing/platform_test.h"
15 15
16 #if defined(OS_POSIX) 16 #if defined(OS_POSIX)
17 #include <sys/types.h> 17 #include <sys/types.h>
18 #include <unistd.h> 18 #include <unistd.h>
19 #endif 19 #endif
20 20
21 // Command line switch to invoke a child process rather than 21 // Command line switch to invoke a child process rather than
22 // to run the normal test suite. 22 // to run the normal test suite.
23 static const wchar_t kRunClientProcess[] = L"client"; 23 static const char kRunClientProcess[] = "client";
24 24
25 // A MultiProcessTest is a test class which makes it easier to 25 // A MultiProcessTest is a test class which makes it easier to
26 // write a test which requires code running out of process. 26 // write a test which requires code running out of process.
27 // 27 //
28 // To create a multiprocess test simply follow these steps: 28 // To create a multiprocess test simply follow these steps:
29 // 29 //
30 // 1) Derive your test from MultiProcessTest. Example: 30 // 1) Derive your test from MultiProcessTest. Example:
31 // 31 //
32 // class MyTest : public MultiProcessTest { 32 // class MyTest : public MultiProcessTest {
33 // }; 33 // };
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 if (debug_on_start) 112 if (debug_on_start)
113 cl.AppendSwitch(switches::kDebugOnStart); 113 cl.AppendSwitch(switches::kDebugOnStart);
114 114
115 base::LaunchApp(cl.argv(), fds_to_map, false, &handle); 115 base::LaunchApp(cl.argv(), fds_to_map, false, &handle);
116 return handle; 116 return handle;
117 } 117 }
118 #endif 118 #endif
119 }; 119 };
120 120
121 #endif // BASE_MULTIPROCESS_TEST_H__ 121 #endif // BASE_MULTIPROCESS_TEST_H__
OLDNEW
« no previous file with comments | « base/debug_on_start.cc ('k') | base/test/perf_test_suite.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698