Searched refs:FakeSyscall (Results 1 – 1 of 1) sorted by relevance
/external/libchrome/sandbox/linux/bpf_dsl/ |
D | bpf_dsl_unittest.cc | 41 struct arch_seccomp_data FakeSyscall(int nr, in FakeSyscall() function 139 emulator.ExpectErrno(EPERM, FakeSyscall(__NR_getpgid, 0)); in TEST() 140 emulator.ExpectErrno(EINVAL, FakeSyscall(__NR_getpgid, 1)); in TEST() 142 emulator.ExpectAllow(FakeSyscall(__NR_setuid, 42)); in TEST() 143 emulator.ExpectKill(FakeSyscall(__NR_setuid, 43)); in TEST() 175 EPERM, FakeSyscall(__NR_socketpair, AF_UNIX, SOCK_STREAM, 0, kFakeSV)); in TEST() 177 EPERM, FakeSyscall(__NR_socketpair, AF_UNIX, SOCK_DGRAM, 0, kFakeSV)); in TEST() 181 EINVAL, FakeSyscall(__NR_socketpair, AF_INET, SOCK_STREAM, 0, kFakeSV)); in TEST() 182 emulator.ExpectErrno(EINVAL, FakeSyscall(__NR_socketpair, AF_UNIX, in TEST() 184 emulator.ExpectErrno(EINVAL, FakeSyscall(__NR_socketpair, AF_UNIX, in TEST() [all …]
|