Home
last modified time | relevance | path

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

/system/connectivity/wifilogd/tests/
Dmock_command_processor.cpp26 constexpr auto kBufferSizeBytes = 4096; variable
33 : CommandProcessor(kBufferSizeBytes, in MockCommandProcessor()
Dbyte_buffer_unittest.cpp29 constexpr size_t kBufferSizeBytes = 1024; variable
31 constexpr std::array<uint8_t, kBufferSizeBytes> kLargestMessage{};
38 ByteBuffer<kBufferSizeBytes> buffer_;
65 ByteBuffer<kBufferSizeBytes> copy; in TEST_F()
87 const ByteBuffer<kBufferSizeBytes> copy{buffer_}; in TEST_F()
128 constexpr std::array<uint8_t, kBufferSizeBytes + 1> oversized_message{}; in TEST_F()
Dmessage_buffer_unittest.cpp29 constexpr size_t kBufferSizeBytes = 1024; variable
32 constexpr std::array<uint8_t, kBufferSizeBytes - kHeaderSizeBytes>
37 MessageBufferTest() : buffer_{kBufferSizeBytes} {} in MessageBufferTest()
42 static_assert(kBufferSizeBytes % (kHeaderSizeBytes + message.size()) == 0, in FillBufferWithMultipleMessages()
46 n_written < kBufferSizeBytes / (kHeaderSizeBytes + message.size()); in FillBufferWithMultipleMessages()
93 constexpr std::array<uint8_t, kBufferSizeBytes + 1> oversized_message{}; in TEST_F()
99 constexpr size_t expected_free = kBufferSizeBytes - kHeaderSizeBytes; in TEST_F()
120 kBufferSizeBytes - (kSmallestMessage.size() + kHeaderSizeBytes) - in TEST_F()
281 EXPECT_EQ(kBufferSizeBytes, buffer_.GetFreeSize()); in TEST_F()
286 EXPECT_EQ(kBufferSizeBytes - kHeaderSizeBytes - kSmallestMessage.size(), in TEST_F()
[all …]
Dcommand_processor_unittest.cpp60 constexpr size_t kBufferSizeBytes = protocol::kMaxMessageSize * 16; variable
78 new CommandProcessor(kBufferSizeBytes, std::unique_ptr<Os>(os_))); in CommandProcessorTest()
238 cumulative_payload_bytes <= kBufferSizeBytes; in TEST_F()