Searched refs:MemoryView (Results 1 – 4 of 4) sorted by relevance
| /llvm-project-15.0.7/libc/utils/UnitTest/ |
| H A D | MemoryMatcher.h | 20 using MemoryView = __llvm_libc::cpp::ArrayRef<char>; variable 22 class MemoryMatcher : public __llvm_libc::testing::Matcher<MemoryView> { 23 MemoryView expected; 24 MemoryView actual; 27 MemoryMatcher(MemoryView expectedValue) : expected(expectedValue) {} in MemoryMatcher() 29 bool match(MemoryView actualValue);
|
| H A D | MemoryMatcher.cpp | 15 bool MemoryMatcher::match(MemoryView actualValue) { in match() 28 void display(testutils::StreamWrapper &Stream, MemoryView View) { in display()
|
| /llvm-project-15.0.7/libc/test/src/__support/File/ |
| H A D | file_test.cpp | 18 using MemoryView = __llvm_libc::memory::testing::MemoryView; typedef 137 MemoryView src1("hello, file\0hello, file", sizeof(data) * 2), in TEST() 171 MemoryView src1("hello\n", 6), dst1(f_line->get_str(), 6); in TEST() 191 MemoryView src2("hello\n file\0longer for an \n", 27), in TEST() 195 MemoryView src3("hello\n file\0longer for an \n overflow", 37), in TEST() 203 MemoryView dst_line_final(f_line->get_str(), 37); in TEST() 251 MemoryView src2(initial_content + READ_SIZE, READ_SIZE), in TEST() 372 MemoryView dst2(f->get_str(), sizeof(write_data)), in TEST() 400 MemoryView src1(initial_content, sizeof(initial_content)), in TEST() 403 MemoryView src2(data, sizeof(data)), in TEST() [all …]
|
| /llvm-project-15.0.7/libc/test/src/stdio/ |
| H A D | fopencookie_test.cpp | 25 using MemoryView = __llvm_libc::memory::testing::MemoryView; typedef 211 MemoryView src1(INITIAL_CONTENT, READ_SIZE), dst1(read_data, READ_SIZE); in TEST()
|