Searched refs:TEST_PACKET_SIZE (Results 1 – 2 of 2) sorted by relevance
/frameworks/av/media/mtp/tests/ |
D | PosixAsyncIO_test.cpp | 29 constexpr int TEST_PACKET_SIZE = 512; variable 51 char buf[TEST_PACKET_SIZE + 1]; in TEST_F() 52 buf[TEST_PACKET_SIZE] = '\0'; in TEST_F() 53 EXPECT_EQ(write(dummy_file.fd, dummyDataStr.c_str(), TEST_PACKET_SIZE), TEST_PACKET_SIZE); in TEST_F() 59 aio.aio_nbytes = TEST_PACKET_SIZE; in TEST_F() 63 EXPECT_EQ(aio_return(&aio), TEST_PACKET_SIZE); in TEST_F() 68 char buf[TEST_PACKET_SIZE + 1]; in TEST_F() 69 buf[TEST_PACKET_SIZE] = '\0'; in TEST_F() 75 aio.aio_nbytes = TEST_PACKET_SIZE; in TEST_F() 79 EXPECT_EQ(aio_return(&aio), TEST_PACKET_SIZE); in TEST_F() [all …]
|
D | MtpFfsHandle_test.cpp | 34 constexpr int TEST_PACKET_SIZE = 500; variable 119 EXPECT_EQ(write(this->bulk_out, dummyDataStr.c_str(), TEST_PACKET_SIZE), TEST_PACKET_SIZE); in TYPED_TEST() 120 char buf[TEST_PACKET_SIZE + 1]; in TYPED_TEST() 121 buf[TEST_PACKET_SIZE] = '\0'; in TYPED_TEST() 122 EXPECT_EQ(this->handle->read(buf, TEST_PACKET_SIZE), TEST_PACKET_SIZE); in TYPED_TEST() 128 int size = TEST_PACKET_SIZE * MED_MULT; in TYPED_TEST() 142 char buf[TEST_PACKET_SIZE + 1]; in TYPED_TEST() 143 buf[TEST_PACKET_SIZE] = '\0'; in TYPED_TEST() 144 EXPECT_EQ(this->handle->write(dummyDataStr.c_str(), TEST_PACKET_SIZE), TEST_PACKET_SIZE); in TYPED_TEST() 145 EXPECT_EQ(read(this->bulk_in, buf, TEST_PACKET_SIZE), TEST_PACKET_SIZE); in TYPED_TEST() [all …]
|