SANDBOX_ASSERT 46 sandbox/linux/seccomp-bpf/bpf_tests.h #define BPF_ASSERT SANDBOX_ASSERT SANDBOX_ASSERT 92 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn0); SANDBOX_ASSERT 93 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn0->code == BPF_LD + BPF_W + BPF_ABS); SANDBOX_ASSERT 94 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn0->k == 42); SANDBOX_ASSERT 95 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn0->next == NULL); SANDBOX_ASSERT 98 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn1); SANDBOX_ASSERT 99 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn1->code == BPF_JMP + BPF_JA); SANDBOX_ASSERT 100 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn1->jt_ptr == insn0); SANDBOX_ASSERT 103 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn2); SANDBOX_ASSERT 104 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn2->code == BPF_RET + BPF_K); SANDBOX_ASSERT 105 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn2->next == NULL); SANDBOX_ASSERT 116 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn4); SANDBOX_ASSERT 117 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn4->code == BPF_JMP + BPF_JEQ + BPF_K); SANDBOX_ASSERT 118 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn4->k == 42); SANDBOX_ASSERT 119 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn4->jt_ptr == insn1); SANDBOX_ASSERT 120 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn4->jf_ptr == insn3); SANDBOX_ASSERT 123 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn0->next == insn2); SANDBOX_ASSERT 127 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn5); SANDBOX_ASSERT 128 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn5->code == BPF_LD + BPF_W + BPF_ABS); SANDBOX_ASSERT 129 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn5->k == 23); SANDBOX_ASSERT 130 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn5->next == insn4); SANDBOX_ASSERT 282 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn->jt_ptr != NULL); SANDBOX_ASSERT 283 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(branch_targets.find(insn->jt_ptr) != end); SANDBOX_ASSERT 286 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn->jf_ptr != NULL); SANDBOX_ASSERT 287 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(branch_targets.find(insn->jf_ptr) != end); SANDBOX_ASSERT 292 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn->next == NULL); SANDBOX_ASSERT 299 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn->next != NULL); SANDBOX_ASSERT 303 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(target_instructions.size() == branch_targets.size()); SANDBOX_ASSERT 319 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(branch_targets.find(*iter) == end); SANDBOX_ASSERT 333 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(first_block != NULL); SANDBOX_ASSERT 334 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(first_block->instructions.size() > 0); SANDBOX_ASSERT 345 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(bb != NULL); SANDBOX_ASSERT 346 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(bb->instructions.size() > 0); SANDBOX_ASSERT 348 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(insn == first_insn || SANDBOX_ASSERT 353 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(BPF_CLASS(insn->code) != BPF_JMP); SANDBOX_ASSERT 354 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(BPF_CLASS(insn->code) != BPF_RET); SANDBOX_ASSERT 356 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(BPF_CLASS(insn->code) == BPF_JMP || SANDBOX_ASSERT 361 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(branch_targets.find(*insn_iter) == branch_targets.end()); SANDBOX_ASSERT 442 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(graph[0] == graph[1]); SANDBOX_ASSERT 444 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(edges[0] != edges[1]); SANDBOX_ASSERT 446 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(edges[0] == edges[1]); SANDBOX_ASSERT 506 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(idx < (int)bpf.size()); SANDBOX_ASSERT 531 sandbox/linux/seccomp-bpf/codegen_unittest.cc SANDBOX_ASSERT(source == assembly); SANDBOX_ASSERT 16 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT(e0.err() == SECCOMP_RET_INVALID); SANDBOX_ASSERT 19 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT(e1.err() == SECCOMP_RET_ALLOW); SANDBOX_ASSERT 22 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT(e2.err() == SECCOMP_RET_ERRNO + EPERM); SANDBOX_ASSERT 26 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT((e3.err() & SECCOMP_RET_ACTION) == SECCOMP_RET_TRAP); SANDBOX_ASSERT 33 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT((e0.err() & SECCOMP_RET_DATA) + 1 == SANDBOX_ASSERT 37 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT((e0.err() & SECCOMP_RET_DATA) == SANDBOX_ASSERT 44 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT(e1.Equals(e1)); SANDBOX_ASSERT 45 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT(e1.Equals(e2)); SANDBOX_ASSERT 46 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT(e2.Equals(e1)); SANDBOX_ASSERT 49 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT(!e1.Equals(e3)); SANDBOX_ASSERT 55 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT(!e1.Equals(e4)); SANDBOX_ASSERT 56 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT(!e3.Equals(e4)); SANDBOX_ASSERT 57 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT(!e5.Equals(e4)); SANDBOX_ASSERT 58 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT( e6.Equals(e4)); SANDBOX_ASSERT 64 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT(!e1.LessThan(e1)); SANDBOX_ASSERT 65 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT(!e1.LessThan(e2)); SANDBOX_ASSERT 66 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT(!e2.LessThan(e1)); SANDBOX_ASSERT 69 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT(!e1.LessThan(e3)); SANDBOX_ASSERT 70 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT( e3.LessThan(e1)); SANDBOX_ASSERT 76 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT(e1.LessThan(e4)); SANDBOX_ASSERT 77 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT(e3.LessThan(e4)); SANDBOX_ASSERT 78 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT(e4.LessThan(e5)); SANDBOX_ASSERT 79 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT(!e4.LessThan(e6)); SANDBOX_ASSERT 80 sandbox/linux/seccomp-bpf/errorcode_unittest.cc SANDBOX_ASSERT(!e6.LessThan(e4)); SANDBOX_ASSERT 167 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc SANDBOX_ASSERT(aux); SANDBOX_ASSERT 506 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc SANDBOX_ASSERT(Trap::EnableUnsafeTrapsInSigSysHandler() == false); SANDBOX_ASSERT 508 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc SANDBOX_ASSERT(Trap::EnableUnsafeTrapsInSigSysHandler() == false); SANDBOX_ASSERT 510 sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc SANDBOX_ASSERT(Trap::EnableUnsafeTrapsInSigSysHandler() == true); SANDBOX_ASSERT 21 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(next == 0); SANDBOX_ASSERT 25 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(last < next); SANDBOX_ASSERT 28 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(next == 0xFFFFFFFFu); SANDBOX_ASSERT 40 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(MIN_SYSCALL == 0); SANDBOX_ASSERT 41 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(next == MIN_SYSCALL); SANDBOX_ASSERT 43 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT((next = iter.Next()) == last + 1); SANDBOX_ASSERT 45 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(next == MAX_PUBLIC_SYSCALL + 1); SANDBOX_ASSERT 57 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(next == MIN_PRIVATE_SYSCALL - 1); SANDBOX_ASSERT 59 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT((next = iter.Next()) == last + 1); SANDBOX_ASSERT 61 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(next == MAX_PRIVATE_SYSCALL + 1); SANDBOX_ASSERT 72 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(next == MIN_GHOST_SYSCALL - 1); SANDBOX_ASSERT 74 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT((next = iter.Next()) == last + 1); SANDBOX_ASSERT 76 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(next == MAX_SYSCALL + 1); SANDBOX_ASSERT 90 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(next == MAX_SYSCALL + 1); SANDBOX_ASSERT 96 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(next == 0x7FFFFFFFu); SANDBOX_ASSERT 98 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(next == 0x80000000u); SANDBOX_ASSERT 99 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(!iter.Done()); SANDBOX_ASSERT 101 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(iter.Done()); SANDBOX_ASSERT 102 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(next == 0xFFFFFFFFu); SANDBOX_ASSERT 113 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(MIN_SYSCALL == 0); SANDBOX_ASSERT 114 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(next == MAX_PUBLIC_SYSCALL + 1); SANDBOX_ASSERT 119 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(next == MIN_PRIVATE_SYSCALL - 1); SANDBOX_ASSERT 126 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(next == MIN_GHOST_SYSCALL - 1); SANDBOX_ASSERT 130 sandbox/linux/seccomp-bpf/syscall_iterator_unittest.cc SANDBOX_ASSERT(next == MAX_SYSCALL + 1); SANDBOX_ASSERT 369 sandbox/linux/services/broker_process_unittest.cc SANDBOX_ASSERT(open_broker.Init(base::Bind(&NoOpCallback))); SANDBOX_ASSERT 371 sandbox/linux/services/broker_process_unittest.cc SANDBOX_ASSERT(kill(broker_pid, SIGKILL) == 0); SANDBOX_ASSERT 375 sandbox/linux/services/broker_process_unittest.cc SANDBOX_ASSERT(HANDLE_EINTR(waitid( SANDBOX_ASSERT 378 sandbox/linux/services/broker_process_unittest.cc SANDBOX_ASSERT(broker_pid == process_info.si_pid); SANDBOX_ASSERT 379 sandbox/linux/services/broker_process_unittest.cc SANDBOX_ASSERT(CLD_KILLED == process_info.si_code); SANDBOX_ASSERT 380 sandbox/linux/services/broker_process_unittest.cc SANDBOX_ASSERT(SIGKILL == process_info.si_status); SANDBOX_ASSERT 383 sandbox/linux/services/broker_process_unittest.cc SANDBOX_ASSERT(open_broker.Open("/proc/cpuinfo", O_RDONLY) == -ENOMEM); SANDBOX_ASSERT 384 sandbox/linux/services/broker_process_unittest.cc SANDBOX_ASSERT(open_broker.Access("/proc/cpuinfo", O_RDONLY) == -ENOMEM); SANDBOX_ASSERT 83 sandbox/linux/tests/unit_tests.cc SANDBOX_ASSERT(sigemptyset(&act.sa_mask) == 0); SANDBOX_ASSERT 87 sandbox/linux/tests/unit_tests.cc SANDBOX_ASSERT(sigaction(SIGALRM, &act, &old_act) == 0); SANDBOX_ASSERT 91 sandbox/linux/tests/unit_tests.cc SANDBOX_ASSERT((old_act.sa_flags & SA_SIGINFO) == 0); SANDBOX_ASSERT 92 sandbox/linux/tests/unit_tests.cc SANDBOX_ASSERT(old_act.sa_handler == SIG_DFL); SANDBOX_ASSERT 94 sandbox/linux/tests/unit_tests.cc SANDBOX_ASSERT(sigemptyset(&sigalrm_set) == 0); SANDBOX_ASSERT 95 sandbox/linux/tests/unit_tests.cc SANDBOX_ASSERT(sigaddset(&sigalrm_set, SIGALRM) == 0); SANDBOX_ASSERT 96 sandbox/linux/tests/unit_tests.cc SANDBOX_ASSERT(sigprocmask(SIG_UNBLOCK, &sigalrm_set, NULL) == 0); SANDBOX_ASSERT 97 sandbox/linux/tests/unit_tests.cc SANDBOX_ASSERT(alarm(time_in_seconds) == 0); // There should be no previous SANDBOX_ASSERT 126 sandbox/linux/tests/unit_tests.cc SANDBOX_ASSERT(fds[0] > 2 && fds[1] > 2); SANDBOX_ASSERT 134 sandbox/linux/tests/unit_tests.cc SANDBOX_ASSERT(dup2(fds[1], 2) == 2); SANDBOX_ASSERT 135 sandbox/linux/tests/unit_tests.cc SANDBOX_ASSERT(!close(fds[0])); SANDBOX_ASSERT 136 sandbox/linux/tests/unit_tests.cc SANDBOX_ASSERT(!close(fds[1]));