Home
last modified time | relevance | path

Searched refs:MemoryView (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/libc/utils/UnitTest/
H A DMemoryMatcher.h20 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 DMemoryMatcher.cpp15 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 Dfile_test.cpp18 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 Dfopencookie_test.cpp25 using MemoryView = __llvm_libc::memory::testing::MemoryView; typedef
211 MemoryView src1(INITIAL_CONTENT, READ_SIZE), dst1(read_data, READ_SIZE); in TEST()