• Home
  • Raw
  • Download

Lines Matching refs:buf

92     char buf[TEST_PACKET_SIZE + 1];  in TEST_F()  local
93 buf[TEST_PACKET_SIZE] = '\0'; in TEST_F()
94 EXPECT_EQ(handle->read(buf, TEST_PACKET_SIZE), TEST_PACKET_SIZE); in TEST_F()
95 EXPECT_STREQ(buf, dummyDataStr.c_str()); in TEST_F()
99 char buf[TEST_PACKET_SIZE + 1]; in TEST_F() local
100 buf[TEST_PACKET_SIZE] = '\0'; in TEST_F()
102 EXPECT_EQ(read(bulk_in, buf, TEST_PACKET_SIZE), TEST_PACKET_SIZE); in TEST_F()
103 EXPECT_STREQ(buf, dummyDataStr.c_str()); in TEST_F()
110 char buf[size + 1]; in TEST_F() local
111 buf[size] = '\0'; in TEST_F()
121 EXPECT_EQ(read(dummy_file.fd, buf, size), size); in TEST_F()
123 EXPECT_STREQ(buf, ss.str().c_str()); in TEST_F()
130 char buf[size + 1]; in TEST_F() local
131 buf[size] = '\0'; in TEST_F()
141 EXPECT_EQ(read(dummy_file.fd, buf, size), size); in TEST_F()
143 EXPECT_STREQ(buf, ss.str().c_str()); in TEST_F()
153 char buf[size + sizeof(mtp_data_header) + 1]; in TEST_F() local
154 buf[size + sizeof(mtp_data_header)] = '\0'; in TEST_F()
164 EXPECT_EQ(read(bulk_in, buf, size + sizeof(mtp_data_header)), in TEST_F()
167 struct mtp_data_header *header = reinterpret_cast<struct mtp_data_header*>(buf); in TEST_F()
168 EXPECT_STREQ(buf + sizeof(mtp_data_header), ss.str().c_str()); in TEST_F()
182 char buf[size + sizeof(mtp_data_header) + 1]; in TEST_F() local
183 buf[size + sizeof(mtp_data_header)] = '\0'; in TEST_F()
193 EXPECT_EQ(read(bulk_in, buf, size + sizeof(mtp_data_header)), in TEST_F()
196 struct mtp_data_header *header = reinterpret_cast<struct mtp_data_header*>(buf); in TEST_F()
197 EXPECT_STREQ(buf + sizeof(mtp_data_header), ss.str().c_str()); in TEST_F()
211 char buf[size + 1]; in TEST_F() local
212 buf[size] = '\0'; in TEST_F()
238 memcpy(buf + offset, temp_buf + sizeof(mtp_data_header), length); in TEST_F()
241 EXPECT_STREQ(buf, ss.str().c_str()); in TEST_F()
250 char buf[size + sizeof(mtp_data_header) + 1]; in TEST_F() local
251 buf[size + sizeof(mtp_data_header)] = '\0'; in TEST_F()
258 EXPECT_EQ(read(bulk_in, buf, size + sizeof(mtp_data_header)), in TEST_F()
261 struct mtp_data_header *header = reinterpret_cast<struct mtp_data_header*>(buf); in TEST_F()
272 char buf[TEST_PACKET_SIZE + 1]; in TEST_F() local
273 buf[TEST_PACKET_SIZE] = '\0'; in TEST_F()
276 read(intr, buf, TEST_PACKET_SIZE); in TEST_F()
277 EXPECT_STREQ(buf, dummyDataStr.c_str()); in TEST_F()