• Home
  • Raw
  • Download

Lines Matching refs:ASSERT_EQ

71   ASSERT_EQ(1, SendFileDescriptors(send.get(), "x", 1, fd1.get()));  in TEST_P()
75 ASSERT_EQ(1, ReceiveFileDescriptors(recv.get(), buf, 2, &received)); in TEST_P()
76 ASSERT_EQ('x', buf[0]); in TEST_P()
79 ASSERT_EQ(ino1, GetInode(received.get())); in TEST_P()
83 ASSERT_EQ(2, SendFileDescriptors(send.get(), "ab", 2, fd1.get(), fd2.get())); in TEST_P()
90 ASSERT_EQ(-1, rc); in TEST_P()
91 ASSERT_EQ(EMSGSIZE, errno); in TEST_P()
92 ASSERT_EQ(-1, received1.get()); in TEST_P()
93 ASSERT_EQ(-1, received2.get()); in TEST_P()
95 ASSERT_EQ(1, rc); in TEST_P()
98 ASSERT_EQ(ino1, GetInode(received1.get())); in TEST_P()
99 ASSERT_EQ(ino2, GetInode(received2.get())); in TEST_P()
100 ASSERT_EQ(1, read(recv.get(), buf, 2)); in TEST_P()
105 ASSERT_EQ(1, SendFileDescriptors(send.get(), "a", 1, fd1.get(), fd2.get())); in TEST_P()
109 ASSERT_EQ(-1, ReceiveFileDescriptors(recv.get(), buf, 1, &received)); in TEST_P()
110 ASSERT_EQ(EMSGSIZE, errno); in TEST_P()
111 ASSERT_EQ(-1, received.get()); in TEST_P()
115 ASSERT_EQ(1, SendFileDescriptors(send.get(), "a", 1, fd1.get())); in TEST_P()
118 ASSERT_EQ(1, ::recv(recv.get(), buf, sizeof(buf), MSG_PEEK)); in TEST_P()
119 ASSERT_EQ('a', buf[0]); in TEST_P()
122 ASSERT_EQ(1, ReceiveFileDescriptors(recv.get(), buf, 1, &received)); in TEST_P()
123 ASSERT_EQ(ino1, GetInode(received.get())); in TEST_P()
132 ASSERT_EQ(1, TEMP_FAILURE_RETRY(write(send.get(), "a", 1))); in TEST_P()
133 ASSERT_EQ(2, SendFileDescriptors(send.get(), "bc", 2, fd1.get())); in TEST_P()
134 ASSERT_EQ(1, SendFileDescriptors(send.get(), "d", 1, fd2.get())); in TEST_P()
136 ASSERT_EQ(2, TEMP_FAILURE_RETRY(read(recv.get(), buf, 2))); in TEST_P()
137 ASSERT_EQ(0, memcmp(buf, "ab", 2)); in TEST_P()
141 ASSERT_EQ(1, rc); in TEST_P()
142 ASSERT_EQ('c', buf[0]); in TEST_P()
147 ASSERT_EQ(1, rc); in TEST_P()
148 ASSERT_EQ('d', buf[0]); in TEST_P()
149 ASSERT_EQ(ino2, GetInode(received2.get())); in TEST_P()
153 ASSERT_EQ(1, SendFileDescriptors(send.get(), "a", 1, fd1.get(), fd2.get())); in TEST_P()
157 ASSERT_EQ(1, ReceiveFileDescriptors(recv.get(), buf, 1, &received1, &received2)); in TEST_P()
162 ASSERT_EQ(ino1, GetInode(received1.get())); in TEST_P()
163 ASSERT_EQ(ino2, GetInode(received2.get())); in TEST_P()
167 ASSERT_EQ(1, SendFileDescriptors(send.get(), "a", 1, fd1.get())); in TEST_P()
168 ASSERT_EQ(1, SendFileDescriptors(send.get(), "b", 1, fd2.get())); in TEST_P()
172 ASSERT_EQ(1, ReceiveFileDescriptors(recv.get(), buf, 1, &received1)); in TEST_P()
173 ASSERT_EQ(1, ReceiveFileDescriptors(recv.get(), buf, 1, &received2)); in TEST_P()
178 ASSERT_EQ(ino1, GetInode(received1.get())); in TEST_P()
179 ASSERT_EQ(ino2, GetInode(received2.get())); in TEST_P()
186 ASSERT_EQ(1, SendFileDescriptors(send.get(), "", 1, fd1.get())); in TEST_P()
187 ASSERT_EQ(1, SendFileDescriptors(send.get(), "", 1, fd2.get())); in TEST_P()
191 ASSERT_EQ(1, ReceiveFileDescriptorVector(recv.get(), buf, 2, 2, &received)); in TEST_P()
192 ASSERT_EQ(1U, received.size()); in TEST_P()
193 ASSERT_EQ(ino1, GetInode(received[0].get())); in TEST_P()
195 ASSERT_EQ(1, ReceiveFileDescriptorVector(recv.get(), buf, 2, 2, &received)); in TEST_P()
196 ASSERT_EQ(1U, received.size()); in TEST_P()
197 ASSERT_EQ(ino2, GetInode(received[0].get())); in TEST_P()