diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-16 19:16:03 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-16 19:16:03 +0000 |
commit | e3ebbbd6c3bec654f47a4934801a321185931eb4 (patch) | |
tree | b9037cd8bf33ed33c9c55db6f8d0fb5678fbd129 /base/multiprocess_test.h | |
parent | 6854f128461c5e94e90e12183ab91c4cc4a8724b (diff) | |
download | chromium_src-e3ebbbd6c3bec654f47a4934801a321185931eb4.zip chromium_src-e3ebbbd6c3bec654f47a4934801a321185931eb4.tar.gz chromium_src-e3ebbbd6c3bec654f47a4934801a321185931eb4.tar.bz2 |
Update comments in multiprocess_test.h & add an example.
Review URL: http://codereview.chromium.org/14459
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7072 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/multiprocess_test.h')
-rw-r--r-- | base/multiprocess_test.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/base/multiprocess_test.h b/base/multiprocess_test.h index f4bf34c..a9c67d5 100644 --- a/base/multiprocess_test.h +++ b/base/multiprocess_test.h @@ -27,12 +27,20 @@ static const wchar_t kRunClientProcess[] = L"client"; // // To create a multiprocess test simply follow these steps: // -// 1) Derive your test from MultiProcessTest. +// 1) Derive your test from MultiProcessTest. Example: +// +// class MyTest : public MultiProcessTest { +// }; +// +// TEST_F(MyTest, TestCaseName) { +// ... +// } +// // 2) Create a mainline function for the child processes and include // testing/multiprocess_func_list.h. // See the declaration of the MULTIPROCESS_TEST_MAIN macro // in that file for an example. -// 3) Call SpawnChild("foo"), where "foo" is the name of +// 3) Call SpawnChild(L"foo"), where "foo" is the name of // the function you wish to run in the child processes. // That's it! // |