#include "test/multiprocess.h"
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include "gtest/gtest.h"
#include "test/gtest_death.h"
#include "util/file/file_io.h"
namespace crashpad {
namespace test {
namespace {
class TestMultiprocess final : public Multiprocess { … };
TEST(Multiprocess, Multiprocess) { … }
class TestMultiprocessUnclean final : public Multiprocess { … };
TEST(Multiprocess, SuccessfulExit) { … }
TEST(Multiprocess, UnsuccessfulExit) { … }
TEST(Multiprocess, Exit2) { … }
TEST(Multiprocess, AbortSignal) { … }
class TestMultiprocessClosePipe final : public Multiprocess { … };
TEST(MultiprocessDeathTest, ParentClosesReadPipe) { … }
TEST(MultiprocessDeathTest, ParentClosesWritePipe) { … }
TEST(MultiprocessDeathTest, ParentClosesReadAndWritePipe) { … }
TEST(MultiprocessDeathTest, ChildClosesReadPipe) { … }
TEST(MultiprocessDeathTest, ChildClosesWritePipe) { … }
TEST(MultiprocessDeathTest, ChildClosesReadAndWritePipe) { … }
}
}
}