#include <string>
#include <vector>
#include "base/files/file_path.h"
#include "build/build_config.h"
#include "test/multiprocess.h"
#include "test/process_type.h"
|
namespace | crashpad |
| The main namespace.
|
|
namespace | crashpad::test |
| The testing namespace, for use in test code only.
|
|
|
#define | CRASHPAD_CHILD_TEST_MAIN(test_main) |
| Registers a function that can be invoked as a child process by MultiprocessExec.
|
|
|
constexpr char | crashpad::test::internal::kChildTestFunction [] = "--child-test-function=" |
| Command line argument used to indicate that a child test function should be run.
|
|
◆ 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:
... child body ...
}
#define CRASHPAD_CHILD_TEST_MAIN(test_main)
Registers a function that can be invoked as a child process by MultiprocessExec.
Definition multiprocess_exec.h:69
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.