From df95749e8314049ecea626143d31f3643b0b50ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=AD=E5=B2=81=E5=B0=8F=E5=B0=91=E5=B9=B4?= Date: Thu, 12 Aug 2021 16:40:52 +0800 Subject: [PATCH] Fix: not implement virtual class when WITH_CUSTOM_PREFIX on --- src/logging_custom_prefix_unittest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logging_custom_prefix_unittest.cc b/src/logging_custom_prefix_unittest.cc index 55da56c..e4b7d98 100644 --- a/src/logging_custom_prefix_unittest.cc +++ b/src/logging_custom_prefix_unittest.cc @@ -849,7 +849,7 @@ struct MyLogger : public base::Logger { virtual void Write(bool /* should_flush */, time_t /* timestamp */, const char* message, - int length) { + size_t length) { data.append(message, length); } @@ -981,7 +981,7 @@ struct RecordDeletionLogger : public base::Logger { virtual void Write(bool force_flush, time_t timestamp, const char* message, - int length) { + size_t length) { wrapped_logger_->Write(force_flush, timestamp, message, length); } virtual void Flush() { wrapped_logger_->Flush(); }