Home
last modified time | relevance | path

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

/llvm-project-15.0.7/libc/test/src/__support/File/
H A Dfile_test.cpp236 ASSERT_EQ(READ_SIZE, f->read(read_data, READ_SIZE)); in TEST()
244 MemoryView src1(initial_content, READ_SIZE), dst1(read_data, READ_SIZE); in TEST()
249 ASSERT_EQ(READ_SIZE, f->read(read_data, READ_SIZE)); in TEST()
251 MemoryView src2(initial_content + READ_SIZE, READ_SIZE), in TEST()
256 ASSERT_GT(READ_SIZE, f->read(read_data, READ_SIZE)); in TEST()
264 ASSERT_EQ(READ_SIZE, f->read(read_data, READ_SIZE)); in TEST()
288 ASSERT_EQ(f->read(data, READ_SIZE - 1), READ_SIZE - 1); in TEST()
291 ASSERT_EQ(f->read(data, READ_SIZE - 1), READ_SIZE - 1); in TEST()
294 ASSERT_EQ(f->read(data, READ_SIZE - 1), READ_SIZE - 1); in TEST()
356 ASSERT_EQ(READ_SIZE, f->read(read_data, READ_SIZE)); in TEST()
[all …]
H A Dplatform_file_test.cpp76 char data[READ_SIZE + 1]; in TEST()
77 ASSERT_EQ(file->read(data, READ_SIZE), READ_SIZE); in TEST()
78 data[READ_SIZE] = '\0'; in TEST()
134 char data[READ_SIZE] = {0}; in TEST()
135 ASSERT_EQ(file->read(data, READ_SIZE), READ_SIZE); in TEST()
158 constexpr size_t READ_SIZE = 5; in TEST() local
159 char data[READ_SIZE]; in TEST()
160 data[READ_SIZE - 1] = '\0'; in TEST()
161 ASSERT_EQ(file->read(data, READ_SIZE - 1), READ_SIZE - 1); in TEST()
164 ASSERT_EQ(file->read(data, READ_SIZE - 1), READ_SIZE - 1); in TEST()
[all …]
/llvm-project-15.0.7/libc/test/src/stdio/
H A Dunlocked_fileop_test.cpp32 constexpr size_t READ_SIZE = 5; in TEST() local
33 char data[READ_SIZE * 2 + 1]; in TEST()
34 data[READ_SIZE * 2] = '\0'; in TEST()
37 __llvm_libc::fread_unlocked(data, 1, sizeof(READ_SIZE), f)); in TEST()
52 ASSERT_EQ(__llvm_libc::fread_unlocked(data, 1, READ_SIZE, f), READ_SIZE); in TEST()
53 ASSERT_EQ(__llvm_libc::fread_unlocked(data + READ_SIZE, 1, READ_SIZE, f), in TEST()
54 READ_SIZE); in TEST()
H A Dfileop_test.cpp46 constexpr size_t READ_SIZE = 5; in TEST() local
47 char data[READ_SIZE]; in TEST()
48 data[READ_SIZE - 1] = '\0'; in TEST()
49 ASSERT_EQ(__llvm_libc::fread(data, 1, READ_SIZE - 1, file), READ_SIZE - 1); in TEST()
52 ASSERT_EQ(__llvm_libc::fread(data, 1, READ_SIZE - 1, file), READ_SIZE - 1); in TEST()
55 ASSERT_EQ(__llvm_libc::fread(data, 1, READ_SIZE - 1, file), READ_SIZE - 1); in TEST()
H A Dfopencookie_test.cpp174 constexpr size_t READ_SIZE = 5; in TEST() local
175 char read_data[READ_SIZE]; in TEST()
177 ASSERT_EQ(__llvm_libc::fread(read_data, 1, READ_SIZE, f), size_t(0)); in TEST()
207 constexpr size_t READ_SIZE = sizeof(INITIAL_CONTENT) / 2; in TEST() local
208 char read_data[READ_SIZE]; in TEST()
209 ASSERT_EQ(READ_SIZE, __llvm_libc::fread(read_data, 1, READ_SIZE, f)); in TEST()
211 MemoryView src1(INITIAL_CONTENT, READ_SIZE), dst1(read_data, READ_SIZE); in TEST()