Home
last modified time | relevance | path

Searched refs:memory_writer (Results 1 – 3 of 3) sorted by relevance

/external/pigweed/pw_stream/
Dmemory_stream_test.cc37 MemoryWriter memory_writer(memory_buffer); in TEST() local
38 EXPECT_EQ(memory_writer.bytes_written(), 0u); in TEST()
40 memory_writer.Write(&kExpectedStruct, sizeof(kExpectedStruct)); in TEST()
42 EXPECT_EQ(memory_writer.bytes_written(), sizeof(kExpectedStruct)); in TEST()
46 MemoryWriter memory_writer(memory_buffer); in TEST() local
48 memory_writer.Write(&kExpectedStruct, sizeof(kExpectedStruct)).ok()); in TEST()
50 std::span<const std::byte> written_data = memory_writer.WrittenData(); in TEST()
64 MemoryWriter memory_writer(memory_buffer); in TEST() local
67 while (memory_writer.ConservativeWriteLimit() >= kTempBufferSize) { in TEST()
71 EXPECT_EQ(memory_writer.Write(std::span(buffer)), OkStatus()); in TEST()
[all …]
/external/pigweed/pw_hdlc/
Drpc_channel_test.cc54 stream::MemoryWriterBuffer<kSinkBufferSize> memory_writer; variable
57 memory_writer, channel_output_buffer, kAddress, "RpcChannelOutput");
69 ASSERT_EQ(memory_writer.bytes_written(), expected.size());
72 memory_writer.data(), expected.data(), memory_writer.bytes_written()),
78 stream::MemoryWriterBuffer<kSinkBufferSize> memory_writer; in TEST() local
81 memory_writer, channel_output_buffer, kAddress, "RpcChannelOutput"); in TEST()
97 ASSERT_EQ(memory_writer.bytes_written(), 10u); in TEST()
100 memory_writer.data(), expected.data(), memory_writer.bytes_written()), in TEST()
105 stream::MemoryWriterBuffer<kSinkBufferSize> memory_writer; variable
108 memory_writer, kAddress, "RpcChannelOutput");
[all …]
/external/webp/tests/fuzzer/
Denc_dec_fuzzer.cc81 WebPMemoryWriter memory_writer; in LLVMFuzzerTestOneInput() local
82 WebPMemoryWriterInit(&memory_writer); in LLVMFuzzerTestOneInput()
84 pic.custom_ptr = &memory_writer; in LLVMFuzzerTestOneInput()
87 WebPMemoryWriterClear(&memory_writer); in LLVMFuzzerTestOneInput()
94 const uint8_t* const out_data = memory_writer.mem; in LLVMFuzzerTestOneInput()
95 const size_t out_size = memory_writer.size; in LLVMFuzzerTestOneInput()
100 WebPMemoryWriterClear(&memory_writer); in LLVMFuzzerTestOneInput()
122 WebPMemoryWriterClear(&memory_writer); in LLVMFuzzerTestOneInput()
131 WebPMemoryWriterClear(&memory_writer); in LLVMFuzzerTestOneInput()