From 1a796bca57ef45d559e70dc05ad2df5cb77b8f64 Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Wed, 13 May 2020 09:28:37 -0700 Subject: logd: add a SerializedLogBuffer suitable for compression Initial commit for a SerializedLogBuffer. The intention here is for the serialized data to be compressed (currently using zlib) to allow for substantially longer logs in the same memory footprint. Test: unit tests Change-Id: I2528e4e1ff1cf3bc91130173a107f371f04d911a --- logd/LogBufferTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'logd/LogBufferTest.cpp') diff --git a/logd/LogBufferTest.cpp b/logd/LogBufferTest.cpp index 412b6f1d7..47d2a2f92 100644 --- a/logd/LogBufferTest.cpp +++ b/logd/LogBufferTest.cpp @@ -455,4 +455,5 @@ TEST_P(LogBufferTest, clear_logs) { CompareLogMessages(after_clear_messages, read_log_messages_after_clear); } -INSTANTIATE_TEST_CASE_P(LogBufferTests, LogBufferTest, testing::Values("chatty", "simple")); +INSTANTIATE_TEST_CASE_P(LogBufferTests, LogBufferTest, + testing::Values("chatty", "serialized", "simple")); -- cgit v1.2.3