#include <string>
#include <vector>
#include "base/files/file_path.h"
#include "base/macros.h"
#include "build/build_config.h"
#include "test/multiprocess.h"
#include "test/process_type.h"
|
int | crashpad::test::internal::CheckedInvokeMultiprocessChild (const std::string &test_name) |
| Used to run a child test function by name, registered by CRASHPAD_CHILD_TEST_MAIN(). More...
|
|
◆ CRASHPAD_CHILD_TEST_MAIN
#define CRASHPAD_CHILD_TEST_MAIN |
( |
|
test_main | ) |
|
Value: int test_main(); \
namespace { \
::crashpad::test::internal::AppendMultiprocessTest \
AddMultiprocessTest##_##test_main(#test_main, (test_main)); \
} \
int test_main()
Registers a function that can be invoked as a child process by MultiprocessExec.
Used as:
In the main (parent) test body, this function can be run in a child process via MultiprocessExec::SetChildTestMainFunction().
◆ CheckedInvokeMultiprocessChild()
int crashpad::test::internal::CheckedInvokeMultiprocessChild |
( |
const std::string & |
test_name | ) |
|
Used to run a child test function by name, registered by CRASHPAD_CHILD_TEST_MAIN().
- Returns
- The exit code of the child process after running the function named by test_name. Aborts with a CHECK() if test_name wasn't registered.
#define CRASHPAD_CHILD_TEST_MAIN(test_main)
Registers a function that can be invoked as a child process by MultiprocessExec.
Definition: multiprocess_exec.h:70