This source file includes following definitions.
- IN_PROC_BROWSER_TEST_F
#include "chrome/test/base/in_process_browser_test.h"
#include "content/public/browser/zygote_host_linux.h"
#include "content/public/common/sandbox_linux.h"
typedef InProcessBrowserTest SandboxLinuxTest;
#if defined(OS_LINUX) && !defined(ADDRESS_SANITIZER)
#define MAYBE_SandboxStatus \
SandboxStatus
#else
#define MAYBE_SandboxStatus \
DISABLED_SandboxStatus
#endif
IN_PROC_BROWSER_TEST_F(SandboxLinuxTest, MAYBE_SandboxStatus) {
const int status = content::ZygoteHost::GetInstance()->GetSandboxStatus();
bool good_layer1 = status & content::kSandboxLinuxSUID &&
status & content::kSandboxLinuxPIDNS &&
status & content::kSandboxLinuxNetNS;
bool good_layer2 = status & content::kSandboxLinuxSeccompBPF;
EXPECT_TRUE(good_layer1);
EXPECT_TRUE(good_layer2);
}