Manages a multiprocess test on Windows with a parent-created temporary directory. More...
#include "test/win/win_multiprocess_with_temp_dir.h"
Public Member Functions | |
| WinMultiprocessWithTempDir (const WinMultiprocessWithTempDir &)=delete | |
| WinMultiprocessWithTempDir & | operator= (const WinMultiprocessWithTempDir &)=delete |
Public Member Functions inherited from crashpad::test::WinMultiprocess | |
| WinMultiprocess (const WinMultiprocess &)=delete | |
| WinMultiprocess & | operator= (const WinMultiprocess &)=delete |
Protected Member Functions | |
| void | WinMultiprocessParentBeforeChild () override |
| The optional routine run in parent before the child is spawned. | |
| void | WinMultiprocessParentAfterChild (HANDLE child) override |
| The optional routine run in parent after the child exits. | |
| base::FilePath | GetTempDirPath () const |
| Returns the path of the temp directory. | |
Protected Member Functions inherited from crashpad::test::WinMultiprocess | |
| void | SetExpectedChildExitCode (unsigned int exit_code) |
| Sets the expected exit code of the child process. | |
| FileHandle | ReadPipeHandle () const |
| Returns the read pipe's file handle. | |
| FileHandle | WritePipeHandle () const |
| Returns the write pipe's file handle. | |
| void | CloseReadPipe () |
| Closes the read pipe. | |
| void | CloseWritePipe () |
| Closes the write pipe. | |
| HANDLE | ChildProcess () const |
| Returns a handle to the child process. | |
Additional Inherited Members | |
Static Public Member Functions inherited from crashpad::test::WinMultiprocess | |
| template<class T> | |
| static void | Run () |
| Runs the test. | |
Manages a multiprocess test on Windows with a parent-created temporary directory.
This class creates a temp directory in the parent process for the use of the subprocess and its children. To ensure a raceless rundown, it waits on the child process and any processes directly created by the child before deleting the temporary directory.
|
overrideprotectedvirtual |
The optional routine run in parent after the child exits.
Subclasses may implement this method to clean up the environment after the child process has exited.
| [in] | child | A handle to the exited child process. |
Reimplemented from crashpad::test::WinMultiprocess.
|
overrideprotectedvirtual |
The optional routine run in parent before the child is spawned.
Subclasses may implement this method to prepare the environment for the child process.
Reimplemented from crashpad::test::WinMultiprocess.