Home
last modified time | relevance | path

Searched refs:kTestTransferSize (Results 1 – 1 of 1) sorted by relevance

/external/libchrome/sandbox/linux/seccomp-bpf-helpers/
Dbaseline_policy_unittest.cc58 const ssize_t kTestTransferSize = 4; in TestPipeOrSocketPair() local
59 static const char kTestString[kTestTransferSize] = {'T', 'E', 'S', 'T'}; in TestPipeOrSocketPair()
63 HANDLE_EINTR(write(write_end.get(), kTestString, kTestTransferSize)); in TestPipeOrSocketPair()
64 BPF_ASSERT_EQ(kTestTransferSize, transfered); in TestPipeOrSocketPair()
65 char read_buf[kTestTransferSize + 1] = {0}; in TestPipeOrSocketPair()
67 BPF_ASSERT_EQ(kTestTransferSize, transfered); in TestPipeOrSocketPair()
68 BPF_ASSERT_EQ(0, memcmp(kTestString, read_buf, kTestTransferSize)); in TestPipeOrSocketPair()