Searched refs:kTestDataSize (Results 1 – 4 of 4) sorted by relevance
/external/libchrome/base/files/ |
D | file_unittest.cc | 175 const int kTestDataSize = 4; in TEST() local 186 bytes_written = file.Write(0, data_to_write, kTestDataSize); in TEST() 187 EXPECT_EQ(kTestDataSize, bytes_written); in TEST() 191 int bytes_read = file.Read(kTestDataSize, data_read_1, kTestDataSize); in TEST() 196 bytes_read = file.Read(kPartialReadOffset, data_read_1, kTestDataSize); in TEST() 197 EXPECT_EQ(kTestDataSize - kPartialReadOffset, bytes_read); in TEST() 206 bytes_read = file.Read(0, data_read_1, kTestDataSize); in TEST() 207 EXPECT_EQ(kTestDataSize, bytes_read); in TEST() 212 bytes_read = file.ReadNoBestEffort(0, data_read_1, kTestDataSize); in TEST() 213 EXPECT_LE(bytes_read, kTestDataSize); in TEST() [all …]
|
/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_read_validator_unittest.cpp | 17 constexpr uint32_t kTestDataSize = 64 * 1024 - 467; variable 68 std::vector<uint8_t> test_data(kTestDataSize); in TEST() 91 std::vector<uint8_t> test_data(kTestDataSize); in TEST() 134 auto file = pdfium::MakeRetain<InvalidSeekableReadStream>(kTestDataSize); in TEST() 146 std::vector<uint8_t> test_data(kTestDataSize); in TEST() 164 std::vector<uint8_t> test_data(kTestDataSize); in TEST() 166 auto file = pdfium::MakeRetain<InvalidSeekableReadStream>(kTestDataSize); in TEST() 202 std::vector<uint8_t> test_data(kTestDataSize); in TEST() 204 auto file = pdfium::MakeRetain<InvalidSeekableReadStream>(kTestDataSize); in TEST() 244 std::vector<uint8_t> test_data(kTestDataSize); in TEST() [all …]
|
/external/libchrome/mojo/core/ |
D | data_pipe_unittest.cc | 1120 const uint32_t kTestDataSize = static_cast<uint32_t>(sizeof(kTestData)); in TEST_F() local 1131 uint32_t num_bytes = kTestDataSize; in TEST_F() 1133 ASSERT_EQ(kTestDataSize, num_bytes); in TEST_F() 1136 num_bytes = kTestDataSize; in TEST_F() 1138 ASSERT_EQ(kTestDataSize, num_bytes); in TEST_F() 1151 if (num_bytes >= 2u * kTestDataSize) in TEST_F() 1156 ASSERT_EQ(2u * kTestDataSize, num_bytes); in TEST_F() 1163 ASSERT_EQ(2u * kTestDataSize, num_bytes); in TEST_F() 1169 ASSERT_EQ(0, memcmp(read_buffer_ptr, kTestData, kTestDataSize)); in TEST_F() 1170 ASSERT_EQ(MOJO_RESULT_OK, EndReadData(kTestDataSize)); in TEST_F() [all …]
|
/external/pigweed/pw_kvs/ |
D | key_value_store_initialized_test.cc | 93 constexpr size_t kTestDataSize = 8; in FillKvs() local 94 KvsAttributes kvs_attr(std::strlen(key), kTestDataSize); in FillKvs()
|