#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "sandbox/linux/bpf_dsl/syscall_set.h"
#include <stddef.h>
#include <stdint.h>
#include <algorithm>
#include "sandbox/linux/bpf_dsl/linux_syscall_ranges.h"
#include "sandbox/linux/tests/unit_tests.h"
namespace sandbox {
namespace {
const SyscallSet kSyscallSets[] = …;
SANDBOX_TEST(SyscallSet, Monotonous) { … }
void AssertRange(uint32_t min, uint32_t max) { … }
SANDBOX_TEST(SyscallSet, ValidSyscallRanges) { …
SANDBOX_TEST(SyscallSet, InvalidSyscalls) { … }
SANDBOX_TEST(SyscallSet, ValidOnlyIsOnlyValid) { … }
SANDBOX_TEST(SyscallSet, InvalidOnlyIsOnlyInvalid) { … }
SANDBOX_TEST(SyscallSet, AllIsValidOnlyPlusInvalidOnly) { … }
}
}